cvs: ZendEngine2(PHP_5_3) / zend_builtin_functions.c /tests bug43483.phpt
[email protected] ("Dmitry Stogov")
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvsdmitry1203606867@cvsserver> |
dmitry Thu Feb 21 15:14:27 2008 UTC
Added files: (Branch: PHP_5_3)
/ZendEngine2/tests bug43483.phpt
Modified files:
/ZendEngine2 zend_builtin_functions.c
Log:
Fixed bug #43483 (get_class_methods() does not list all visible methods)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_builtin_functions.c?r1=1.277.2.12.2.25.2.11&r2=1.277.2.12.2.25.2.12&diff_format=u
Index: ZendEngine2/zend_builtin_functions.c
diff -u ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.25.2.11 ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.25.2.12
--- ZendEngine2/zend_builtin_functions.c:1.277.2.12.2.25.2.11 Tue Feb 19 16:39:18 2008
+++ ZendEngine2/zend_builtin_functions.c Thu Feb 21 15:14:27 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_builtin_functions.c,v 1.277.2.12.2.25.2.11 2008/02/19 16:39:18 dmitry Exp $ */
+/* $Id: zend_builtin_functions.c,v 1.277.2.12.2.25.2.12 2008/02/21 15:14:27 dmitry Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -910,7 +910,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