Re: cleaning up the functions - any volunteers?
| From: | Olivier Hill | Date: | Sun, 22 Jun 2008 15:40:35 +0000 |
| Subject: | Re: cleaning up the functions - any volunteers? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-38513@lists.php.net to get a copy of this message | ||
On Sun, Jun 22, 2008 at 11:18 AM, Pierre Joye <pierre.php@gmail.com> wrote:
>>
>> Ok, with the tests being ran we are minimizing the chances of bc break
>> but I agree and extra care should be applied. We'll make sure this
>> care is applied.
>
> http://wiki.php.net/doc/scratchpad/upgrade/53
I will be documenting BC breaks on that page after committing.
Basically, some functions like trim() would not behave the same way
when passing things like resources, arrays or objects without a
__toString() method. The old ways didn't make any sense most of the
time anyway, as you don't want to trim a resource and get a string
back containing: "Resource"
Ex:
$ar = array(1, 2);
Before: var_dump(trim($ar)) -> string(5) "Array" with an E_NOTICE
Now: var_dump(trim($ar)) -> NULL with an E_WARNING
Tests are going to be changed to reflect that also (that's mostly the
longest part)
Regards,
Olivier