From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.2.3
PHP Bug Type: PHP options/info functions
Bug description: no warning shown for uninitialized vars in classes anymore
I noticed that unknown variable messages have changed from E_WARNING to
E_NOTICE.
With PHP Version 4.1.2 the follwing code gives a warning message that $foo
is not known. I Upgraded to PHP 4.2.3 and now there is *no* message
anymore :-(
<?
error_reporting(E_ALL);
class bla {
var $foo;
function bla() {
echo $this->foo;
}
}
$c = new bla();
// the follwoing line stille produces a message:
//echo $bar;
?>
--
Edit bug report at http://bugs.php.net/?id=20119&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20119&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20119&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20119&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20119&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20119&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20119&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20119&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20119&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20119&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20119&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20119&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20119&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20119&r=isapi