Bug #69037 [Com]: preg_replaceæ¿æ¢å 容è¿å¤æ¥Segmentation fault
| From: | 25843528 at qq dot com | Date: | Thu, 12 Feb 2015 09:19:55 +0000 |
| Subject: | Bug #69037 [Com]: preg_replaceæ¿æ¢å 容è¿å¤æ¥Segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190608@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69037&edit=1
ID: 69037
Comment by: 25843528 at qq dot com
Reported by: wangxx2026 at 126 dot com
Summary: preg_replaceæ¿æ¢å
容è¿å¤æ¥Segmentation fault
Status: Open
Type: Bug
Package: Filter related
Operating System: Ubuntu 12.04.3
PHP Version: 5.5.16
Block user comment: N
Private report: N
New Comment:
you are chinese
Previous Comments:
------------------------------------------------------------------------
[2015-02-12 08:31:16] wangxx2026 at 126 dot com
çæ¬å·ä¿®æ¹
------------------------------------------------------------------------
[2015-02-12 08:22:32] wangxx2026 at 126 dot com
Description:
------------
preg_replaceæ¿æ¢å
容è¿å¤æ¥Segmentation fault
Test script:
---------------
$s='<p>
ä¹å¤·æ°å壹å·ç¬å
·ä¸æ ¼çå¤ç«é¢ï¼ä¸åº¦å¼é¢äºä¸è¥¿æ¹åºçé£å°ï¼èç¼æ æ¯ï¼æ´è·å¾äº2014年度“é£å°æ¥¼ç”çç§°å·ã<br
/>
&nbs!
p; &n!
bsp; &nbs!
p; &n!
bsp; !
 !
; &nb!
sp; &!
nbsp; !
&nbs!
p; &n!
bsp; &!
nbsp;  !
; &nb!
sp; &n!
bsp; !
&nbs!
p; &nb!
sp; &!
nbsp;  !
; &nbs!
p; &n!
bsp; !
 !
; &nb!
sp; &!
nbsp; !
&nbs!
p; &n!
bsp; &!
nbsp;  !
; &nb!
sp; &n!
bsp; !
&nbs!
p; &nb!
sp; &!
nbsp;  !
; &nbs!
p; &n!
bsp; !
 !
; &nb!
sp; &!
nbsp; !
&nbs!
p; &n!
bsp; &!
nbsp;  !
; &nb!
sp; &n!
bsp; !
&nbs!
p; &nb!
sp; &!
nbsp;  !
; &nbs!
p; &n!
bsp; !
 !
; &nb!
sp; &!
nbsp; !
&nbs!
p; &n!
bsp; &!
nbsp;  !
; &nb!
sp; &n!
bsp; !
&nbs!
p; &nb!
sp; &!
nbsp;  !
; &nbs!
p; &n!
bsp; !
 !
; &nb!
sp; &!
nbsp; !
&nbs!
p; &n!
bsp; &!
nbsp;  !
; &nb!
sp; &n!
bsp; !
&nbs!
p; &nb!
sp; &!
nbsp;  !
; &nbs!
p; </p>
';
preg_replace("/(\ \;)+/", "", $s);
Expected result:
----------------
no Segmentation fault
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69037&edit=1