Re: [RFC][Discussion] Make compact function reports undefined passed variables
| From: | Gabriel Caruso | Date: | Mon, 02 Apr 2018 11:45:47 +0000 |
| Subject: | Re: [RFC][Discussion] Make compact function reports undefined passed variables | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102014@lists.php.net to get a copy of this message | ||
>
> Hey Gabriel,
>
> What I am missing here is the reason why we should break well defined
> behavior of existing functions.
>
> How is the BC break for all existing code justified?
>
> Pieter
>
Hi Pieter.
> What I am missing here is the reason why we should break well defined
behavior of existing functions.
This is something I'd like to discuss about
compact. I'd like to know why
we skip undefined variables instead of report them. compact is use in a
large scale by the MVC community, by passing variables in the controller
and using them in the view.
> How is the BC break for all existing code justified?
I'd like to start report this undefined variables. Would be one more way to
prevent code-smell. IMHO this belongs to the core, not to the userland.
Thanks,
--
Gabriel Caruso