From: strictly dot rubbadub at gmail dot com Operating system: Windows Vista :( PHP version: 5.2.6 PHP Bug Type: Class/Object related Bug description: Argument 2 passed as integer, integer expected?
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 -- Edit bug report at http://bugs.php.net/?id=45473&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45473&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45473&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45473&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45473&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45473&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45473&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45473&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45473&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45473&r=support Expected behavior: http://bugs.php.net/fix.php?id=45473&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45473&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45473&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45473&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45473&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45473&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45473&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45473&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45473&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45473&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45473&r=mysqlcfg