ID: 42426 User updated by: phpbugs dot 20 dot zsh at spamgourmet dot com Reported By: phpbugs dot 20 dot zsh at spamgourmet dot com Status: Bogus Bug Type: Feature/Change Request Operating System: Irrelevant PHP Version: 5.2.3 New Comment:
I don't see the problem! PHP is a weak-typed language... what about sleep() for instance? void sleep ( _int_ $seconds ) <?php sleep('5'); ?> So why shouldn't ctype_alnum just accept all scalar values as strings? Previous Comments: ------------------------------------------------------------------------ [2007-08-27 10:13:02] [EMAIL PROTECTED] ctype_alnum ( string $text ) it takes a string not integer. Please see the manual for further support questions. ------------------------------------------------------------------------ [2007-08-27 08:57:41] phpbugs dot 20 dot zsh at spamgourmet dot com That's expected behavior? Reclassified... ------------------------------------------------------------------------ [2007-08-25 18:22:02] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. ------------------------------------------------------------------------ [2007-08-25 16:55:42] phpbugs dot 20 dot zsh at spamgourmet dot com Oops, the reproduce code should be: <?php $var = 42; var_dump(ctype_alnum($var), ctype_alnum("$var")); ?> ------------------------------------------------------------------------ [2007-08-25 16:50:46] phpbugs dot 20 dot zsh at spamgourmet dot com Description: ------------ ctype_alnum returns false if an integer is passed. Reproduce code: --------------- <?php $var = 42; var_dump($var, "$var"); ?> Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(false) bool(true) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42426&edit=1