Re: "use strict" or similar in PHP?

From: Date: Thu, 26 Feb 2009 21:53:31 +0000
Subject: Re: "use strict" or similar in PHP?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-288878@lists.php.net to get a copy of this message
Hans Schultz wrote: > Thanks a lot for your info, I will check that IDE too. But those > warning levels give me warning only when they encounter offending > code? Are you telling me that it can be setup to fail entire script > prior to any execution if there are errors in it? Can you please > point me how to setup my PHP installation that way? > Only thing I can think of is to set auto_prepend_file in php.ini and then setup a custom error handler in that file to die() on whatever errors you want. http://php.net/manual/function.set-error-handler.php -Shawn

« previous php.general (#288878) next »