From: lapo at lapo dot it Operating system: PHP version: 5.1.6 PHP Bug Type: mbstring related Bug description: --zend-multibyte doesn't work for a few seconds on startup
Description: ------------ Zend multibyte option (that ought to automagically detect script file format and read it accordingly) starts working correctly after a few seconds (I tested it only in FastCGI, as I use lighty and not Apache). Reproduce code: --------------- File checkUTF8.php (encoded in UTF-8 with explicit BOM, aka UTF-8Y): \xEF\xBB\xBF<?= ('à' == "\xC3\xA0") ? "OK\n" : "Broken\n" ?> (the first three chars are the UTF8-encoded BOM) Expected result: ---------------- % php -r checkUTF8.php OK % while true; do elinks -dump 'http://wlocalhost/checkUTF8.php'; sleep 1; done OK OK (lighttpd restarted from a different shell) ELinks: Connection refused ELinks: Connection refused OK OK OK OK Actual result: -------------- % php -r checkUTF8.php Broken % while true; do elinks -dump 'http://wlocalhost/checkUTF8.php'; sleep 1; done OK OK (lighttpd restarted from a different shell) ELinks: Connection refused ELinks: Connection refused Broken Broken OK OK -- Edit bug report at http://bugs.php.net/?id=38926&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38926&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38926&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38926&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38926&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38926&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38926&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38926&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38926&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38926&r=support Expected behavior: http://bugs.php.net/fix.php?id=38926&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38926&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38926&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38926&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38926&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38926&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38926&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38926&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38926&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38926&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38926&r=mysqlcfg