From: [EMAIL PROTECTED]
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