ID:               29843
 Updated by:       [EMAIL PROTECTED]
 Reported By:      guth at fiifo dot u-psud dot fr
-Status:           Feedback
+Status:           Closed
 Bug Type:         Reproducible crash
 Operating System: Linux (Mandrake 9.2)
 PHP Version:      5.0.1
 New Comment:

Sorry, wrong button.


Previous Comments:
------------------------------------------------------------------------

[2004-08-26 08:58:13] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

------------------------------------------------------------------------

[2004-08-26 02:03:42] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



------------------------------------------------------------------------

[2004-08-26 00:12:14] kiad at free dot fr

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

------------------------------------------------------------------------

[2004-08-26 00:08:08] 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)


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=29843&edit=1

Reply via email to