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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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)

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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 06:01:30 2025 UTC