Doc #62428 [Com]: PCRE "\g" escape missing "<name>" in documentation

From: Date: Wed, 15 Apr 2015 14:15:32 +0000
Subject: Doc #62428 [Com]: PCRE "\g" escape missing "<name>" in documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12159@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62428&edit=1 ID: 62428 Comment by: ppaisndud at gmail dot com Reported by: danielklein at airpost dot net Summary: PCRE "\g" escape missing "<name>" in documentation Status: Open Type: Documentation Problem Package: Documentation problem PHP Version: 5.4.4 Block user comment: N Private report: N New Comment: Documentation has been fixed, can be closed Previous Comments: ------------------------------------------------------------------------ [2012-06-27 01:31:39] danielklein at airpost dot net Description: ------------ http://www.php.net/manual/en/regexp.reference.back-references.php PCRE also allows "\g" to use "<name>". I don't know since which version of PHP, but going by the existing documentation it should have been between 5.2.2 and 5.2.4. Please make note of this in the documentation. Test script: --------------- <?php var_dump(preg_match('/(?<bar>o)\g<bar>/', 'foo')); ?> Actual result: -------------- int(1) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=62428&edit=1

« previous php.doc.bugs (#12159) next »