note 74654 added to function.preg-match
| From: | robert at kajic dot com | Date: | Sat, 21 Apr 2007 21:01:16 +0000 |
| Subject: | note 74654 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125761@lists.php.net to get a copy of this message | ||
As an update to my previous post,
After further investigations I discovered my solution doesn't solve the Segmentation fault.
What it does is increase the maximum possible size of the subject sent to preg_replace before it
causes a Segmentation fault. My subject string was ~450kB in size and I guess the maximum subject
size was somewhere bellow 450kB before I updated Php and PCRE. After the update the maximum subject
size was increased to ~1MB.
I did some testing on the WAMP machine and discovered it has the same limitations (remember it uses
PCRE 6.7).
Until this is fixed my solution to the problem will be to split the subject into 1MB pieces and test
them individually.
/Robert Kajic
----
Server IP: 69.147.83.197
Probable Submitter: 130.243.170.144
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/74654
Del: integrated -- https://master.php.net/note/delete/74654/integrated
Del: useless -- https://master.php.net/note/delete/74654/useless
Del: bad code -- https://master.php.net/note/delete/74654/bad+code
Del: spam -- https://master.php.net/note/delete/74654/spam
Del: non-english -- https://master.php.net/note/delete/74654/non-english
Del: in docs -- https://master.php.net/note/delete/74654/in+docs
Del: other reasons-- https://master.php.net/note/delete/74654
Reject -- https://master.php.net/note/reject/74654
Search -- https://master.php.net/manage/user-notes.php