cvs: ZendEngine2(PHP_5_0) / zend_object_handlers.c /tests bug30820.phpt php-src NEWS

From: Date: Wed, 08 Jun 2005 08:05:27 +0000
Subject: cvs: ZendEngine2(PHP_5_0) / zend_object_handlers.c /tests bug30820.phpt php-src NEWS
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3755@lists.php.net to get a copy of this message
dmitry Wed Jun 8 04:05:27 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug30820.phpt Modified files: /php-src NEWS /ZendEngine2 zend_object_handlers.c Log: Fixed bug #30820 (static member conflict with $this->member silently ignored) http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.426&r2=1.1760.2.427&ty=u Index: php-src/NEWS diff -u php-src/NEWS:1.1760.2.426 php-src/NEWS:1.1760.2.427 --- php-src/NEWS:1.1760.2.426 Wed Jun 8 02:48:31 2005 +++ php-src/NEWS Wed Jun 8 04:05:17 2005 @@ -129,6 +129,8 @@ (Dmitry) - Fixed bug #30889 (Conflict between __get/__set and ++ operator). (Dmitry) - Fixed bug #30833 (array_count_values() modifying input array). (Tony) +- Fixed bug #30820 (static member conflict with $this->member silently + ignored). (Dmitry) - Fixed bug #30819 (Better support for LDAP SASL bind). (Jani) - Fixed bug #30791 (magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded). (Dmitry) http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.c?r1=1.101.2.14&r2=1.101.2.15&ty=u Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.101.2.14 ZendEngine2/zend_object_handlers.c:1.101.2.15 --- ZendEngine2/zend_object_handlers.c:1.101.2.14 Mon Jun 6 03:51:19 2005 +++ ZendEngine2/zend_object_handlers.c Wed Jun 8 04:05:27 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.101.2.14 2005/06/06 07:51:19 dmitry Exp $ */ +/* $Id: zend_object_handlers.c,v 1.101.2.15 2005/06/08 08:05:27 dmitry Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -214,6 +214,9 @@ * continue checking below... */ } else { + if (!silent && (property_info->flags & ZEND_ACC_STATIC)) { + zend_error(E_STRICT, "Accessing static property %s::$%s as non static", zobj->ce->name, Z_STRVAL_P(member)); + } return property_info; } } else { http://cvs.php.net/co.php/ZendEngine2/tests/bug30820.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug30820.phpt +++ ZendEngine2/tests/bug30820.phpt

« previous php.zend-engine.cvs (#3755) next »