#50261 [Asn->Csd]: Crash When Calling Parent Constructor with call_user_func()

From: Date: Mon, 30 Nov 2009 11:40:07 +0000
Subject: #50261 [Asn->Csd]: Crash When Calling Parent Constructor with call_user_func()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-145205@lists.php.net to get a copy of this message
 ID:               50261
 Updated by:       dmitry@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] svn@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] tony2001@php.net

Dmitry, could you take a look at it?

------------------------------------------------------------------------

[2009-11-23 23:07:07] svn@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] jani@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



Thread (7 messages)

« previous php.bugs (#145205) next »