php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2182 Regular expression code dumps debugging information to stderr
Submitted: 1999-08-28 19:46 UTC Modified: 1999-08-28 21:04 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Latest CVS (28/08/1999) OS: Linux RH 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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mlemos at acm dot org
New email:
PHP Version: OS:

 

 [1999-08-28 19:46 UTC] mlemos at acm dot org
Regular expression code is dumping debugging information to stderr like

Regex ^[A-Z][A-Z0-9_]*$

This not only floods the server errors logs needlessly but also disturbs
the output of php that once run as standalone from cron scripts make the
script halt because of non-error.  Redirecting stderr to /dev/null is not a
solution because it is desirrable to stop cron scripts if there was some
output due to real errors unlike this situation.

Ths solution to this problem consists of removing line 197 of file
functions/reg.c that seem to have been forgotten.

fprintf(stderr,"Regex %s\n",regex->value.str.val);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-08-28 21:04 UTC] jim at cvs dot php dot net
There is no such code in the CVS version. (Take
a look at http://cvs.php.net/cvsweb.cgi/functions/reg.c?rev=HEAD)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 06:01:32 2024 UTC