|
version 1.1.1.2, 2012/05/29 12:34:35
|
version 1.1.1.4, 2014/06/15 20:04:03
|
|
Line 2
|
Line 2
|
| +----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| | Zend Engine | |
| Zend Engine | |
| +----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) | | | Copyright (c) 1998-2014 Zend Technologies Ltd. (http://www.zend.com) | |
| +----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| | This source file is subject to version 2.00 of the Zend license, | |
| This source file is subject to version 2.00 of the Zend license, | |
| | that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
|
Line 554 static inline void make_real_object(zval **object_ptr
|
Line 554 static inline void make_real_object(zval **object_ptr
|
| || (Z_TYPE_PP(object_ptr) == IS_BOOL && Z_LVAL_PP(object_ptr) == 0) |
|| (Z_TYPE_PP(object_ptr) == IS_BOOL && Z_LVAL_PP(object_ptr) == 0) |
| || (Z_TYPE_PP(object_ptr) == IS_STRING && Z_STRLEN_PP(object_ptr) == 0) |
|| (Z_TYPE_PP(object_ptr) == IS_STRING && Z_STRLEN_PP(object_ptr) == 0) |
| ) { |
) { |
| zend_error(E_WARNING, "Creating default object from empty value"); |
|
| |
|
| SEPARATE_ZVAL_IF_NOT_REF(object_ptr); |
SEPARATE_ZVAL_IF_NOT_REF(object_ptr); |
| zval_dtor(*object_ptr); |
zval_dtor(*object_ptr); |
| object_init(*object_ptr); |
object_init(*object_ptr); |
| |
zend_error(E_WARNING, "Creating default object from empty value"); |
| } |
} |
| } |
} |
| |
|
|
Line 1146 convert_to_array:
|
Line 1145 convert_to_array:
|
| zend_error_noreturn(E_ERROR, "[] operator not supported for strings"); |
zend_error_noreturn(E_ERROR, "[] operator not supported for strings"); |
| } |
} |
| |
|
| |
if (type != BP_VAR_UNSET) { |
| |
SEPARATE_ZVAL_IF_NOT_REF(container_ptr); |
| |
} |
| |
|
| if (Z_TYPE_P(dim) != IS_LONG) { |
if (Z_TYPE_P(dim) != IS_LONG) { |
| |
|
| switch(Z_TYPE_P(dim)) { |
switch(Z_TYPE_P(dim)) { |
|
Line 1162 convert_to_array:
|
Line 1165 convert_to_array:
|
| case IS_DOUBLE: |
case IS_DOUBLE: |
| case IS_NULL: |
case IS_NULL: |
| case IS_BOOL: |
case IS_BOOL: |
| zend_error(E_NOTICE, "String offset cast occured"); | zend_error(E_NOTICE, "String offset cast occurred"); |
| break; |
break; |
| default: |
default: |
| zend_error(E_WARNING, "Illegal offset type"); |
zend_error(E_WARNING, "Illegal offset type"); |
|
Line 1174 convert_to_array:
|
Line 1177 convert_to_array:
|
| convert_to_long(&tmp); |
convert_to_long(&tmp); |
| dim = &tmp; |
dim = &tmp; |
| } |
} |
| if (type != BP_VAR_UNSET) { |
|
| SEPARATE_ZVAL_IF_NOT_REF(container_ptr); |
|
| } |
|
| container = *container_ptr; |
container = *container_ptr; |
| result->str_offset.str = container; |
result->str_offset.str = container; |
| PZVAL_LOCK(container); |
PZVAL_LOCK(container); |
|
Line 1248 convert_to_array:
|
Line 1248 convert_to_array:
|
| } |
} |
| } |
} |
| |
|
| static void zend_fetch_dimension_address_read(temp_variable *result, zval **container_ptr, zval *dim, int dim_type, int type TSRMLS_DC) | static void zend_fetch_dimension_address_read(temp_variable *result, zval *container, zval *dim, int dim_type, int type TSRMLS_DC) |
| { |
{ |
| zval *container = *container_ptr; |
|
| zval **retval; |
zval **retval; |
| |
|
| switch (Z_TYPE_P(container)) { |
switch (Z_TYPE_P(container)) { |
|
Line 1285 static void zend_fetch_dimension_address_read(temp_var
|
Line 1284 static void zend_fetch_dimension_address_read(temp_var
|
| case IS_NULL: |
case IS_NULL: |
| case IS_BOOL: |
case IS_BOOL: |
| if (type != BP_VAR_IS) { |
if (type != BP_VAR_IS) { |
| zend_error(E_NOTICE, "String offset cast occured"); | zend_error(E_NOTICE, "String offset cast occurred"); |
| } |
} |
| break; |
break; |
| default: |
default: |