¢Ãöá Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office
XP Professional, Office Pro 2003 ¶Ã¡Ãá ¢Ã§á·éá¹è¹Ã¹ 100 %
µÃ´µèà Paisarn 06-5881135
- Windows 95 ẺÃà CD ¤ÃºªÃ´ 200 bath
- Windows 98 book+COA only 800 bath
- Windows 98 book+COA+
Hi:
Enjoyed Andrei's talk at the NYPHP Conference last week about unicode in
PHP 6. He mentioned that when unicode.semantics is on, strlen() will
return the number of characters rather than the number of bytes, like
mb_string() does or strlen() if mbstring.func_overload is on.
The hitch here
I think the xml stuff in php_compat.h needs some attention.
The gd defines need moved out side of the xml stuff and only things
from expat_compat.h need compat'ed.
This patch is what I was thinking:
http://www.brianfrance.com/software/php/php_compat.h.patch
This also adds one that is used b
> Enjoyed Andrei's talk at the NYPHP Conference last week about unicode in
> PHP 6. He mentioned that when unicode.semantics is on, strlen() will
> return the number of characters rather than the number of bytes, like
> mb_string() does or strlen() if mbstring.func_overload is on.
>
> The hitch he
>
> > Enjoyed Andrei's talk at the NYPHP Conference last week
> about unicode in
> > PHP 6. He mentioned that when unicode.semantics is on,
> strlen() will
> > return the number of characters rather than the number of
> bytes, like
> > mb_string() does or strlen() if mbstring.func_overload is
I hope that my latest commits makes both camps happy.
The handler signature is actually:
function my_handler($direction, $encoding, $char_or_byte, $offset,
$message) { .. }
-Andrei
On Apr 19, 2006, at 2:32 PM, Andrei Zmievski wrote:
I've had some time to think about this and Derick and I
Not sure why this didn't get through..
- Original Message -
Hi,
> @@ -1216,7 +1216,7 @@
>
> p = php_stream_mmap_range(src, php_stream_tell(src),
> maxlen, PHP_STREAM_MAP_MODE_SHARED_READONLY, &mapped);
>
> - if (p) {
> + if (p && mapped) {
>
What happens with
$fp = fopen('foo.bin', 'wb');
$written = fwrite($fp, $str);
if (strlen($str) != $written)
{
echo 'Not written', "\n";
}
Assuming $str is a binary string. The above code works just fine.
If it's a unicode string:
Short version: Don't do that.
Writing a unicode string to a