php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1696 ereg function crashes php if first arg is empty
Submitted: 1999-07-12 13:40 UTC Modified: 1999-11-28 17:45 UTC
From: danbeck at mtginfo dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0 Latest CVS (12/07/1999) OS: Linux 2.0.36 (RedHat 5.2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danbeck at mtginfo dot com
New email:
PHP Version: OS:

 

 [1999-07-12 13:40 UTC] danbeck at mtginfo dot com
This snippit of code:

$arg1 = "";
$arg2 = "TEST";
if (ereg($arg1, $arg2, $results)):
   echo "CRASH!";
endif;

causes php to stop execution (crash).  This only happens if the first argument does not contain anything.  No data is sent to the browser...

This is reproducable every time.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-28 17:45 UTC] rasmus at cvs dot php dot net
Fixed a while ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 00:01:30 2024 UTC