#20119 [Opn->Bgs]: no warning shown for uninitialized vars in classes anymore

From: Date: Sun, 27 Oct 2002 15:14:23 +0000
Subject: #20119 [Opn->Bgs]: no warning shown for uninitialized vars in classes anymore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23420@lists.php.net to get a copy of this message
ID: 20119 Updated by: derick@php.net Reported By: marc@links2linux.de -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: Linux PHP Version: 4.2.3 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2002-10-27 09:08:21] marc@links2linux.de 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 this bug report at http://bugs.php.net/?id=20119&edit=1

« previous php.bugs (#23420) next »