mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fix tests to account for warnings moved from RT to CT
This commit is contained in:
parent
f7e5308f4b
commit
e607215e47
@ -9,7 +9,7 @@ var_dump(array_keys("string"));
|
||||
var_dump(array_keys(new stdclass)); // object
|
||||
var_dump(array_keys()); // Zero arguments
|
||||
var_dump(array_keys(array(), "", TRUE, 100)); // args > expected
|
||||
var_dump(array_keys(array(1,2,3, array() => array()))); // (W)illegal offset
|
||||
var_dump(array_keys(array(1,2,3, new stdClass => array()))); // (W)illegal offset
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
|
@ -19,7 +19,8 @@ var_dump(ini_get('track_errors'));
|
||||
ini_set('display_errors', 0);
|
||||
var_dump(ini_get('display_errors'));
|
||||
var_dump($php_errormsg);
|
||||
$error = 1 / 0;
|
||||
$zero = 0;
|
||||
$error = 1 / $zero;
|
||||
var_dump($php_errormsg);
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
@ -19,7 +19,8 @@ var_dump(ini_get('track_errors'));
|
||||
ini_set('display_errors', 0);
|
||||
var_dump(ini_get('display_errors'));
|
||||
var_dump($php_errormsg);
|
||||
$error = 1 / 0;
|
||||
$zero = 0;
|
||||
$error = 1 / $zero;
|
||||
var_dump($php_errormsg);
|
||||
?>
|
||||
--EXPECTF--
|
||||
|
Loading…
Reference in New Issue
Block a user