On Sun, Jun 22, 2008 at 11:18 AM, Pierre Joye <[EMAIL PROTECTED]> 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to