|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-07-10 07:28 UTC] felixdv@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 06:00:02 2025 UTC |
Description: ------------ What I'm trying to do: Ensure that $arg2 input is only an integer. Either this is a bug, Windows Vista sucks (bug or not vista sucks period.), or I'm doing something wrong here. Arigato. Reproduce code: --------------- function blah(array $arg1, integer $arg2, integer $arg3){ return false; } var_dump(blah(array('a','b','c'),1,2)); Expected result: ---------------- bool(false) Actual result: -------------- Catchable fatal error: Argument 2 passed to blah() must be an instance of integer, integer given, called in C:\i\need\linux\blah.php on line 4 and defined in C:\i\need\linux\blah.php on line 2