ID: 42426
Updated by: [EMAIL PROTECTED]
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:
"So why shouldn't ctype_alnum just accept all scalar values as
strings?"
As it is a validation function, it has to be strict.
Previous Comments:
------------------------------------------------------------------------
[2007-08-28 09:55:11] phpbugs dot 20 dot zsh at spamgourmet dot com
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?
------------------------------------------------------------------------
[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"));
?>
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42426
--
Edit this bug report at http://bugs.php.net/?id=42426&edit=1