Re: [PATCH] Notice on array to string convertion

From: Date: Thu, 02 Jun 2011 13:19:20 +0000
Subject: Re: [PATCH] Notice on array to string convertion
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-52766@lists.php.net to get a copy of this message
<3 yes please. Sent from my iBrain, powered by Panda. On Jun 2, 2011, at 6:19 AM, "Patrick ALLAERT" <patrick.allaert@gmail.com> 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 >

« previous php.internals (#52766) next »