|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1625 ereg complains about a snippit of code that worked fine in 3.0.9
Submitted: 1999-06-29 10:56 UTC Modified: 1999-06-30 20:13 UTC
From: danbeck at scott dot net Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.11 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.
Block user comment
Status: Assign to:
Bug Type:
From: danbeck at scott dot net
New email:
PHP Version: OS:


 [1999-06-29 10:56 UTC] danbeck at scott dot net
The following two lines of code issue a warning about "Premature end of regular expression"

ereg($onum, $order_array[$x][0], $regs)


ereg($onum, $order_array[$key_orders][0], $regs)

The $order_array... arrays only contain a short string, usually numbers  This worked great in 3.0.9, but since I've just recently upgraded to 3.0.11 the other day, it's been issuing this warning.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-29 11:04 UTC] andrey at cvs dot php dot net
You need to provide the value of $onum.

 [1999-06-30 20:13 UTC] sas at cvs dot php dot net
fixed in CVS
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 05:01:30 2024 UTC