note 87867 added to function.eregi-replace

From: Date: Sat, 27 Dec 2008 23:44:11 +0000
Subject: note 87867 added to function.eregi-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-148592@lists.php.net to get a copy of this message
I'm using PHP 4.4.7 and have found eregi_replace to be sometimes returning UTF-8 encoded strings when the parameter string was not UTF-8 encoded. I haven't been able to isolate what is triggering this response. For now, I've commented out the offending eregi_replace call and have to use multiple calls to str_replace to get the desired effect. This obviously adds to the overhead and slows the script down. My PHP configuration is as follows: /SourceCache/apache_mod_php/apache_mod_php-17.13/php/configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-apxs --with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib-dir=/usr --enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr --with-curl=/usr --with-config-file-path=/etc --sysconfdir=/private/etc --without-pear ---- Server IP: 69.147.83.197 Probable Submitter: 190.134.14.233 ---- Manual Page -- http://www.php.net/manual/en/function.eregi-replace.php Edit -- https://master.php.net/note/edit/87867 Del: integrated -- https://master.php.net/note/delete/87867/integrated Del: useless -- https://master.php.net/note/delete/87867/useless Del: bad code -- https://master.php.net/note/delete/87867/bad+code Del: spam -- https://master.php.net/note/delete/87867/spam Del: non-english -- https://master.php.net/note/delete/87867/non-english Del: in docs -- https://master.php.net/note/delete/87867/in+docs Del: other reasons-- https://master.php.net/note/delete/87867 Reject -- https://master.php.net/note/reject/87867 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148592) next »