note 89442 added to language.variables.scope

From: Date: Sun, 08 Mar 2009 02:49:46 +0000
Subject: note 89442 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-151615@lists.php.net to get a copy of this message
Sami and Mega-Squall, try turning on a higher level of error reporting. You will see that what you're doing does in fact generate errors. It may not generate them at the level of E_WARN and it may not be fatal, but it's there at E_STRICT. If you're finding in PHP6 that these new errors have come up it's because E_STRICT got a bit of a rethink and is now part of E_ALL (surprisingly it wasn't in earlier php versions) and it's not that surprising that the error for abusing -> and :: couldbe moved to a warning. To turn on E_STRICT error reporting you need to use a binary or: <?php // this is better set in php.ini -- NB this is correct in php5 error_reporting(E_ALL | ESTRICT); ?> So, php doesn't want you doing what you're claiming after all. ---- Server IP: 203.89.181.186 Probable Submitter: 125.236.211.165 ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- https://master.php.net/note/edit/89442 Del: integrated -- https://master.php.net/note/delete/89442/integrated Del: useless -- https://master.php.net/note/delete/89442/useless Del: bad code -- https://master.php.net/note/delete/89442/bad+code Del: spam -- https://master.php.net/note/delete/89442/spam Del: non-english -- https://master.php.net/note/delete/89442/non-english Del: in docs -- https://master.php.net/note/delete/89442/in+docs Del: other reasons-- https://master.php.net/note/delete/89442 Reject -- https://master.php.net/note/reject/89442 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151615) next »