From: php at strategma dot bg Operating system: Slackware 9.1 kernel: 2.4.22 PHP version: 4.3.4 PHP Bug Type: mbstring related Bug description: mbstring.func_overload set in .htaccess becomes global
Description: ------------ ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --prefix=/usr/local/php --enable-mbstring \ --with-mbregex apache version 1.3.29 we set in .htaccess PHP_VALUE mbstring.internal_encoding UTF-8 PHP_VALUE default_charset UTF-8 PHP_VALUE mbstring.http_output UTF-8 PHP_VALUE mbstring.encoding_translation On PHP_VALUE mbstring.detect_order UTF-8 PHP_VALUE mbstring.func_overload 7 for specific site, but string functions on other web sites at the same apache doest work (other sites use CP1251 enconding). The string functions stop to work when anyone access the unicode site. When we stop apache and start it again cp1251 string functions work properly. we tryed the same configuration in the <VirtualHost> directive at apache's httpd.conf for the UNICODE site and in the <Directory> but it is the same result With or without setlocale(LC_ALL,"bg_BG.CP1251") or bg_BG or bg_BG.UTF-8 we have tryed all combinations and it still doesnt work. thanks in advance Reproduce code: --------------- <?php $v = 'Това е тест|test.php'; print substr($v,0,strpos($v,'|')); ?> Expected result: ---------------- Това е тест Actual result: -------------- Това -- Edit bug report at http://bugs.php.net/?id=27421&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27421&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27421&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27421&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27421&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27421&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27421&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27421&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27421&r=support Expected behavior: http://bugs.php.net/fix.php?id=27421&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27421&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27421&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27421&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27421&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27421&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27421&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27421&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27421&r=float