|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7895 Missing Arguments Generates E-WARNING
Submitted: 2000-11-20 16:11 UTC Modified: 2000-11-20 18:42 UTC
From: sowens at digalch dot com Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.3pl1 OS: Any
Private report: No CVE-ID: None
 [2000-11-20 16:11 UTC] sowens at digalch dot com
We have just upgraded from 4.0.0 to 4.0.3pl1 and we are having the same problem.  That is, under 4.0.0, the absence of parameters when calling a function does NOT generate a warning, but under 4.0.3pl1, we get this warning and we do NOT want it.  However, we do want to see other warnings so we are hesitant to suppress other warnings by adding "& ~E_WARNING".  We feel that this situation should be an E_NOTICE, not an E_WARNING.

This was reported under a different bug on 11/3 and Zeev has said that it was not a problem, but I think there is some confusion because this simply was not a warning under PHP4.0.0 and because variable length argument lists are a new feature in 4.0, we strongly feel this should not be issued as an error.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-20 18:42 UTC]
You can always use @ in front of those functions which generate
a warning. 

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Mon May 20 10:01:27 2019 UTC