cvs: ZendEngine2(PHP_5_2) / zend_builtin_functions.c /tests bug43483.phpt php-src NEWS

[email protected] ("Dmitry Stogov")
Newsgroups php.zend-engine.cvs
Message-ID <cvsdmitry1203606853@cvsserver>
dmitry		Thu Feb 21 15:14:13 2008 UTC

  Added files:                 (Branch: PHP_5_2)
    /ZendEngine2/tests	bug43483.phpt 

  Modified files:              
    /php-src	NEWS 
    /ZendEngine2	zend_builtin_functions.c 
  Log:
  Fixed bug #43483 (get_class_methods() does not list all visible methods)
  
  
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.1091&r2=1.2027.2.547.2.1092&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1091 php-src/NEWS:1.2027.2.547.2.1092
--- php-src/NEWS:1.2027.2.547.2.1091	Thu Feb 21 13:55:21 2008
+++ php-src/NEWS	Thu Feb 21 15:14:12 2008
@@ -81,6 +81,8 @@
   is not available). (Ilia)
 - Fixed bug #43491 (Under certain conditions, file_exists() never returns).
   (Dmitry)
+- Fixed bug #43483 (get_class_methods() does not list all visible methods).
+  (Dmitry)
 - Fixed bug #43482 (array_pad() does not warn on very small pad numbers).
   (Ilia)
 - Fixed bug #43457 (Prepared statement with incorrect parms doesn't throw
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_builtin_functions.c?r1=1.277.2.12.2.28&r2=1.277.2.12.2.29&diff_format=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.28 ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.29
--- ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.28	Tue Feb 19 16:39:02 2008
+++ ZendEngine2/zend_builtin_functions.c	Thu Feb 21 15:14:12 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_builtin_functions.c,v 1.277.2.12.2.28 2008/02/19 16:39:02 dmitry Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.277.2.12.2.29 2008/02/21 15:14:12 dmitry Exp $ */
 
 #include "zend.h"
 #include "zend_API.h"
@@ -867,7 +867,7 @@
 		if ((mptr->common.fn_flags & ZEND_ACC_PUBLIC) 
 		 || (EG(scope) &&
 		     (((mptr->common.fn_flags & ZEND_ACC_PROTECTED) &&
-		       instanceof_function(EG(scope), mptr->common.scope TSRMLS_CC))
+		       zend_check_protected(mptr->common.scope, EG(scope)))
 		   || ((mptr->common.fn_flags & ZEND_ACC_PRIVATE) &&
 		       EG(scope) == mptr->common.scope)))) {
 			char *key;

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug43483.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug43483.phpt
+++ ZendEngine2/tests/bug43483.phpt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.