For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > November 2007 > Re: [PHP-DOC] E_STRICT: runtime or not?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DOC] E_STRICT: runtime or not?
Antony Dovgal

2007-11-23, 7:01 pm

On 24.11.2007 00:58, Edward Z. Yang wrote:
> The doc page <http://docs.php.net/manual/en/ref.errorfunc.php> states
> that E_STRICT consists of "run-time notices", however
> error_reporting()'s <http://docs.php.net/error_reporting> doc page
> claims that "Most of E_STRICT errors are evaluated at compile time."
>
> Which is correct? From personal experience, the former is correct on
> later versions of PHP 5, when using "var" is not considered a E_STRICT
> error.


Both are correct, of course.
Error messages of different level may appear during compilation AND execution.

--
Wbr,
Antony Dovgal
Edward Z. Yang

2007-11-23, 10:02 pm

Antony Dovgal wrote:
> Both are correct, of course.
> Error messages of different level may appear during compilation AND execution.


But suppose I change error_reporting, then include a file. Then the
compile time errors are caught, no?

--
Edward Z. Yang GnuPG: 0x869C48DA
HTML Purifier <http://htmlpurifier.org> Anti-XSS Filter
[[ 3FA8 E9A9 7385 B691 A6FC B3CB A933 BE7D 869C 48DA ]]
Antony Dovgal

2007-11-24, 8:00 am

On 24.11.2007 05:32, Edward Z. Yang wrote:
> Antony Dovgal wrote:
>
> But suppose I change error_reporting, then include a file. Then the
> compile time errors are caught, no?


Exactly.

--
Wbr,
Antony Dovgal
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com