mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
RFC: https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant Closes GH-13053
24 lines
307 B
PHP
24 lines
307 B
PHP
--TEST--
|
|
testing @ and error_reporting - 4
|
|
--FILE--
|
|
<?php
|
|
|
|
error_reporting(E_ALL & ~E_DEPRECATED);
|
|
|
|
function foo() {
|
|
echo $undef;
|
|
error_reporting(E_ALL);
|
|
}
|
|
|
|
|
|
foo(@$var);
|
|
|
|
var_dump(error_reporting());
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $undef in %s on line %d
|
|
int(30719)
|
|
Done
|