#40441 [NEW]: mbstring function overloading turns on randomly
| From: | dmitry at rsl dot ru | Date: | Mon, 12 Feb 2007 08:48:45 +0000 |
| Subject: | #40441 [NEW]: mbstring function overloading turns on randomly | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108706@lists.php.net to get a copy of this message | ||
From: dmitry at rsl dot ru
Operating system: linux
PHP version: 5.2.1
PHP Bug Type: mbstring related
Bug description: mbstring function overloading turns on randomly
Description:
------------
Just like http://bugs.php.net/bug.php?id=39361
with exception that
mbstring.func_overload is set to 2 globaly, but disabled for virtualhost.
This leads mbstring function overloading to be enabled randomly.
Try to visit and then refresh
http://www.projectharmony.ru/temp-images/q.php
several times.
http://www.projectharmony.ru/temp-images/qq.php
is the same script plus
phpinfo();
Reproduce code:
---------------
<? if (strstr('','')) { } ?>
Expected result:
----------------
nothing expected
Actual result:
--------------
randomly:
Warning: mb_strstr() [function.mb-strstr]: Empty delimiter. in q.php on
line 1
-- or --
nothing (as expected)
-- or --
Warning: strstr() [function.strstr]: Empty delimiter. in
/home/html/www.projectharmony.ru/temp-images/q.php on line 1 (rare)
--
Edit bug report at http://bugs.php.net/?id=40441&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40441&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40441&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40441&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40441&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40441&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40441&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40441&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40441&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40441&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40441&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40441&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40441&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40441&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40441&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40441&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40441&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40441&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40441&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40441&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40441&r=mysqlcfg