Re: [PHP-DEV] fwrite( ) gives Notice with Unicode ON

2007-05-31 Thread Johannes Schlüter
Hi, yes, the notice is expected. You either have to cast to a binary string or by setting the stream's encoding using stream_encode() since we can't guess which encoding you're going to use for a stream. johannes On Thu, 2007-05-31 at 05:38 -0700, Nikhil Gupta wrote: > Hi, > I'm writing some PHP

[PHP-DEV] fwrite( ) gives Notice with Unicode ON

2007-05-31 Thread Nikhil Gupta
Hi, I'm writing some PHPT test cases for PHP 6 and wanted to check that I was seeing the correct behaviour with unicode. I tried the following simple testcase and gets Notice message with php6 unicode ON. --TEST-- test.phpt --FILE-- --UEXPECT-- command: php run-tests.php -u test.phpt cat test.