From: freeload at softhome dot net
Operating system: Windows XP
PHP version: 5.0.0
PHP Bug Type: Unknown/Other Function
Bug description: Function: is_callable - no support for private and protected classes
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 bug report at http://bugs.php.net/?id=29210&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29210&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29210&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29210&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29210&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29210&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29210&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29210&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29210&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29210&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29210&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29210&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29210&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29210&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29210&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29210&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29210&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29210&r=float