|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54760 Multiple closure invocations 'using' a static variable crashes engine
Submitted: 2011-05-17 01:39 UTC Modified: 2013-02-18 00:34 UTC
From: jerry at jmweb dot net Assigned:
Status: No Feedback Package: Scripting Engine problem
PHP Version: 5.3.6 OS: Linux Apache 2.2.17
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
33 - 9 = ?
Subscribe to this entry?

 [2011-05-17 01:39 UTC] jerry at jmweb dot net
When a closure is invoked more than once that 'uses' a variable defined with the 
'static' keyword, the scripting engine crashes. No output is sent to the browser 
and server issues no response.

If we remove the 'static' keyword from the variable declaration, the issue is 
resolved. Note that in PHP 5.3.5, this issue was not present.

Test script:

Expected result:

Actual result:
No result. Scripting engine crashes.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-20 23:51 UTC]
-Status: Open +Status: Feedback
 [2011-05-20 23:51 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read for *NIX and for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can't reproduce it.
 [2013-02-18 00:34 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 23:01:31 2024 UTC