cvs: ZendEngine2(PHP_5_1) / zend_builtin_functions.c
| From: | Andrei Zmievski | Date: | Tue, 07 Feb 2006 00:33:13 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_1) / zend_builtin_functions.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4574@lists.php.net to get a copy of this message | ||
andrei Tue Feb 7 00:33:13 2006 UTC
Modified files: (Branch: PHP_5_1)
/ZendEngine2 zend_builtin_functions.c
Log:
MFH.
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_builtin_functions.c?r1=1.277.2.8&r2=1.277.2.9&diff_format=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.277.2.8
ZendEngine2/zend_builtin_functions.c:1.277.2.9
--- ZendEngine2/zend_builtin_functions.c:1.277.2.8 Wed Jan 4 23:53:04 2006
+++ ZendEngine2/zend_builtin_functions.c Tue Feb 7 00:33:13 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_builtin_functions.c,v 1.277.2.8 2006/01/04 23:53:04 andi Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.277.2.9 2006/02/07 00:33:13 andrei Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -768,11 +768,16 @@
RETURN_FALSE;
}
+ properties = Z_OBJ_HT_PP(obj)->get_properties(*obj TSRMLS_CC);
+
+ if (properties == NULL) {
+ RETURN_FALSE;
+ }
+
instanceof = EG(This) && instanceof_function(Z_OBJCE_P(EG(This)), Z_OBJCE_PP(obj)
TSRMLS_CC);
array_init(return_value);
- properties = Z_OBJ_HT_PP(obj)->get_properties(*obj TSRMLS_CC);
zend_hash_internal_pointer_reset_ex(properties, &pos);
while (zend_hash_get_current_data_ex(properties, (void **) &value, &pos) == SUCCESS) {