From: trancer at trancer dot nl Operating system: Windows XP PHP version: 4.3.5RC1 PHP Bug Type: Documentation problem Bug description: checkdate asks for long doc says int
Description: ------------ Had the following warning: Warning: checkdate() expects parameter 1 to be long, string given in Documentation says: Description bool checkdate ( int month, int day, int year) int should be long here or long should be int, either of them. Might have to do with bug #25530, but still, the error issues a long while the demanded type is int. Reproduce code: --------------- <?php checkdate("", "", ""); ?> Expected result: ---------------- Warning: checkdate() expects parameter 1 to be int, string given in Actual result: -------------- Warning: checkdate() expects parameter 1 to be long, string given in -- Edit bug report at http://bugs.php.net/?id=27097&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27097&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27097&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27097&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27097&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27097&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27097&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27097&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27097&r=support Expected behavior: http://bugs.php.net/fix.php?id=27097&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27097&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27097&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27097&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27097&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27097&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27097&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27097&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27097&r=float