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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: r dot borschel at gmx dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 01:01:35 2025 UTC