|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-26 00:08 UTC] guth at fiifo dot u-psud dot fr
Description: ------------ Please excuse me for my english, but i am french... So i found a problem with ctype_digit() function, who seems to crash PHP with a big (or not ?) integer. Reproduce code: --------------- <? $id = 1000000000; ctype_digit($id); ?> Expected result: ---------------- A warning or something like that, because $id is an integer, but not a segfault... Actual result: -------------- nothing, except a new line in my apache error_log file : [Thu Aug 26 00:00:18 2004] [notice] child pid 3877 exit signal Segmentation fault (11) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 06:00:01 2025 UTC |
It seems the bug comes from ctype librairy : #include <ctype.h> int main(int argc, char ** argv) { int i = isdigit(1000000000); } $ gcc test.c -o plop $ ./plop Segmentation fault