ID: 50261 Updated by: dmi...@php.net Reported By: tom at tomwardrop dot com -Status: Assigned +Status: Closed Bug Type: Reproducible crash Operating System: * PHP Version: 5.3, 6 Assigned To: dmitry New Comment:
This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-11-30 11:39:54] s...@php.net Automatic comment from SVN on behalf of dmitry Revision: http://svn.php.net/viewvc/?view=revision&revision=291488 Log: Fixed bug #50261 (Crash When Calling Parent Constructor with call_user_func()) ------------------------------------------------------------------------ [2009-11-24 09:22:13] tony2...@php.net Dmitry, could you take a look at it? ------------------------------------------------------------------------ [2009-11-23 23:07:07] s...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=291248 Log: - Added test for bug #50261 ------------------------------------------------------------------------ [2009-11-22 18:37:37] j...@php.net In PHP_5_2 you get this error and no crash: Warning: call_user_func(parent::__construct): First argument is expected to be a valid callback.. ------------------------------------------------------------------------ [2009-11-22 10:08:22] tom at tomwardrop dot com To clarify, replacing... call_user_func(array('parent', '__construct')); ...with... parent::__construct(); ...works as expected, hence it's definitely a problem with the "call_user_func" and "call_user_func_array" functions. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/50261 -- Edit this bug report at http://bugs.php.net/?id=50261&edit=1