|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2017-09-18 08:22 UTC] andrew dot nester dot dev at gmail dot com
[2017-09-27 05:09 UTC] krakjoe@php.net
[2017-09-27 05:09 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 21:00:01 2025 UTC |
Description: ------------ Please see code below. It also crashes in php 7.0.23. Test script: --------------- $a = new A(); $a->bar('foo'); class B {}; class A extends B { function bar($func) { var_dump('foo'); #ok var_dump(is_callable('parent::foo')); #ok var_dump(is_callable(array('parent', 'foo'))); #crash } function __call($func, $args) { //if this function does not exist, it won't crash } }; Expected result: ---------------- string(3) "foo" bool(false) bool(false) Actual result: -------------- crashed