php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30276 Ctype_digit causes apache to crash
Submitted: 2004-09-29 15:41 UTC Modified: 2004-09-30 03:24 UTC
From: stephen_edmonds at btinternet dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.3.9 OS: Windows XP (SP2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 20 = ?
Subscribe to this entry?

 
 [2004-09-29 15:41 UTC] stephen_edmonds at btinternet dot com
Description:
------------
When ctype_digit is passed a large number, it causes the apache child thread to terminate with the code "3221225477". When apache tries to restart the child thread, it crashes with the same code about 20 seconds later. The only way to stop this crash cycle is to shutdown/restart the apache server.

This bug was supposedly fixed in bug #29226 - but php 4.3.9 still seems to be effected.

Reproduce code:
---------------
<?
// WARNING - This may crash your apache server //
// Notice there are no " " around the number //
print ctype_digit( 1094164380 );
?>

Expected result:
----------------
true

Actual result:
--------------
The apache child thread will crash.
When the child is re-started by apache, it will crash 20 seconds later.
This will continue to happen until the apache server is shutdown or restarted.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-30 03:24 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC