PHP :: Bug #65108 :: is_callable() triggers Fatal Error
| Bug #65108 | is_callable() triggers Fatal Error | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2013-06-24 09:55 UTC | Modified: | 2013-06-25 04:41 UTC |
|
||||||||||
| From: | miloslav dot hula at gmail dot com | Assigned: | laruence (profile) | |||||||||||
| Status: | Closed | Package: | *General Issues | |||||||||||
| PHP Version: | 5.5Git-2013-06-24 (snap) | OS: | ||||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2013-06-24 09:55 UTC] miloslav dot hula at gmail dot com
Description: ------------ A Fatal Error is emmited when using is_callable() in static context on class with defined the __call() method and non-public non-static method simultaneously. Similar to https://bugs.php.net/bug.php?id=33455. Test script: --------------- class C { private function f() {} function __call($name, $args) {} } $isCallable = is_callable(array('C', 'f')); Expected result: ---------------- $isCallable is boolean Actual result: -------------- Fatal Error
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2013-06-24 10:01 UTC] miloslav dot hula at gmail dot com
[2013-06-24 15:21 UTC] dsp@php.net
-Status: Open +Status: Closed
[2013-06-24 18:55 UTC] miloslav dot hula at gmail dot com