ID: 15825
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Analyzed
+Status: Closed
Bug Type: Variables related
Operating System: ANY
PHP Version: 4.0CVS-2002-03-0
New Comment:
There is nothing wrong here, it prints "PHP Notice: Uninitialized
string offset: 0 in - on line 5" for me, which it should.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-03-01 22:32:40] [EMAIL PROTECTED]
Should be fixed before 4.2.0, IMO
------------------------------------------------------------------------
[2002-03-01 22:32:03] [EMAIL PROTECTED]
4.0..x does not raise error, but 4.1.x does.
<?php
error_reporting(E_ALL);
class testclass { var $dd = ""; }
$test = new testclass();
if (isset($test->dd[0])){
echo "(A) TRUE \n";
}else{
echo "(A) FALSE \n";
}
if (is_array($test->dd) && isset($test->dd[0])){
echo "(B) TRUE \n";
}else{
echo "(B) FALSE \n";
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15825&edit=1