ID: 29210 Updated by: [EMAIL PROTECTED] Reported By: freeload at softhome dot net -Status: Feedback +Status: Verified Bug Type: Zend Engine 2 problem Operating System: Windows XP PHP Version: 5.0.0 New Comment:
Jani, no need in testing. We're still waiting for Andi's approval. See this thread in internals: http://news.php.net/php.internals/15092 Previous Comments: ------------------------------------------------------------------------ [2005-03-06 20:48:59] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip ------------------------------------------------------------------------ [2004-08-29 06:53:25] [EMAIL PROTECTED] This patch should fix the bug: http://tony2001.phpclub.net/dev/tmp/is_callable.diff test file: http://tony2001.phpclub.net/dev/tmp/is_callable.phpt ------------------------------------------------------------------------ [2004-07-16 15:07:46] freeload at softhome dot net Description: ------------ The built in function is_callable, does not return false, on unreachable functions like protected and private ones. Reproduce code: --------------- <?php class test_class { private function test_func1(){} protected function test_func2(){} } $object = new test_class; var_dump(is_callable(array($object,'test_func1'))); echo chr(10); var_dump(is_callable(array($object,'test_func2'))); ?> Expected result: ---------------- bool(false) bool(false) Actual result: -------------- bool(true) bool(true) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29210&edit=1