php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ermaksibir at gmail dot com
New email:
PHP Version: OS:

 

 [2010-06-17 16:42 UTC] 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));




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&amp;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-09-08 16:56 UTC] cataphract@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cataphract
 [2010-09-08 16:56 UTC] cataphract@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 21:01:27 2024 UTC