|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-11-09 14:19 UTC] sjon at hortensius dot net
[2017-11-09 14:49 UTC] pollita@php.net
-Status: Open
+Status: Not a bug
[2017-11-09 14:49 UTC] pollita@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 22:00:01 2025 UTC |
Description: ------------ Hi, when you want to set an hard pypage in a function to test if you have a string/integer/float The result of var_dump will be float(123) and not a typage error !!! Test script: --------------- function test (float $element) { var_dump($element); } test('123'); die; Expected result: ---------------- Catchable fatal error: Argument 1 passed to test() must be an instance of float, instance of string given Actual result: -------------- float(123)