SV: [PHP] new warning messages in PHP 4.0.1?
| From: | Johan Björk | Date: | Fri, 30 Jun 2000 14:40:10 +0000 |
| Subject: | SV: [PHP] new warning messages in PHP 4.0.1? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4038@lists.php.net to get a copy of this message | ||
I am initializing variables before using them, always, but only when inside the function.
But okay, it's great to hear that you will release a new update soon.
-----Ursprungligt meddelande-----
Från: Zeev Suraski <zeev@zend.com>
Till: Johan Björk <johan@websidorna.com>
Kopia: php-general@lists.php.net <php-general@lists.php.net>
Datum: den 30 juni 2000 16:10
Ämne: Re: [PHP] new warning messages in PHP 4.0.1?
>This is a bug in PHP 4.0.1. PHP 4.0.1pl1 will be posted shortly.
>
>By the way, it does imply on a bug in your code, or at least a bad coding
>practice. You should always initialize your variables before using them,
>even though PHP by default won't warn you if you don't.
>
>Zeev
>
>On Fri, 30 Jun 2000, [iso-8859-1] Johan Björk wrote:
>
>> I was just trying to upgrade a PHP 4.0 prerelease to PHP 4.0.1, which went okay, until I
>> noticed that the new version is complaining about "missing argument 1 to function
>> blutti()" ... and so on. That has never happened in earlier versions!
>>
>> If I have a function like:
>>
>> function blutti($foo) {
>> $...
>> }
>>
>> and call it with only blutti(); the error occur.
>>
>> What have happened? Is it some change in specifications or what?
>>
>> ---
>> Johan Björk
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>> For additional commands, e-mail: php-general-help@lists.php.net
>> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>>
>
>--
>Zeev Suraski <zeev@zend.com>
>http://www.zend.com/
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
>For additional commands, e-mail: php-general-help@lists.php.net
>To contact the list administrators, e-mail: php-list-admin@lists.php.net