Re: generate a notice for bogus function calls
| From: | Ondrej Ivanič | Date: | Mon, 19 Sep 2005 21:40:12 +0000 |
| Subject: | Re: generate a notice for bogus function calls | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19095@lists.php.net to get a copy of this message | ||
Nuno Lopes wrote:
<? function a($b) {} a(1,2,3); ?> PHP accepts this and generates no errors. My purpose is to start generating an E_NOTICE, just like we do for not yet initialized variables.No, stupid output! Generating E_NOTICE is not a good idea. You don't need to create functions with variable arguments count like printf()? -- Ondrej Ivanic (ondrej@kmit.sk)