#46204 [Opn->Fbk]: Anonymous function segfaults when used in spl_autoload_register

From: Date: Wed, 01 Oct 2008 23:25:39 +0000
Subject: #46204 [Opn->Fbk]: Anonymous function segfaults when used in spl_autoload_register
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129401@lists.php.net to get a copy of this message
ID: 46204 Updated by: felipe@php.net Reported By: north at sublink dot ca -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: linux 2.6 PHP Version: 5.3.0alpha2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows (zip): http://snaps.php.net/win32/php5.3-win32-latest.zip For Windows (installer): http://snaps.php.net/win32/php5.3-win32-installer-latest.msi I can't reproduce it. Previous Comments: ------------------------------------------------------------------------ [2008-09-30 17:48:56] north at sublink dot ca Description: ------------ Using an lambda function as the argument to spl_autoload_register causes a segfault. When storing the lambda function in a variable though, it works fine: <?php $l = function($name){}; spl_autoload_register($l); new O(); ?> Using a default install. Reproduce code: --------------- <?php spl_autoload_register(function($name){}); new O(); ?> Expected result: ---------------- Fatal error: Class 'O' not found Actual result: -------------- Segmentation fault. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46204&edit=1

« previous php.bugs (#129401) next »