Re: [PHP-DEV] generate a notice for bogus function calls

2005-09-20 Thread Marcus Boerger
Hello Jani, Tuesday, September 20, 2005, 11:19:28 AM, you wrote: > No way. Yep no way! PHP doesn't offer a '...' signature so we need it the way it is. And i don't think we want to have those '...' signatures. marcus > On Mon, 19 Sep 2005, Nuno Lopes wrote: >> >> Hi, >> >> Although this

Re: [PHP-DEV] generate a notice for bogus function calls

2005-09-20 Thread Derick Rethans
On Mon, 19 Sep 2005, Nuno Lopes wrote: > Hi, > > Although this is not as hot as references or Unicode stuff, I would like to > discuss a new topic. > Currently PHP accepts more parameters to a function than the required. > In English: > function a($b) {} > a(1,2,3); > ?> > > PHP accepts this an

Re: [PHP-DEV] generate a notice for bogus function calls

2005-09-20 Thread Jani Taskinen
No way. --Jani On Mon, 19 Sep 2005, Nuno Lopes wrote: Hi, Although this is not as hot as references or Unicode stuff, I would like to discuss a new topic. Currently PHP accepts more parameters to a function than the required. In English: PHP accepts this and generates no errors

Re: [PHP-DEV] generate a notice for bogus function calls

2005-09-19 Thread Nuno Lopes
Nuno Lopes wrote: 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 pr

Re: [PHP-DEV] generate a notice for bogus function calls

2005-09-19 Thread Ondrej Ivanič
Nuno Lopes wrote: 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 pri

[PHP-DEV] generate a notice for bogus function calls

2005-09-19 Thread Nuno Lopes
Hi, Although this is not as hot as references or Unicode stuff, I would like to discuss a new topic. Currently PHP accepts more parameters to a function than the required. In English: PHP accepts this and generates no errors. My purpose is to start generating an E_NOTICE, just like we do for