mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
55dbb57322
Deprecated in PHP 7.3 as part of https://wiki.php.net/rfc/deprecations_php_7_3.
13 lines
258 B
PHP
13 lines
258 B
PHP
--TEST--
|
|
Defining a free-standing assert() function is deprecated
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace FooBar;
|
|
|
|
function assert() {}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Defining a custom assert() function is not allowed, as the function has special semantics in %s on line %d
|