cvs: ZendEngine2 / zend_API.c
| From: | Marcus Boerger | Date: | Sat, 07 Jan 2006 21:16:02 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4515@lists.php.net to get a copy of this message | ||
helly Sat Jan 7 21:16:02 2006 UTC
Modified files:
/ZendEngine2 zend_API.c
Log:
- MFB missing E_STRICT
http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_API.c?r1=1.332&r2=1.333&diff_format=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.332 ZendEngine2/zend_API.c:1.333
--- ZendEngine2/zend_API.c:1.332 Sat Jan 7 20:43:33 2006
+++ ZendEngine2/zend_API.c Sat Jan 7 21:16:02 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.332 2006/01/07 20:43:33 helly Exp $ */
+/* $Id: zend_API.c,v 1.333 2006/01/07 21:16:02 helly Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -2815,6 +2815,12 @@
} else if (zend_u_lookup_class(Z_TYPE_PP(obj), Z_UNIVAL_PP(obj), Z_UNILEN_PP(obj), &pce
TSRMLS_CC) == SUCCESS) {
ce = *pce;
}
+ if (EG(This)) {
+ if (instanceof_function(Z_OBJCE_P(EG(This)), ce TSRMLS_CC)) {
+ *zobj_ptr_ptr = &EG(This);
+ zend_error(E_STRICT, "Non-static method %v::%R() cannot be called statically, assuming
$this from compatible context %s", ce->name, Z_TYPE_PP(method), Z_STRVAL_PP(method),
Z_OBJCE_P(EG(This))->name);
+ }
+ }
efree(lcname);
} else {