On Wed, 21 Jun 2006, Zeev Suraski wrote:
Well, as I said I think it actually makes the code more readable, by hinting
you what you can ignore if you're running through the 'common case' (i.e.,
even if this macro was a no-op). Diving into a big block of code is easier if
you can ignore parts
¢Ò¶١ 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+CD 1,000 bath
- Windows 98 SE book +
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
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 is
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
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