RE: [PHP] a new error message from php4.0.1pl2: missing argument for function
| From: | Jason Wong | Date: | Wed, 26 Jul 2000 09:35:28 +0000 |
| Subject: | RE: [PHP] a new error message from php4.0.1pl2: missing argument for function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8230@lists.php.net to get a copy of this message | ||
I edited the php.ini to disable error reporting for warnings:
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING ; Show all errors except
for notices & warnings
However I think the long term solution is to redeclare all your functions
and specify which arguments are optional.
-
Jason Wong
Digital View Ltd
2201 Nanyang Plaza
57 Hung To Road
Kwun Tong
HONG KONG
Tel: +852-2861-3615
Fax: +852-2520-2987
www.digitalview.com
> -----Original Message-----
> From: steeven [mailto:oldpig@163.net]
> Sent: 26 July 2000 09:44
> To: php-general@lists.php.net
> Subject: [PHP] a new error message from php4.0.1pl2: missing argument
> for function
>
>
> here is a short sample program:
>
> <?php
> test();
> function test($a1){
> echo "test";
> }
> ?>
>
> and an warning is shown:
> Warning: Missing argument 1 for test() in
> e:\apache\htdocs\bbs\test1.php on
> line 3
> test
>
> There is no problem when I use php4.0.0, anyone have the same problem?
>
> win98+apache+php4.0.1pl2
>
>
>
> --
> 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
>