#29433 [NEW]: The built in function is_callable, does not return false, on unreachable functi
| From: | freeload at softhome dot net | Date: | Wed, 28 Jul 2004 16:22:46 +0000 |
| Subject: | #29433 [NEW]: The built in function is_callable, does not return false, on unreachable functi | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-63690@lists.php.net to get a copy of this message | ||
From: freeload at softhome dot net
Operating system: Windows NT/XP
PHP version: 5.0.0
PHP Bug Type: *General Issues
Bug description: The built in function is_callable, does not return false, on unreachable functi
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=29433&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29433&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29433&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29433&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29433&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29433&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29433&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29433&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29433&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29433&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29433&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29433&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29433&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29433&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29433&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29433&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29433&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29433&r=float