|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-02-12 08:22 UTC] wangxx2026 at 126 dot com
Description:
------------
preg_replace替换内容过多报Segmentation fault
Test script:
---------------
$s='<p>
九坤·新城壹号独具一格的外立面,一度引领了东西湖区的风尚,耀眼无比,更获得了2014年度“风尚楼盘”的称号。<br />
</p>
';
preg_replace("/(\ \;)+/", "", $s);
Expected result:
----------------
no Segmentation fault
Actual result:
--------------
Segmentation fault
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
#0 0x00000000004a9fa9 in match ( eptr=0x7f4e91699620 " &n"..., ecode=0x2a66193 "\205", mstart=<error reading variable: Cannot access memory at address 0x7fffc4f48da8>, offset_top=<error reading variable: Cannot access memory at address 0x7fffc4f48da4>, md=<error reading variable: Cannot access memory at address 0x7fffc4f48d98>, eptrb=<error reading variable: Cannot access memory at address 0x7fffc4f48d90>, rdepth=8862) at /usr/local/src/php-5.5.16/ext/pcre/pcrelib/pcre_exec.c:516 #1 0x00000000004acf3e in match ( eptr=0x7f4e91699620 " &n"..., ecode=0x2a661a4 "y", mstart=0x7f4e91692e46 " &n"..., offset_top=4, md=0x7fffc57438c0, eptrb=0x0, rdepth=8861) at /usr/local/src/php-5.5.16/ext/pcre/pcrelib/pcre_exec.c:2043 #2 0x00000000004aab1e in match ( eptr=0x7f4e9169961a " &n"..., ecode=0x2a66193 "\205", mstart=0x7f4e91692e46 " &n"..., offset_top=4, md=0x7fffc57438c0, eptrb=0x0, rdepth=8860) at /usr/local/src/php-5.5.16/ext/pcre/pcrelib/pcre_exec.c:983 #3 0x00000000004acf3e in match ( eptr=0x7f4e9169961a " &n"..., ecode=0x2a661a4 "y", mstart=0x7f4e91692e46 " &n"..., offset_top=4, md=0x7fffc57438c0, eptrb=0x0, rdepth=8859) at /usr/local/src/php-5.5.16/ext/pcre/pcrelib/pcre_exec.c:2043 ......