Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed May 16, 2024
1 parent 0a2241e commit 048c3b1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/BypassFinals/native.errors.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Assert::error(function () {
file_get_contents('unknown');
}, E_WARNING);

Assert::error(function () {
file_get_contents(__DIR__);
}, E_WARNING);
if (PHP_VERSION_ID >= 70400) {
Assert::error(function () {
file_get_contents(__DIR__);
}, defined('PHP_WINDOWS_VERSION_BUILD') ? E_WARNING : E_NOTICE);
}

Assert::error(function () {
file_put_contents(__DIR__, 'content');
Expand Down

0 comments on commit 048c3b1

Please sign in to comment.