]> granicus.if.org Git - php/commitdiff
- This was too strict.
authorAndi Gutmans <andi@php.net>
Thu, 12 Feb 2004 14:31:13 +0000 (14:31 +0000)
committerAndi Gutmans <andi@php.net>
Thu, 12 Feb 2004 14:31:13 +0000 (14:31 +0000)
Zend/zend_object_handlers.c

index 3aa12f5148a4a76babcf00ddc6aacb0c0698992c..b6645a8ebf49e0fcea557ef2b2360c729d4f3c6b 100644 (file)
@@ -387,11 +387,6 @@ zval *zend_std_read_dimension(zval *object, zval *offset, int type TSRMLS_DC)
                        return 0;
                }
 
-               if ((type == BP_VAR_W || type == BP_VAR_RW)
-                       && !retval->is_ref) {
-                       zend_error(E_ERROR, "offsetGet() must return by reference for multi-dimensional array support");
-               }
-
                /* Undo PZVAL_LOCK() */
                retval->refcount--;