diff options
author | Xinchen Hui <laruence@php.net> | 2013-06-24 23:45:08 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2013-06-24 23:45:08 +0800 |
commit | 9cf3e65391d6aa637e5471449499e957cff6ee89 (patch) | |
tree | d815ed3c58963b467a3cb630efe6c6457fce21ad /Zend/tests | |
parent | a0d48e01edb90a6b9a3db39104b9d7b098001dba (diff) | |
download | php-git-9cf3e65391d6aa637e5471449499e957cff6ee89.tar.gz |
Fixed bug (is_callable() triggers Fatal Error)
This bug is also exists in 5.4, and previous fix by dsp is not complete
for __callStatic stituation, see test script
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/bug65108.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Zend/tests/bug65108.phpt b/Zend/tests/bug65108.phpt new file mode 100644 index 0000000000..d3e5a65b26 --- /dev/null +++ b/Zend/tests/bug65108.phpt @@ -0,0 +1,27 @@ +--TEST-- +Bug #65108 (is_callable() triggers Fatal Error) +--FILE-- +<?php +class C { + private function f() {} + static function __callStatic($name, $args) {} +} + +class B { + public function B() { + $isCallable = is_callable(array(new C, 'f')); + var_dump($isCallable); + } +} + +new B(); + +Class E { + private function f() {} + function __call($name, $args) {} +} +$isCallable = is_callable(array('E', 'f')); +var_dump($isCallable); +--EXPECT-- +bool(false) +bool(false) |