php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58539 Bus error with Closures
Submitted: 2009-02-06 08:44 UTC Modified: 2009-07-15 13:13 UTC
From: r dot borschel at gmx dot net Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5_3 CVS-2009-02-06 (dev) OS: OS X 10.5.6
Private report: No CVE-ID: None
 [2009-02-06 08:44 UTC] r dot borschel at gmx dot net
Description:
------------
I'm getting a "Bus error" when using closures while APC is enabled. The script can be as simple as this:

As soon as I disable APC (apc.enabled=0) it works fine.

Reproduce code:
---------------
<?php
$func = function() { echo "foo"; };
?>


Expected result:
----------------
No bus error :-)

Actual result:
--------------
"Bus error"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-06 17:55 UTC] gopalv82 at yahoo dot com
Never even implemented that. 

Will get around to it soonish.
 [2009-07-15 10:14 UTC] gopalv82 at yahoo dot com
Tested this with the apc-3.1.3-dev (svn trunk) + php-5.3.1-dev (branch tip).

No sigbus or any other errors observed. 

Please re-test with the latest code.
 [2009-07-15 13:13 UTC] r dot borschel at gmx dot net
I can confirm that it works with the latest code from cvs/svn. Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 10:01:30 2024 UTC