ID: 27097 Updated by: [EMAIL PROTECTED] Reported By: trancer at trancer dot nl -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Windows XP PHP Version: 4.3.5RC1 New Comment:
The documentation is right. You are giving a string, while it expects an integer. You should learn more about variable types in PHP. Previous Comments: ------------------------------------------------------------------------ [2004-01-30 08:00:35] trancer at trancer dot nl 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 this bug report at http://bugs.php.net/?id=27097&edit=1