Edit report at http://bugs.php.net/bug.php?id=42396&edit=1
ID: 42396
Comment by: phofstetter at sensational dot ch
Reported by: francois at tekwire dot net
Summary: Followup to #36711: __halt_compiler() and unicode
detection
Status: Assigned
Type: Feature/Change Request
Package: Feature/Change Request
Operating System: all
PHP Version: 5.2.3
Assigned To: hirokawa
New Comment:
somehow, recently, the default value of detect_unicode seems to have
changed.
With detect_unicode enabled, it's impossible to run any PHAR-file -
neither
through the CLI or through the web server. IMHO, this should really be
looked
into.
Previous Comments:
------------------------------------------------------------------------
[2007-08-27 08:38:58] [email protected]
IMHO, #42396 is not a bug, but it is the specification.
The normal script doesn't contain a null byte if it is not encoded in
Unicode.
It is understandable the addition of a unique byte seqence
'0xFFFFFFFF' detection to support PHAR/PHK,
but it is a change to add a new feature.
Rui
------------------------------------------------------------------------
[2007-08-24 10:30:12] [email protected]
Patch posted to internals: http://news.php.net/php.internals/31870
------------------------------------------------------------------------
[2007-08-24 10:29:05] [email protected]
The same folks who maintain mbstring have added that support so it's not
so wrong choice. Reclassified though. And assigned to the maintainer.
------------------------------------------------------------------------
[2007-08-23 16:24:33] francois at tekwire dot net
Not sure it should be reclassified as mbstring related, as the bug is in
Zend/zend_multibyte.c and has nothing to do with mbstring.
PHP5 has a little unicode part in the engine. It even has an
(undocumented) 'detect_unicode' option.
------------------------------------------------------------------------
[2007-08-23 14:08:09] [email protected]
Reclassified: There is no unicode in PHP 5. Just mbstring.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=42396
--
Edit this bug report at http://bugs.php.net/bug.php?id=42396&edit=1