RE: [PHP] Strange Problem with ctype_digit
-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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Strange Problem with ctype_digit
Hi all, Noticed a strange problem when I was testing a time stamp to make sure it was all numbers. After an hour of debugging, I traced the problem to the ctype_digit funciton. 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? I am using windows XP with SP2 installed. I also use apache 2.0.50 (latest binary build available) and PHP 4.3.9. The problem also occurs on my main server, which is running older versions of PHP and apache, but the same OS. Thanks, Stephen Edmonds