Am 02.06.2011 13:54, schrieb Hannes Magnusson: > On Thu, Jun 2, 2011 at 12:11, 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. > > How about making it useful rather then just throwing an notice? > Recursive implode maybe? Or json/php serialized? :)
it is braindead to expect such bad magic in a programing-language normally this convertion happens when the programmer had made something wrong (forgot serialize as example), now you are coming and think JSON is cool and convert silently, so what will unserialize() do with this crap after reading the data from mysql? this conversion should never happen and throw a fatal error since this action is destructive to data and never useful nor will warnings/notices helps in the real world
signature.asc
Description: OpenPGP digital signature