ID:               29433
 User updated by:  freeload at softhome dot net
 Reported By:      freeload at softhome dot net
-Status:           Feedback
+Status:           Closed
 Bug Type:         *General Issues
 Operating System: Windows NT/XP
 PHP Version:      5.0.0
 New Comment:

Arg, also used php5 rc2 :P, sry! my mistake!! thanx!!


Previous Comments:
------------------------------------------------------------------------

[2004-07-29 00:59:04] [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

Works just fine here. 

------------------------------------------------------------------------

[2004-07-28 18:22: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=29433&edit=1

Reply via email to