mirror of
https://github.com/php/php-src.git
synced 2026-03-29 11:42:17 +02:00
Co-authored-by: Gina Peter Banyard <girgias@php.net> Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
39 lines
706 B
PHP
39 lines
706 B
PHP
--TEST--
|
|
assert() asserting multiple with callback
|
|
--INI--
|
|
assert.active = 1
|
|
assert.warning = 1
|
|
assert.bail = 0
|
|
assert.exception=1
|
|
--FILE--
|
|
<?php
|
|
assert_options(ASSERT_CALLBACK, function ($f) {});
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
try {
|
|
assert(false);
|
|
} catch (Throwable) {}
|
|
?>
|
|
DONE
|
|
--EXPECTF--
|
|
Deprecated: Constant ASSERT_CALLBACK is deprecated in %s on line %d
|
|
|
|
Deprecated: Function assert_options() is deprecated since 8.3 in %s on line %d
|
|
DONE
|