note 74037 added to function.preg-replace

From: Date: Wed, 21 Mar 2007 17:47:27 +0000
Subject: note 74037 added to function.preg-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-124681@lists.php.net to get a copy of this message
Be aware that when using the "/u" modifier, if your input text contains any bad UTF-8 code sequences, then preg_replace will return an empty string, regardless of whether there were any matches. This is due to the PCRE library returning an error code if the string contains bad UTF-8. ---- Server IP: 64.71.164.2 Probable Submitter: 192.216.254.5 ---- Manual Page -- http://www.php.net/manual/en/function.preg-replace.php Edit -- https://master.php.net/note/edit/74037 Del: integrated -- https://master.php.net/note/delete/74037/integrated Del: useless -- https://master.php.net/note/delete/74037/useless Del: bad code -- https://master.php.net/note/delete/74037/bad+code Del: spam -- https://master.php.net/note/delete/74037/spam Del: non-english -- https://master.php.net/note/delete/74037/non-english Del: in docs -- https://master.php.net/note/delete/74037/in+docs Del: other reasons-- https://master.php.net/note/delete/74037 Reject -- https://master.php.net/note/reject/74037 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124681) next »