note 29134 added to function.preg-replace
| From: | evan at NOSPAMnsai dot com | Date: | Tue, 04 Feb 2003 05:20:00 +0000 |
| Subject: | note 29134 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43367@lists.php.net to get a copy of this message | ||
I was getting 'child pid xxxxx exit signal Segmentation fault (11)' in my apache error log
when using preg_replace on certian strings with special characters. I was able to filter the string
first with 'ereg_replace("^[\32-\126\t\n\r]", "", $msgBody)' first to
avoid the nasty seg faults.
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+29134
http://master.php.net/manage/user-notes.php?action=delete+29134
http://master.php.net/manage/user-notes.php?action=reject+29134