--TEST-- Scalar type - internal function strict mode --FILE-- getMessage() . PHP_EOL; } echo "*** Trying Array Map With Invalid Callback" . PHP_EOL; try { array_map([null, "bar"], []); } catch (TypeError $e) { echo "*** Caught " . $e->getMessage() . PHP_EOL; } echo "*** Trying Strlen With Float" . PHP_EOL; try { var_dump(strlen(1.5)); } catch (TypeError $e) { echo "*** Caught " . $e->getMessage() . PHP_EOL; } ?> --EXPECT-- *** Trying Ord With Integer *** Caught ord() expects parameter 1 to be string, int given *** Trying Array Map With Invalid Callback *** Caught array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object *** Trying Strlen With Float *** Caught strlen() expects parameter 1 to be string, float given