ID:               46204
 Comment by:       north at sublink dot ca
 Reported By:      north at sublink dot ca
 Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: linux 2.6
 PHP Version:      5.3.0alpha2
 New Comment:

I've tried using the latest snapshot of 5.3 (php5.3-200810012230)

PHP 5.3.0alpha3-dev (cli) (built: Oct  1 2008 16:52:06) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies

This still causes a segfault:

php -r 'spl_autoload_register(function($n){});new T();'

I`m running Ubuntu 8.04.1 inside of VirtualBox 2.0.2

Let me know if there is any other information that would be helpful.


Previous Comments:
------------------------------------------------------------------------

[2008-10-01 23:25:38] [EMAIL PROTECTED]

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.

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

[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