php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2881 Not Parse error for invalid ereg arguments.
Submitted: 1999-11-30 20:32 UTC Modified: 1999-12-24 14:41 UTC
From: php-bug at slayford dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 2 OS: Linux/RH6.0
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: php-bug at slayford dot com
New email:
PHP Version: OS:

 

 [1999-11-30 20:32 UTC] php-bug at slayford dot com
The following line I would expect to produce a parse error since the third argument of the ereg function is not a variable.

ereg("^(ONE|TWO)[ ]+(THREE FOUR)$","ONE FOUR",argreg);

Instead the scripting engine bombs out with no output before producing any output that should have been before it.  This suggests that the error is occuring during the parse phase.

I haven't included a backtrace since your instructions on howto do so was a missing page.

"Not Found
The requested URL /version4/bugs-generating-backtrace.php3 was not found on this server."

Thanks

Richard

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-24 14:41 UTC] zeev at cvs dot php dot net
Your error_reporting value is probably not set high
enough to show compile-time errors.
Set your error_reporting to 65535 in php.ini, and you would see the compile-time error.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC