| Marcus Boerger 2005-03-19, 3:55 pm |
| helly Sat Mar 19 10:06:39 2005 EDT
Modified files:
/ZendEngine2 zend_object_handlers.c
Log:
- Fix #31185
http://cvs.php.net/diff.php/ZendEng...1&r2=1.112&ty=u
Index: ZendEngine2/zend_object_handlers.c
diff -u ZendEngine2/zend_object_handlers.c:1.111 ZendEngine2/zend_object_handlers.c:1.112
--- ZendEngine2/zend_object_handlers.c:1.111 Thu Mar 10 19:44:34 2005
+++ ZendEngine2/zend_object_handlers.c Sat Mar 19 10:06:39 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_object_handlers.c,v 1.111 2005/03/11 00:44:34 helly Exp $ */
+/* $Id: zend_object_handlers.c,v 1.112 2005/03/19 15:06:39 helly Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -476,13 +476,11 @@
static void zend_std_unset_dimension(zval *object, zval *offset TSRMLS_DC)
{
zend_class_entry *ce = Z_OBJCE_P(object);
- zval *retval;
if (instanceof_function_ex(ce, zend_ce_arrayaccess, 1 TSRMLS_CC)) {
SEPARATE_ARG_IF_REF(offset);
- zend_call_method_with_1_params(&object, ce, NULL, "offsetunset", &retval, offset);
+ zend_call_method_with_1_params(&object, ce, NULL, "offsetunset", NULL, offset);
zval_ptr_dtor(&offset);
- zval_ptr_dtor(&retval);
} else {
zend_error(E_ERROR, "Cannot use object of type %s as array", ce->name);
}
|