#29843 [NEW]: A pretty segfault in ctype_digit()
| From: | guth at fiifo dot u-psud dot fr | Date: | Wed, 25 Aug 2004 22:08:09 +0000 |
| Subject: | #29843 [NEW]: A pretty segfault in ctype_digit() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-65250@lists.php.net to get a copy of this message | ||
From: guth at fiifo dot u-psud dot fr
Operating system: Linux (Mandrake 9.2)
PHP version: 5.0.1
PHP Bug Type: Reproducible crash
Bug description: A pretty segfault in ctype_digit()
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 bug report at http://bugs.php.net/?id=29843&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29843&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29843&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29843&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=29843&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29843&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29843&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29843&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29843&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29843&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29843&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29843&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29843&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29843&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29843&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29843&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29843&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29843&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29843&r=float