NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Is there a way to ignore E_STRICT for PHP5?


Joined: 31 May 2004
Posts: 9
Reply with quote
I'm not sure if this is a PhpEd issue or DBG, posting it here.

I'm using PHP5RC2 and DBG 2.16.7, PheEd 3.3.1 and am getting
the message "var: Depredated. Please use the public/private/protected..."
when working with PHP4 classes.

That's fine and expected, but my scripts take much longer to run because
it's outputting hundreds of E_??? messages to the PhpEd error window.

I'd like to disable this but have not been able to. Best would be to disable
E_STRICT only, or E_ALL if I must.

I've tried setting
error_reporting(E_ALL & ~E_STRICT)
at the top of a file that gets included in all files.

I have also set Error level to 0 in Tools | Settings | Debugger, but I
still get the messages.

I realize PHP5 is still a RC and probably not fully supported in DBG and PhpEd, but... it there anything I can do?
View user's profileFind all posts by bldrdashSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
In 5.0.0rc2 E_ALL is defined as


Do you see E_STRICT there ? I don't either.
So it's clear that in 5.0.0rc2 E_STRICT can't be disabled at all.

Please post a question at news.php.net news group php.internals.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 31 May 2004
Posts: 9
Reply with quote
Agrred, I don't see it in E_ALL, as is mentioned in the ./zend/changelog.

But... value of error_reporting in zend.c still gets set.

According to http://www.php.net/manual/en/function.error-reporting.php E_ALL is 2047 and E_STRICT is 2048.

I don't know how DBG works, but I assume it registers an error handler, then whatever matches the error_level gets sent. Could it be there is code in DBG's handler that says:
Code:
 // fictional DBG C code...
if (error_level >= E_ALL)
    send_the_error_to_client(error_code, error_msg);


Or does DBG rely on some other setting, function, variable than what gets set in PHP's error_reporting();

Anyway.. why would PhpEd display any errors if Error Level is set to 0?
View user's profileFind all posts by bldrdashSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
should work fine in phped build 3359 & dbg 2.16.9
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Is there a way to ignore E_STRICT for PHP5?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic