RE: [PHP] Strange Problem with ctype_digit

From: Date: Mon, 27 Sep 2004 19:03:03 +0000
Subject: RE: [PHP] Strange Problem with ctype_digit
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197988@lists.php.net to get a copy of this message
> -----Original Message----- > CODE: > <? > print ctype_digit( 1094164380 ); > ?> > END OF CODE > > When I run the above code, my apache server performs an illegal operation > and shuts down. It will keep doing this every 20 seconds or so until you > restart/stop the server manually. Does anyone else have this problem? It crashed Apache on my computer as well. The manual says that function expects you to give it a string and it will tell you if all of the digits in the string are decimals. The function probably needs better error checking on incoming parameters, but you could probably create a wrapper with gettype to handle that in the meanwhile. -Ed

« previous php.general (#197988) next »