Hello.

I am reporting about the changes that were made in the string parser in 5.2.5.
>From this version, sequences "\f" and "\v" are special and are parsed as FF
and VT symbols. IMHO that doesn't make sense because the behavior was
different in the older versions of PHP, and will affect many existing scripts.
Those two symbols are also very rarely used and I don't think this feature
will be very useful for the developers.

I checked the documentation. It says that only "\n", "\r" and "\t" sequences
(I count only alphanumeric ones) are special, there is nothing about \f or \v.
The documentation clearly says that all other sequences are not special and
the backslash becomes part of the string. It also says: "usually, there is no
need to escape the backslash itself", in other words, escaping the backslash
only when necessary is allowed and encouraged.

I ask for rolling that change back because it's a serious BC break.

Regards,
Serge

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

Reply via email to