$arr = array(1);
try {
- var_dump( extract($arr, -1 . "wddr") );
+ var_dump( extract($arr, -1) );
} catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
}
?>
---EXPECTF--
+--EXPECT--
*** Testing Error Conditions ***
-
-Notice: A non well formed numeric value encountered in %s on line %d
extract(): Argument #2 ($extract_type) must be a valid extract type
extract(): Argument #2 ($extract_type) must be a valid extract type
extract(): Argument #3 ($prefix) is required when using this extract type
echo $e->getMessage(), "\n";
}
-try {
- var_dump( range(0, 1, "140962482048819216326.24.") );
-} catch (\ValueError $e) {
- echo $e->getMessage(), "\n";
-}
-
echo "\n-- Testing Invalid steps --\n";
$step_arr = array( "string", NULL, FALSE, "", "\0" );
}
}
?>
---EXPECTF--
+--EXPECT--
*** Testing error conditions ***
-- Testing ( (low < high) && (step = 0) ) --
range(): Argument #3 ($step) must be of type int|float, string given
range(): Argument #3 ($step) must not exceed the specified range
-Notice: A non well formed numeric value encountered in %s on line %d
-range(): Argument #3 ($step) must not exceed the specified range
-
-- Testing Invalid steps --
range(): Argument #3 ($step) must be of type int|float, string given
range(): Argument #3 ($step) must not exceed the specified range