Bug #54760 [Opn->Fbk]: Multiple closure invocations 'using' a static variable crashes engine
| From: | felipe@php.net | Date: | Fri, 20 May 2011 21:51:48 +0000 |
| Subject: | Bug #54760 [Opn->Fbk]: Multiple closure invocations 'using' a static variable crashes engine | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160874@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54760&edit=1
ID: 54760
Updated by: felipe@php.net
Reported by: jerry at jmweb dot net
Summary: Multiple closure invocations 'using' a static
variable crashes engine
-Status: Open
+Status: Feedback
Type: Bug
Package: Scripting Engine problem
Operating System: Linux Apache 2.2.17
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
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
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
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.
Previous Comments:
------------------------------------------------------------------------
[2011-05-17 01:39:58] jerry at jmweb dot net
Description:
------------
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:
---------------
ftp://guest:guest@bytes1.dyndns.org/PUBLIC/php_bug/php_bug.php
Expected result:
----------------
1<br>2<br>3<br>
Actual result:
--------------
No result. Scripting engine crashes.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54760&edit=1