From:             jaime dot lopez at iic dot uam dot es
Operating system: AIX
PHP version:      4.3.2
PHP Bug Type:     Reproducible crash
Bug description:  ord() crashes when passing '|' char

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() )

-- 
Edit bug report at http://bugs.php.net/?id=26345&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26345&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26345&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26345&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26345&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26345&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26345&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26345&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26345&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26345&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26345&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26345&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26345&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26345&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26345&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26345&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26345&r=float

Reply via email to