|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-11-21 05:02 UTC] jaime dot lopez at iic dot uam dot es
Description:
------------
Apache process hangs out when calling ord() with reproducible arguments.
Reproduce code:
---------------
function isalpha( $char )
{
return( (ord($char) >= ord("a") and ord($char) <= ord("z")) ||
(ord($char) >= ord("A") and ord($char) <= ord("Z")) );
}
echo is_alpha('|') ;
... PHP hangs ...
Expected result:
----------------
false
Actual result:
--------------
nothing ( php hangs calling ord() )
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 12:00:01 2025 UTC |
strangely, I had a similar sounding problem using: if (ord($word{0}) >= 127) { } under PHP 5 the other day.