cvs: ZendEngine2(PHP_5_2) / zend_API.c
| From: | Antony Dovgal | Date: | Thu, 11 May 2006 15:10:36 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4863@lists.php.net to get a copy of this message | ||
tony2001 Thu May 11 15:10:36 2006 UTC
Modified files: (Branch: PHP_5_2)
/ZendEngine2 zend_API.c
Log:
fix segfault when passing objects where strings are expected
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_API.c?r1=1.296.2.27.2.3&r2=1.296.2.27.2.4&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.296.2.27.2.3 ZendEngine2/zend_API.c:1.296.2.27.2.4
--- ZendEngine2/zend_API.c:1.296.2.27.2.3 Wed May 10 19:36:47 2006
+++ ZendEngine2/zend_API.c Thu May 11 15:10:36 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.296.2.27.2.3 2006/05/10 19:36:47 helly Exp $ */
+/* $Id: zend_API.c,v 1.296.2.27.2.4 2006/05/11 15:10:36 tony2001 Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -366,7 +366,6 @@
*p = Z_STRVAL_PP(arg);
break;
}
- zval_ptr_dtor(arg);
}
/* Standard PHP objects */
if (Z_OBJ_HT_PP(arg) == &std_object_handlers || !Z_OBJ_HT_PP(arg)->cast_object) {