ID:               46204
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to