cvs: Zend / zend_execute.c
| From: | Stanislav Malyshev | Date: | Mon, 09 Sep 2002 17:28:33 +0000 |
| Subject: | cvs: Zend / zend_execute.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-414@lists.php.net to get a copy of this message | ||
stas Mon Sep 9 13:28:33 2002 EDT
Modified files:
/Zend zend_execute.c
Log:
fix bug #18610
Index: Zend/zend_execute.c
diff -u Zend/zend_execute.c:1.308 Zend/zend_execute.c:1.309
--- Zend/zend_execute.c:1.308 Tue Sep 3 10:42:04 2002
+++ Zend/zend_execute.c Mon Sep 9 13:28:32 2002
@@ -1510,7 +1510,7 @@
if (EX(opline)->op1.op_type==IS_CONST) { /* used for class_name::function() */
zval **object_ptr_ptr;
- if (zend_hash_find(EG(active_symbol_table), "this", sizeof("this"),
(void **) &object_ptr_ptr)==FAILURE) {
+ if (zend_hash_find(EG(active_symbol_table), "this", sizeof("this"),
(void **) &object_ptr_ptr)==FAILURE || Z_TYPE_PP(object_ptr_ptr) != IS_OBJECT) {
EX(object).ptr=NULL;
} else {
/* We assume that "this" is already is_ref and pointing to the object.