|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75220 is_callable crash for 'parent'
Submitted: 2017-09-18 07:14 UTC Modified: -
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: maybeonly at gmail dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 7.1.9 OS: centos 7/fedora 26
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: maybeonly at gmail dot com
New email:
PHP Version: OS:


 [2017-09-18 07:14 UTC] maybeonly at gmail dot com
Please see code below.
It also crashes in php 7.0.23.

Test script:
$a = new A();

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"

Actual result:


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-09-18 08:22 UTC] andrew dot nester dot dev at gmail dot com
Thanks for pointing this issue! I've just sent PR fixing this.
 [2017-09-27 05:09 UTC]
Automatic comment on behalf of
Log: Fixed #75220 - Segfault when calling is_callable on parent
 [2017-09-27 05:09 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Wed Sep 19 20:01:27 2018 UTC