Code: Select all
PHP Warning: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Internal pcre_fullinfo() error -3Code: Select all
<?
$str = 'test';
function test($str) {
return = preg_replace("/([\"\\\\])/", "\\\\$1", $str);
}
echo test($str);
?>Here are my USE flags for libpcre and php.
Code: Select all
[ebuild R ] dev-libs/libpcre-7.8 USE="bzip2 cxx unicode zlib -doc" 0 kB
[ebuild R ] dev-lang/php-5.2.8-r1 USE="apache2 berkdb cli crypt gdbm iconv mysql mysqli ncurses nls pcre readline reflection session spl ssl truetype unicode xml zlib -adabas -bcmath -birdstep -bzip2 -calendar -cdb -cgi -cjk -concurrentmodphp -ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -exif -fastbuild -fdftk -filter -firebird -flatfile -force-cgi-redirect -frontbase -ftp -gd -gd-external -gmp -hash -imap -inifile -interbase -iodbc -ipv6 (-java-external) -json -kerberos -kolab -ldap -ldap-sasl -libedit -mcve -mhash -msql -mssql -oci8 -oci8-instant-client -odbc -pcntl -pdo -pic -posix -postgres -qdbm -recode -sapdb -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid -spell -sqlite -suhosin -sybase -sybase-ct -sysvipc -threads -tidy -tokenizer -wddx -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz -zip -zip-external" 0 kBAny help is greatly appreciated.
Thanks much!
hanji



