|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52111 System Windows NT DOM 5.1 build 2600 (Windows XP Professional Service Pack 3
Submitted: 2010-06-17 16:42 UTC Modified: 2010-09-08 16:56 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ermaksibir at gmail dot com Assigned: cataphract (profile)
Status: Closed Package: PCRE related
PHP Version: Irrelevant OS: windows xp sp3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ermaksibir at gmail dot com
New email:
PHP Version: OS:


 [2010-06-17 16:42 UTC] ermaksibir at gmail dot com
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));


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-17 16:44 UTC] ermaksibir at gmail dot com
problem with preg_filter
 [2010-09-08 16:56 UTC]
Automatic comment from SVN on behalf of cataphract
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-09-08 16:56 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract
 [2010-09-08 16:56 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 29 18:01:25 2023 UTC