Re: PHP 4.0 Bug #7895: Missing Arguments Generates E-WARNING

From: Date: Mon, 20 Nov 2000 22:15:28 +0000
Subject: Re: PHP 4.0 Bug #7895: Missing Arguments Generates E-WARNING
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-38690@lists.php.net to get a copy of this message
Please show me a code example of something that is generating a warning which you think it shouldn't. As far as I am concerned, non-optional function arguments that are left out should most definitely generate a warning. -Rasmus On 20 Nov 2000 sowens@digalch.com wrote: > From: sowens@digalch.com > Operating system: Any > PHP version: 4.0.3pl1 > PHP Bug Type: *Function Specific > Bug description: Missing Arguments Generates E-WARNING > > 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. > > > > > -- > Edit Bug report at: http://bugs.php.net/?id=7895&edit=1 > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#38690) next »