summaryrefslogtreecommitdiff
path: root/Zend/zend_object_handlers.c
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-07-15 19:41:24 +0000
committerSVN Migration <svn@php.net>2004-07-15 19:41:24 +0000
commit2c1949d4e7fb4248c2a6b95b45094951c3607c8d (patch)
treec7de4f1a2b41f8bb9becab1b08ada0de6b6f75ba /Zend/zend_object_handlers.c
parent8091552925399dc7dbe4d5c47e1cc53f900bc670 (diff)
downloadphp-git-php-5.0.0.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_5_0_0'.php-5.0.0
Diffstat (limited to 'Zend/zend_object_handlers.c')
-rw-r--r--Zend/zend_object_handlers.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c
index 7965bb0eb3..d7f57a8d96 100644
--- a/Zend/zend_object_handlers.c
+++ b/Zend/zend_object_handlers.c
@@ -381,14 +381,7 @@ zval *zend_std_read_dimension(zval *object, zval *offset, int type TSRMLS_DC)
zval *retval;
if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) {
- if(offset == NULL) {
- /* [] construct */
- zval offset_null;
- INIT_ZVAL(offset_null);
- offset = &offset_null;
- }
zend_call_method_with_1_params(&object, ce, NULL, "offsetget", &retval, offset);
-
if (!retval) {
if (!EG(exception)) {
zend_error(E_ERROR, "Undefined offset for object of type %s used as array", ce->name);