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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 23:01:29 2025 UTC