#48023 [Com]: Anonymous function segfaults when used in spl_autoload_register
| From: | bugs dot php dot net at moesen dot nu | Date: | Mon, 20 Apr 2009 09:06:30 +0000 |
| Subject: | #48023 [Com]: Anonymous function segfaults when used in spl_autoload_register | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136010@lists.php.net to get a copy of this message | ||
ID: 48023
Comment by: bugs dot php dot net at moesen dot nu
Reported By: bugs dot php dot net at moesen dot nu
Status: Feedback
Bug Type: Reproducible crash
Operating System: Linux 2.6
PHP Version: 5.3.0RC1
New Comment:
$ ./php -r 'spl_autoload_register(function () { }); new Foo();'
Segmentation fault
$ ./php -r 'spl_autoload_register($x = function () { }); new Foo();'
Fatal error: Class 'Foo' not found in Command line code on line 1
$ ./php --version
PHP 5.3.0RC2-dev (cli) (built: Apr 20 2009 11:04:24)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
Previous Comments:
------------------------------------------------------------------------
[2009-04-20 08:20:44] pajoye@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-04-20 08:18:32] bugs dot php dot net at moesen dot nu
Description:
------------
Bug #46204 was incorrectly marked as BOGUS. Please reopen it.
Reproduce code:
---------------
Segfaults:
spl_autoload_register($x = function () { });
Does not segfault:
spl_autoload_register(function () { });
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48023&edit=1