#42426 [Opn->Bgs]: ctype_alnum fails on integers
| From: | pajoye@php.net | Date: | Mon, 27 Aug 2007 10:13:02 +0000 |
| Subject: | #42426 [Opn->Bgs]: ctype_alnum fails on integers | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116708@lists.php.net to get a copy of this message | ||
ID: 42426
Updated by: pajoye@php.net
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] bjori@php.net
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