#27421 [NEW]: mbstring.func_overload set in .htaccess becomes global
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
Thread (28 messages)
- php at strategma dot bg
- iliaa@php.net#27421 [Opn->Csd]: mbstring.func_overload set in .htaccess becomes global
- moriyoshi@php.net#27421 [Csd->Fbk]: mbstring.func_overload set in .htaccess becomes global
- iliaa@php.net#27421 [Fbk->Csd]: mbstring.func_overload set in .htaccess becomes global
- moriyoshi@php.net#27421 [Csd->Fbk]: mbstring.func_overload set in .htaccess becomes global
- sniper@php.net#27421 [Fbk->NoF]: mbstring.func_overload set in .htaccess becomes global
- nong11yjyygy at yahoo dot com#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- christophe at saout dot de#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- info at bert-jan dot com#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- info at bert-jan dot com#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- info at bert-jan dot com#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- mihau at great dot net dot pl#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- lip at lip dot net dot ua#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- rnbarra at yaho dot copm#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- david at dfoerster dot de#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- david at dfoerster dot de#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- felipe@php.net#27421 [NoF]: mbstring.func_overload set in .htaccess becomes global
- felipe@php.net#27421 [NoF->Asn]: mbstring.func_overload set in .htaccess becomes global
- future at shiny dot co dot il#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- future at shiny dot co dot il#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- jani@php.net#27421 [Asn->Opn]: mbstring.func_overload set in .htaccess becomes global
- jani@php.net#27421 [Opn->Asn]: mbstring.func_overload set in .htaccess becomes global
- hirokawa@php.net#27421 [Asn->Fbk]: mbstring.func_overload set in .htaccess becomes global
- david at dfoerster dot de#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- awad33333 at hotmail dot com#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- torkel at eonbit dot com#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- dollar80 at freemail dot hu#27421 [Com]: mbstring.func_overload set in .htaccess becomes global
- hirokawa@php.net#27421 [NoF->Csd]: mbstring.func_overload set in .htaccess becomes global