#38926 [NoF->Opn]: --zend-multibyte doesn't work for a few seconds on startup
| From: | lapo at lapo dot it | Date: | Wed, 15 Nov 2006 22:11:01 +0000 |
| Subject: | #38926 [NoF->Opn]: --zend-multibyte doesn't work for a few seconds on startup | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105038@lists.php.net to get a copy of this message | ||
ID: 38926
User updated by: lapo at lapo dot it
Reported By: lapo at lapo dot it
-Status: No Feedback
+Status: Open
Bug Type: Unknown/Other Function
PHP Version: 5.1.6
New Comment:
Sorry, I didn't check the snapshot yet, but I tested it with PHP 5.2.0,
with the following result:
% php checkUTF8.php
Broken
% while true; do elinks -dump 'http://localhost/checkUTF8.php'; sleep
1; done
OK
OK
(lighttpd restarted from a different shell)
ELinks: Connection refused
ELinks: Connection refused
Broken
Broken
Broken
Broken
OK
OK
Well, something has changed: now the problem shows from CLI too =(
Previous Comments:
------------------------------------------------------------------------
[2006-10-26 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-10-18 20:54:30] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2006-09-22 13:36:00] lapo at lapo dot it
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 this bug report at http://bugs.php.net/?id=38926&edit=1