diff --git a/ext/standard/tests/array/array_keys_error.phpt b/ext/standard/tests/array/array_keys_error.phpt index 316e91d7e69..685547f0ec8 100644 --- a/ext/standard/tests/array/array_keys_error.phpt +++ b/ext/standard/tests/array/array_keys_error.phpt @@ -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"; ?> diff --git a/tests/run-test/test005.phpt b/tests/run-test/test005.phpt index 3d51531ed91..5dcb650444f 100644 --- a/tests/run-test/test005.phpt +++ b/tests/run-test/test005.phpt @@ -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-- diff --git a/tests/run-test/test008a.phpt b/tests/run-test/test008a.phpt index 27da085e049..ff2a93be0fc 100644 --- a/tests/run-test/test008a.phpt +++ b/tests/run-test/test008a.phpt @@ -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--