cvs: ZendEngine2 / zend_API.c
| From: | Stanislav Malyshev | Date: | Mon, 05 Jan 2004 12:10:35 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2174@lists.php.net to get a copy of this message | ||
stas Mon Jan 5 07:10:35 2004 EDT
Modified files:
/ZendEngine2 zend_API.c
Log:
Fix bug #26543 - check parent:: and self:: in class names
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.232 ZendEngine2/zend_API.c:1.233
--- ZendEngine2/zend_API.c:1.232 Sat Jan 3 08:51:01 2004
+++ ZendEngine2/zend_API.c Mon Jan 5 07:10:35 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.232 2004/01/03 13:51:01 derick Exp $ */
+/* $Id: zend_API.c,v 1.233 2004/01/05 12:10:35 stas Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -1631,7 +1631,7 @@
if (syntax_only)
return 1;
- lcname = zend_str_tolower_dup(Z_STRVAL_PP(method), Z_STRLEN_PP(method));
+ lcname = zend_str_tolower_dup(Z_STRVAL_PP(obj), Z_STRLEN_PP(obj));
if (EG(active_op_array) && strcmp(lcname, "self") == 0) {
ce = EG(active_op_array)->scope;
@@ -1643,7 +1643,7 @@
efree(lcname);
} else {
- ce = Z_OBJCE_PP(obj); /* ??? */
+ ce = Z_OBJCE_PP(obj); /* TBFixed: what if it's overloaded? */
if (callable_name) {
char *ptr;