note 95535 added to function.preg-match
| From: | Lawrence at osu1 dot php dot net | Date: | Thu, 07 Jan 2010 18:05:04 +0000 |
| Subject: | note 95535 added to function.preg-match | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164758@lists.php.net to get a copy of this message | ||
In response to rabby (28-Apr-2009 02:53), simply splitting long strings into smaller chunks to get
around the segfault errors won't work if you are dealing with multi-byte encodings like UTF-8.
If you split the string at arbitrary lengths, you may be splitting it in the middle of a multi-byte
character. You'd either need to modify your splitting routine to look for multi-byte characters
around the split boundary and make sure you are returning whole characters in each string, or find
some other way around the segfault problem.
----
Server IP: 69.147.83.197
Probable Submitter: 66.186.116.126
----
Manual Page -- http://www.php.net/manual/en/function.preg-match.php
Edit -- https://master.php.net/note/edit/95535
Del: integrated -- https://master.php.net/note/delete/95535/integrated
Del: useless -- https://master.php.net/note/delete/95535/useless
Del: bad code -- https://master.php.net/note/delete/95535/bad+code
Del: spam -- https://master.php.net/note/delete/95535/spam
Del: non-english -- https://master.php.net/note/delete/95535/non-english
Del: in docs -- https://master.php.net/note/delete/95535/in+docs
Del: other reasons-- https://master.php.net/note/delete/95535
Reject -- https://master.php.net/note/reject/95535
Search -- https://master.php.net/manage/user-notes.php