Re: generate a notice for bogus function calls

From: Date: Mon, 19 Sep 2005 21:45:43 +0000
Subject: Re: generate a notice for bogus function calls
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-19096@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()?
No, I at least I think I've never created such a function. To be sincere, I've not even remembered of such functions when I was writing that e-mail :) So, I think my suggestion is bogus.. Although a special syntax (copied from C) could be introduced.. well maybe not.. Nuno

« previous php.internals (#19096) next »