ID: 46551 Updated by: [EMAIL PROTECTED] Reported By: johnpupu at gmail dot com -Status: Open +Status: Feedback Bug Type: PCRE related Operating System: FreeBSD 7.0-RELEASE-p4 PHP Version: 5.2.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ And also, you need to provide the full configure line you used to compile PHP. If you're using anything but bundled PCRE lib -> bogus. Previous Comments: ------------------------------------------------------------------------ [2008-11-12 06:11:26] johnpupu at gmail dot com Description: ------------ if i use preg_replace function , my system log will show Nov 12 13:41:31 mail kernel: pid 51185 (httpd), uid 80: exited on signal 4 i try to use ereg_replace, mb_ereg_replace function , it works . so I think it's preg_replace bugs. $sql = preg_replace("/'(\\'|\\{2}|[^'])*'/", '', $sql) sql statement is INSERT IGNORE INTO bb_posts_text (post_id, post_text) VALUES ( '117766', '[EMAIL PROTECTED] ¦ý¤§«á´N·í§L¤F ¨S¤°»ò®É¶¡ À³¸Ó»¡¤]¨S¾÷·|ª±¨ì·Ó¹³¤â¾÷ ¨º®É´N¥u¦n¦bx¤¤®³nokia ªºE60´¼¼z¤â¾÷¹L¹L°®Å} ²×©óªü ³Q§Ú¼õ¨ì°h¥î¤F...©Ò¥H©O·íµM´N¸ò [EMAIL PROTECTED] ³oª±ªº´X¤Ñ´Á¶¡°£¤F¥Î¬Û¾÷©ç·Ó¥~...¦]¬°¤â¾÷¥Ø«e®³ªº¬Oiphone ©Ò¥H¤]ÀH¤â®³¥X¨Ó¶Ã©ç....ÁöµM¤j®a³£ª¾¹Diphone±j¶µ¤£¦b¬Û¾÷ ¬Æ¦Ü´¶¹M¦³¤H·|ı±o¥¦ªº©ç·Ó«ÜÄê...¦ý¸g¹L³o¦¸iphone¬Û¾÷³§Ú¾Þ¤F4¤Ñ¤§«á ¦ý§Ú¯uªºÄ±±o°Õ ¥H¥Lªº200¸Uµ¥¯Å µL¦Û°Ê¹ïµJµ¥¯Å¨Ó»¡ ³o¤ä©ç·Ó§Úı±o¥i¥H¦b³o¨Çµ¥¯Åªº¤â¾÷¸ÌºâÆZ«e±ªº¤F (ºâ¬Oȱo¹Å³\©Ô..¦Ü¤Ö¥H¥L©ç·Ó³W®æ¨Ó¬Ý..¦]¬°¥ý«e¥Î¹LµLaf200¸Uµe¯À©ç' ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46551&edit=1
