mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
This was deprecated in PHP 7.2 as part of https://wiki.php.net/rfc/deprecations_php_7_2.
21 lines
319 B
PHP
21 lines
319 B
PHP
--TEST--
|
|
assert() - basic - check that assert runs when assert.active is set to 1.
|
|
--INI--
|
|
assert.active = 1
|
|
assert.warning = 0
|
|
assert.callback = f1
|
|
assert.bail = 0
|
|
--FILE--
|
|
<?php
|
|
function f1()
|
|
{
|
|
echo "f1 called\n";
|
|
}
|
|
|
|
var_dump($r2 = assert(0));
|
|
var_dump($r2 = assert(1));
|
|
--EXPECT--
|
|
f1 called
|
|
bool(false)
|
|
bool(true)
|