#26345 [Opn]: ord() crashes when passing '|' char

From: Date: Fri, 21 Nov 2003 10:38:23 +0000
Subject: #26345 [Opn]: ord() crashes when passing '|' char
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-50797@lists.php.net to get a copy of this message
ID: 26345 Updated by: wez@php.net Reported By: jaime dot lopez at iic dot uam dot es Status: Open Bug Type: Reproducible crash Operating System: AIX PHP Version: 4.3.2 New Comment: strangely, I had a similar sounding problem using: if (ord($word{0}) >= 127) { } under PHP 5 the other day. Previous Comments: ------------------------------------------------------------------------ [2003-11-21 05:02:32] 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() ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26345&edit=1

« previous php.bugs (#50797) next »