+1 on E_NOTICE 02.06.2011 19:13 пользователь "Ilia Alshanetsky" <i...@prohost.org> написал: > I like the idea of an error message when this happens, but as few > other people in the thread had mentioned, I think it should be a > warning (E_WARNING) because the conversion results in data loss > (content of the array is replaced with "Array" string). > > On Thu, Jun 2, 2011 at 12:11 PM, Patrick ALLAERT <patrickalla...@php.net> wrote: >> Hi, >> >> I would like to introduce an E_NOTICE when an array is silently >> converted to a string. >> This isn't very useful as it constantly produces the following string: >> "Array" and in most of the case, this is a sign of an error. >> >> Let me know about your feelings. >> >> Patch implementing that behavior change: https://gist.github.com/1004203 >> Patch to adapt the tests: https://gist.github.com/1004204 >> >> Cheers, >> Patrick >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >
- RE: [PHP-DEV] [PATCH] Notice on array... John Crenshaw
- Re: [PHP-DEV] [PATCH] Notice on array to stri... Patrick ALLAERT
- Re: [PHP-DEV] [PATCH] Notice on array to string co... Pierre Joye
- Re: [PHP-DEV] [PATCH] Notice on array to stri... Brian Moon
- Re: [PHP-DEV] [PATCH] Notice on array to ... Patrick ALLAERT
- Re: [PHP-DEV] [PATCH] Notice on array to ... Ole Markus With
- Re: [PHP-DEV] [PATCH] Notice on array... Tomas Creemers
- Re: [PHP-DEV] [PATCH] Notice on array to stri... Johannes Schlüter
- RE: [PHP-DEV] [PATCH] Notice on array to ... John Crenshaw
- Re: [PHP-DEV] [PATCH] Notice on array to string co... Ilia Alshanetsky
- Re: [PHP-DEV] [PATCH] Notice on array to stri... Arvids Godjuks
- Re: [PHP-DEV] [PATCH] Notice on array to ... Ferenc Kovacs
- Re: [PHP-DEV] [PATCH] Notice on array to stri... Derick Rethans
- Re: [PHP-DEV] [PATCH] Notice on array to ... David Zülke
- Re: [PHP-DEV] [PATCH] Notice on array to stri... Patrick ALLAERT
- [PHP-DEV] Re: [PATCH] Notice on array to string co... Matthew Weier O'Phinney
- Re: [PHP-DEV] Re: [PATCH] Notice on array to ... Ferenc Kovacs
- Re: [PHP-DEV] Re: [PATCH] Notice on array... Matthew Weier O'Phinney
- Re: [PHP-DEV] Re: [PATCH] Notice on a... Marcel Esser
- [PHP-DEV] Re: [PATCH] Notice on array to string co... Patrick ALLAERT