ID:          43328
 Comment by:  carsten_sttgt at gmx dot de
 Reported By: dagdamor at simps dot ru
 Status:      Open
 Bug Type:    Strings related
 PHP Version: 5.2.5
 New Comment:

> Check carefully the table 11.1

I confirm with you, "\v" and "\f" are no valid escape sequences,
according to the PHP manual. Thus a PHP programer must not take care
about this escape sequences. Especially for existing scripts.


Just a additinal question:
PCRE nows the escape sequence "\f". Correct, you can read this in the
PHP manual [1].

But what's about "\v"? Here I have this informations:
| Perl 5 no longer includes vertical tab in its set of whitespace
| characters.
| The \v escape that was in the Perl documentation for a long time
| was never in fact recognized.

Of course, on my system (PHP5.2.5/Win, PCRE compiled by PHP), a "\v"
matches: "LF, VT, FF, CR"?

Regards,
Carsten

[1] http://de.php.net/manual/en/reference.pcre.pattern.syntax.php


Previous Comments:
------------------------------------------------------------------------

[2007-11-19 02:58:54] dagdamor at simps dot ru

Description:
------------
To Ilia, http://bugs.php.net/bug.php?id=43316

Are you sure?

Check carefully the
http://www.php.net/manual/en/language.types.string.php, table 11.1, and
what's written right after it.

One should think a little bit before making fundamental changes in the
parser and breaking BC *that* much... >:|



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43328&edit=1

Reply via email to