Diff for /embedaddon/php/Zend/zend_builtin_functions.c between versions 1.1.1.3 and 1.1.1.4

version 1.1.1.3, 2013/07/22 01:32:15 version 1.1.1.4, 2013/10/14 08:02:46
Line 1399  ZEND_FUNCTION(class_alias) Line 1399  ZEND_FUNCTION(class_alias)
                 return;                  return;
         }          }
   
        if (!autoload) {        found = zend_lookup_class_ex(class_name, class_name_len, NULL, autoload, &ce TSRMLS_CC);
                lc_name = do_alloca(class_name_len + 1, use_heap); 
                zend_str_tolower_copy(lc_name, class_name, class_name_len); 
                   
                 found = zend_hash_find(EG(class_table), lc_name, class_name_len+1, (void **) &ce);  
                 free_alloca(lc_name, use_heap);  
         } else {  
                 found = zend_lookup_class(class_name, class_name_len, &ce TSRMLS_CC);  
         }  
         if (found == SUCCESS) {          if (found == SUCCESS) {
                 if ((*ce)->type == ZEND_USER_CLASS) {                   if ((*ce)->type == ZEND_USER_CLASS) { 
                         if (zend_register_class_alias_ex(alias_name, alias_name_len, *ce TSRMLS_CC) == SUCCESS) {                          if (zend_register_class_alias_ex(alias_name, alias_name_len, *ce TSRMLS_CC) == SUCCESS) {
Line 1926  static int add_constant_info(zend_constant *constant,  Line 1919  static int add_constant_info(zend_constant *constant, 
         zval *name_array = (zval *)arg;          zval *name_array = (zval *)arg;
         zval *const_val;          zval *const_val;
   
           if (!constant->name) {
                   /* skip special constants */
                   return 0;
           }
   
         MAKE_STD_ZVAL(const_val);          MAKE_STD_ZVAL(const_val);
         *const_val = constant->value;          *const_val = constant->value;
         zval_copy_ctor(const_val);          zval_copy_ctor(const_val);
Line 1993  ZEND_FUNCTION(get_defined_constants) Line 1991  ZEND_FUNCTION(get_defined_constants)
                 while (zend_hash_get_current_data_ex(EG(zend_constants), (void **) &val, &pos) != FAILURE) {                  while (zend_hash_get_current_data_ex(EG(zend_constants), (void **) &val, &pos) != FAILURE) {
                         zval *const_val;                          zval *const_val;
   
                           if (!val->name) {
                                   /* skip special constants */
                                   goto next_constant;
                           }
   
                         if (val->module_number == PHP_USER_CONSTANT) {                          if (val->module_number == PHP_USER_CONSTANT) {
                                 module_number = i;                                  module_number = i;
                         } else if (val->module_number > i || val->module_number < 0) {                          } else if (val->module_number > i || val->module_number < 0) {
                                 /* should not happen */                                  /* should not happen */
                                goto bad_module_id;                                goto next_constant;
                         } else {                          } else {
                                 module_number = val->module_number;                                  module_number = val->module_number;
                         }                          }
Line 2014  ZEND_FUNCTION(get_defined_constants) Line 2017  ZEND_FUNCTION(get_defined_constants)
                         INIT_PZVAL(const_val);                          INIT_PZVAL(const_val);
   
                         add_assoc_zval_ex(modules[module_number], val->name, val->name_len, const_val);                          add_assoc_zval_ex(modules[module_number], val->name, val->name_len, const_val);
bad_module_id:next_constant:
                         zend_hash_move_forward_ex(EG(zend_constants), &pos);                          zend_hash_move_forward_ex(EG(zend_constants), &pos);
                 }                  }
                 efree(module_names);                  efree(module_names);
Line 2386  ZEND_API void zend_fetch_debug_backtrace(zval *return_ Line 2389  ZEND_API void zend_fetch_debug_backtrace(zval *return_
                                 MAKE_STD_ZVAL(arg_array);                                  MAKE_STD_ZVAL(arg_array);
                                 array_init(arg_array);                                  array_init(arg_array);
   
                                /* include_filename always points to the last filename of the last last called-fuction.                                /* include_filename always points to the last filename of the last last called-function.
                                    if we have called include in the frame above - this is the file we have included.                                     if we have called include in the frame above - this is the file we have included.
                                  */                                   */
   

Removed from v.1.1.1.3  
changed lines
  Added in v.1.1.1.4


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>