-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Cleanup of remaning E_STRICT #4401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ foo = E_ALL E_NOTICE | |
error_reporting = E_ALL | ||
error_reporting1 = E_COMPILE_ERROR|E_RECOVERABLE_ERROR |E_ERROR|E_CORE_ERROR | ||
error_reporting2 = E_ALL&~E_NOTICE | ||
error_reporting3 = E_ALL & ~E_NOTICE | ||
error_reporting4 = E_ALL & ~E_NOTICE | E_STRICT | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be kept with E_STRICT replaced with something else, I think. Possibly just a dummy value (if hex is supported, something like 0x100000), as this is a parsing test. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a bunch of whitespaces after are those part of the test too? |
||
error_reporting3 = E_ALL & ~E_NOTICE | ||
error_reporting4 = E_ALL & ~E_NOTICE | E_PARSE | ||
|
||
['true or false'] | ||
bool_true = true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?php | ||
error_reporting(E_ALL|E_STRICT); | ||
|
||
copy('test_with_comment.zip', 't.zip'); | ||
$z = new ZipArchive; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--TEST-- | ||
Test bitwise AND, OR, XOR, NOT and logical NOT in INI via error_reporting | ||
--INI-- | ||
error_reporting = E_ALL & E_NOTICE | E_STRICT ^ E_DEPRECATED & ~E_WARNING | !E_ERROR | ||
error_reporting = E_ALL & E_NOTICE | E_PARSE ^ E_DEPRECATED & ~E_WARNING | !E_ERROR | ||
--FILE-- | ||
<?php | ||
echo ini_get('error_reporting'); | ||
?> | ||
--EXPECT-- | ||
10248 | ||
8204 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--TEST-- | ||
Bug #64523: XOR not parsed in INI | ||
--INI-- | ||
error_reporting = E_ALL ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED | ||
error_reporting = E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED | ||
--FILE-- | ||
<?php | ||
echo ini_get('error_reporting'); | ||
?> | ||
--EXPECT-- | ||
22519 | ||
24565 |
Uh oh!
There was an error while loading. Please reload this page.