FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Why don't I get a deprecation warning?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Why don't I get a deprecation warning? [message #170628 is a reply to message #170627] Thu, 11 November 2010 22:32 Go to previous messageGo to previous message
Roy Smith is currently offline  Roy Smith
Messages: 11
Registered: November 2010
Karma:
Junior Member
On Nov 11, 5:06 pm, Roy Smith <r...@panix.com> wrote:
> On Nov 11, 4:56 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>
>> What are error_reporting and display_errors set to in your php.ini file?
>>   (Check phpinfo() to be sure.)
>
> display_errors => Off => Off
> error_reporting => 22527 => 22527

For what it's worth, this doesn't print anything either:

<?php
ini_set('display_errors', 1);
error_reporting(E_ALL|E_STRICT);
$matches = array();
preg_match('/pattern/', 'string', &$matches);
?>

If I stick in some other kind of error (such as "echo $x;", where $x
is undefined), it does report that error...

php try.php
PHP Notice: Undefined variable: x in /home/roy/play/php/try.php on
line 6

Notice: Undefined variable: x in /home/roy/play/php/try.php on line 6

So, I think the problem is not so much the error reporting, as the
error not getting generated in the first place. Is there some magic
setting which determines if call-time call by value expressions
generate warnings or not?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ANNOUNCE: NHI1-0.9, PLMK-1.7 und libmsgque-4.7
Next Topic: where else can this list be found?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:01:07 GMT 2024

Total time taken to generate the page: 0.03917 seconds