mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fix deprecation warnings in tests
This commit is contained in:
parent
94bd6ca080
commit
817d21ecc4
@ -3,9 +3,9 @@ GH-16293: Exception in assert() callback with bail enabled
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
assert_options(ASSERT_EXCEPTION, 0);
|
||||
assert_options(ASSERT_BAIL, 1);
|
||||
assert_options(ASSERT_CALLBACK, 'f1');
|
||||
@assert_options(ASSERT_EXCEPTION, 0);
|
||||
@assert_options(ASSERT_BAIL, 1);
|
||||
@assert_options(ASSERT_CALLBACK, 'f1');
|
||||
assert(false);
|
||||
|
||||
?>
|
||||
|
@ -3,9 +3,9 @@ GH-16293: Exception in assert() callback with bail enabled
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
assert_options(ASSERT_EXCEPTION, 0);
|
||||
assert_options(ASSERT_BAIL, 1);
|
||||
assert_options(ASSERT_CALLBACK, function () {
|
||||
@assert_options(ASSERT_EXCEPTION, 0);
|
||||
@assert_options(ASSERT_BAIL, 1);
|
||||
@assert_options(ASSERT_CALLBACK, function () {
|
||||
throw new Exception('Boo');
|
||||
});
|
||||
assert(false);
|
||||
|
Loading…
Reference in New Issue
Block a user