|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19447 ereg() causes segfault in apache 1.3.26
Submitted: 2002-09-17 02:18 UTC Modified: 2002-10-24 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: dan at drivefaster dot net Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.2.3 OS: Redhat 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dan at drivefaster dot net
New email:
PHP Version: OS:


 [2002-09-17 02:18 UTC] dan at drivefaster dot net
 if ( ereg($arr[$iCnt],$_POST['txtPassword']) ) {

^ this line would crash apache 1.3.26 repeatedly.  The code did not change since 4.2.1.  Nothing else changed between 4.2.1 and upgrade to 4.2.3.

The values in $arr[$iCnt] and $_POST['txtPassword'] were as expected.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-17 02:20 UTC]
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

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.

Also, post a full reproducing copy and paste script so that we can try it ourselves.

 [2002-10-08 21:49 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 12:01:27 2024 UTC