diff options
Diffstat (limited to 'ext/standard/tests/math/hexdec_variation1.phpt')
-rw-r--r-- | ext/standard/tests/math/hexdec_variation1.phpt | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/ext/standard/tests/math/hexdec_variation1.phpt b/ext/standard/tests/math/hexdec_variation1.phpt index 8f066cb11d..e7748a04d0 100644 --- a/ext/standard/tests/math/hexdec_variation1.phpt +++ b/ext/standard/tests/math/hexdec_variation1.phpt @@ -77,7 +77,11 @@ $inputs = array( $iterator = 1; foreach($inputs as $input) { echo "\n-- Iteration $iterator --\n"; - var_dump(hexdec($input)); + try { + var_dump(hexdec($input)); + } catch (TypeError $e) { + echo $e->getMessage(), "\n"; + } $iterator++; }; fclose($fp); @@ -154,11 +158,7 @@ int(0) int(0) -- Iteration 20 -- - -Notice: Array to string conversion in %s on line %d - -Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d -int(170) +hexdec() expects parameter 1 to be string, array given -- Iteration 21 -- @@ -182,7 +182,5 @@ int(0) int(0) -- Iteration 26 -- - -Deprecated: Invalid characters passed for attempted conversion, these have been ignored in %s on line %d -int(970453) +hexdec() expects parameter 1 to be string, resource given ===Done=== |