Bug #54760 [NEW]: Multiple closure invocations 'using' a static variable crashes engine

From: Date: Mon, 16 May 2011 23:39:59 +0000
Subject: Bug #54760 [NEW]: Multiple closure invocations 'using' a static variable crashes engine
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-160771@lists.php.net to get a copy of this message
From:             
Operating system: Linux Apache 2.2.17
PHP version:      5.3.6
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Multiple closure invocations 'using' a static variable crashes engine

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 bug report at http://bugs.php.net/bug.php?id=54760&edit=1
-- 
Try a snapshot (PHP 5.2):            http://bugs.php.net/fix.php?id=54760&r=trysnapshot52
Try a snapshot (PHP 5.3):            http://bugs.php.net/fix.php?id=54760&r=trysnapshot53
Try a snapshot (trunk):              http://bugs.php.net/fix.php?id=54760&r=trysnapshottrunk
Fixed in SVN:                        http://bugs.php.net/fix.php?id=54760&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54760&r=needdocs
Fixed in release:                    http://bugs.php.net/fix.php?id=54760&r=alreadyfixed
Need backtrace:                      http://bugs.php.net/fix.php?id=54760&r=needtrace
Need Reproduce Script:               http://bugs.php.net/fix.php?id=54760&r=needscript
Try newer version:                   http://bugs.php.net/fix.php?id=54760&r=oldversion
Not developer issue:                 http://bugs.php.net/fix.php?id=54760&r=support
Expected behavior:                   http://bugs.php.net/fix.php?id=54760&r=notwrong
Not enough info:                     http://bugs.php.net/fix.php?id=54760&r=notenoughinfo
Submitted twice:                     http://bugs.php.net/fix.php?id=54760&r=submittedtwice
register_globals:                    http://bugs.php.net/fix.php?id=54760&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=54760&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=54760&r=dst
IIS Stability:                       http://bugs.php.net/fix.php?id=54760&r=isapi
Install GNU Sed:                     http://bugs.php.net/fix.php?id=54760&r=gnused
Floating point limitations:          http://bugs.php.net/fix.php?id=54760&r=float
No Zend Extensions:                  http://bugs.php.net/fix.php?id=54760&r=nozend
MySQL Configuration Error:           http://bugs.php.net/fix.php?id=54760&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#160771) next »