php.net |  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
 [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)

and 

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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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: Tue Apr 30 10:01:29 2024 UTC