ID: 42426 Updated by: [EMAIL PROTECTED] Reported By: phpbugs dot 20 dot zsh at spamgourmet dot com -Status: Open +Status: Bogus Bug Type: Feature/Change Request Operating System: Irrelevant PHP Version: 5.2.3 New Comment:
ctype_alnum ( string $text ) it takes a string not integer. Please see the manual for further support questions. Previous Comments: ------------------------------------------------------------------------ [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