Bug #63336 [Asn->Nab]: invalid E_NOTICE error occur

From: Date: Tue, 14 Apr 2015 14:12:37 +0000
Subject: Bug #63336 [Asn->Nab]: invalid E_NOTICE error occur
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192042@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63336&edit=1 ID: 63336 Updated by: dmitry@php.net Reported by: tomoya-yokota at cybozu dot co dot jp Summary: invalid E_NOTICE error occur -Status: Assigned +Status: Not a bug Type: Bug Package: Compile Warning Operating System: ubuntu12.04 PHP Version: 5.4.8 Assigned To: laruence Block user comment: N Private report: N New Comment: This is not a bug. You see compile-time warning messages, that are emitted before error_reporting() function is executed. If you call error_reporting() before including this file the messages are hidden. Previous Comments: ------------------------------------------------------------------------ [2012-10-23 08:25:24] laruence@php.net an solution is stop resolve constant value while in E_STRICT warning showing up. but that will introduce a little bc break. ------------------------------------------------------------------------ [2012-10-23 07:18:27] laruence@php.net Oh, I see your point. ------------------------------------------------------------------------ [2012-10-23 06:09:04] tomoya-yokota at cybozu dot co dot jp in PHP5.3, E_NOTICE error did not occur. But in PHP5.4, E_NOTICE error would occur. Is it error reporting specification? ------------------------------------------------------------------------ [2012-10-23 06:00:40] laruence@php.net I am not sure, E_ALL & ~ E_STRICT == E_ALL without E_STRICT.. maybe you mistake your except result? ------------------------------------------------------------------------ [2012-10-23 04:27:05] tomoya-yokota at cybozu dot co dot jp > you said "set error_reporting with error_report( E_STRICT & ~ E_STRICT )." Sorry. It is wrong. Test script is correct ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=63336 -- Edit this bug report at https://bugs.php.net/bug.php?id=63336&edit=1

« previous php.bugs (#192042) next »