|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-26 22:21 UTC] pollita@php.net
[2013-02-26 22:21 UTC] pollita@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: pollita
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 23:00:01 2025 UTC |
Description: ------------ If in a base class "Simple" to add a method "__call", at its call in an inherited class "Simple2" the Apache crashes. Reproduce code: --------------- class Simple { public function foo() { return "foo!"; } } class Simple2 extends Simple { public function foo() { return "foo2"; } } $__call = 'return call_user_func_array(array($this, "prefix_".$method), $args);'; runkit_method_add('Simple', '__call', '$method, $args = array()', $__call, RUNKIT_ACC_PUBLIC); runkit_method_rename('Simple2', 'foo', 'prefix_foo'); $simple = new Simple2(); $simple->foo();