From: [EMAIL PROTECTED]
Operating system:
PHP version: 6CVS-2006-07-14 (CVS)
PHP Bug Type: Unicode Engine related
Bug description: Streams encoding doesn't seem to work
Description:
------------
Streams encodings don't seem to work as advertised.
Reproduce code:
---------------
code
----
file_put_contents('abcdef', 'str.txt', FILE_TEXT);
php.ini
-------
unicode.semantics = on
unicode.output_encoding = utf-8
unicode.runtime_encoding = iso-8859-1
unicode.script_encoding = utf-8
unicode.filesystem_encoding = utf-8
Expected result:
----------------
No stdout output and 6 chars in UTF-8 in str.txt.
Actual result:
--------------
Notice: file_put_contents(): 7 character unicode buffer downcoded for
binary stream runtime_encoding in /home/andrei/dev/php-src/q.php on line
3
--
Edit bug report at http://bugs.php.net/?id=38105&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=38105&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=38105&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=38105&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38105&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=38105&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38105&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38105&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38105&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38105&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38105&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=38105&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=38105&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38105&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38105&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38105&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38105&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38105&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38105&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38105&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38105&r=mysqlcfg