#18668 [NEW]: Initialization of static hash array variable crashes PHP

From: Date: Wed, 31 Jul 2002 13:53:13 +0000
Subject: #18668 [NEW]: Initialization of static hash array variable crashes PHP
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15672@lists.php.net to get a copy of this message
From: michiwalter@gmx.de Operating system: Windows 2000 PHP version: 4.2.1 PHP Bug Type: Arrays related Bug description: Initialization of static hash array variable crashes PHP Summary: Initialization of a static hash array variable in a function crashes PHP under certain circumstances. Crash reproducable on these platforms: - Windows 2000/IIS/PHP 4.2.1 (CGI) - Windows 2000/Apache 1.3.24/PHP 4.2.0 - Linux deathrow 2.4.9-34/Apache 1.3.26/PHP 4.2.2 Test Script: <?php define('A', 'A'); define('B', 'B'); function test() { // Apparently only crashes under the following circumstances: // 1. The key has to be a define(). // 2. The value has to contain a string. // 3. The hash has to be a static function member. // 4. The hash has to contain at least 2 entries. static $test=array( A=>'A', B=>'B' ); } test(); ?> Further Information: error/access_log don't contain any information about the crash (what about an SEH handler:). -- Edit bug report at http://bugs.php.net/?id=18668&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18668&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18668&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18668&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18668&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18668&r=support Expected behavior: http://bugs.php.net/fix.php?id=18668&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18668&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18668&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18668&r=globals

« previous php.bugs (#15672) next »