Doc #52111 [Opn->Csd]: System Windows NT DOM 5.1 build 2600 (Windows XP Professional Service Pack 3
| From: | cataphract@php.net | Date: | Wed, 08 Sep 2010 14:56:10 +0000 |
| Subject: | Doc #52111 [Opn->Csd]: System Windows NT DOM 5.1 build 2600 (Windows XP Professional Service Pack 3 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-4999@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52111&edit=1
ID: 52111
Updated by: cataphract@php.net
Reported by: ermaksibir at gmail dot com
Summary: System Windows NT DOM 5.1 build 2600 (Windows XP
Professional Service Pack 3
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: PCRE related
Operating System: windows xp sp3
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cataphract
Block user comment: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-09-08 16:56:02] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=303177
Log: - Changed the language on the documentation of preg_filter to make
it clear that it returns the subjects where that was a match, not the
matches themselves.
- Closes bug #52111
------------------------------------------------------------------------
[2010-06-17 16:44:51] ermaksibir at gmail dot com
problem with preg_filter
------------------------------------------------------------------------
[2010-06-17 16:42:47] ermaksibir at gmail dot com
Description:
------------
PHP Version 5.3.1
This function does not work with strings. With them, it works similar to
preg_replace (). ie displays the entire string, and not just
coincidence.
Error or function, or describing it. Please, if possible, make sure that
it worked with strings.
Sorry my english
Test script:
---------------
cp windows 1251 (cirilic)
$text = 'ЧÑо Ñебе подаÑиÑÑ,
Ñеловек мой
доÑогой
?..
Я бÑ, к пÑимеÑÑ, Ñаз и навÑегда
поÑовеÑовала ÑдеÑжаÑÑÑÑ Ð¾Ñ
поÑÑва
пÑеподноÑиÑÑ Ð¼ÑжÑине
живоÑнÑÑ
.'
echo (preg_filter
('/((\?)|(\!))[\,\.]+/','<br><strong>$0</strong><br>',
$text));
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52111&edit=1