|  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
 [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."




Add a Patch

Pull Requests

Add a Pull Request


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-2021 The PHP Group
All rights reserved.
Last updated: Sat Jan 16 00:01:22 2021 UTC