Doc #50103 [Fbk->NoF]: Outdated information regarding PCRE unicode support
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:34:02 +0000 |
| Subject: | Doc #50103 [Fbk->NoF]: Outdated information regarding PCRE unicode support | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9532@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=50103&edit=1
ID: 50103
Updated by: php-bugs@lists.php.net
Reported by: pete_cags at hotmail dot com
Summary: Outdated information regarding PCRE unicode support
-Status: Feedback
+Status: No Feedback
Type: Documentation Problem
Package: Documentation problem
Operating System: Windows XP 64bit
PHP Version: Irrelevant
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2011-12-04 03:42:58] frozenfire@php.net
Err. I switched it to "No Feedback" too soon... Has the attached patch been
committed? It seems like a reasonable contribution.
------------------------------------------------------------------------
[2010-08-10 19:06:03] philip@php.net
Patch? :)
------------------------------------------------------------------------
[2010-05-15 13:24:55] pete_cags at hotmail dot com
Sorry it has taken me so long to get back to this, but at the
time of reporting it I wasn't confident enough with Regular
Expressions to dispute the bogus status. I have now asked for it
to be re-opened as I'm confident it isn't bogus. Whilst
InMusicalSymbols isn't supported, "Greek" is as are many other
script types. The following code demonstrates this (I omitted the
output in an attempt to avoid TL:DR).
<?php
header("Content-Type: text/html; charset=UTF-8");
$chars = array('Φ', 'a', '1');
foreach($chars as $char) {
if( preg_match( '#\p{Greek}#u', $char ) ) {
echo "{$char} is from the Greek script.<br/>";
} else {
echo "{$char} is NOT from the Greek script.<br/>";
}
}
foreach($chars as $char) {
if( preg_match( '#\p{invalid}#u', $char ) ) {
echo "{$char} is from the Greek script.<br/>";
} else {
echo "{$char} is NOT from the Greek script.<br/>";
}
}
?>
A full list of supported scripts can be found @
http://www.pcre.org/pcre.txt. If needs be I am happy to
create a patch
for the documents, but thought it only fair to re-open this bug in case
further discussion is required first.
------------------------------------------------------------------------
[2010-05-15 13:09:53] degeberg@php.net
Re-opened by request of submitter.
------------------------------------------------------------------------
[2009-11-13 16:52:56] vrana@php.net
Characters are supported but there is no class for it (like \pL for letters).
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=50103
--
Edit this bug report at https://bugs.php.net/bug.php?id=50103&edit=1