Bug #15737: isset() dont work with $str[$index]

From: Date: Tue, 26 Feb 2002 18:52:05 +0000
Subject: Bug #15737: isset() dont work with $str[$index]
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1107@lists.php.net to get a copy of this message
From: Beater@orgalan.de Operating system: Win32 / Linux PHP version: 4.1.1 PHP Bug Type: Compile Warning Bug description: isset() dont work with $str[$index] <?php function test($foo = 'bar') { for($i=0; $i<5; $i++) { !isset($foo[$i]) ? $foo[$i] = 0 : 0; echo $foo[$i]; } } test(); ?> works fine on 4.0.6; 4.1.1 (linux and win32) announces "Uninitialized string offset on line 6..." -- Edit bug report at http://bugs.php.net/?id=15737&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15737&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15737&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15737&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15737&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15737&r=support Expected behavior: http://bugs.php.net/fix.php?id=15737&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15737&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15737&r=submittedtwice

« previous php.bugs (#1107) next »