> The problem with the segfault in memcpy from bug 50207 was that the
> pointer result->value.str.val is a 64 bit unsigned integer, and of
> course result->value.str.len is a signed 32 bit integer.  The value of

you're right, len is declared as int and it's indeed 32bit under 64bit 
Linux.
It must be changed to long in order to have proper arithmetic with strings
longer than 0x7fffffff bytes.

I think it can't be changed in neither 5.2 nor 5.3, or it will break binary 
compatibility.
Perhaps the change should be submited into 5.4 and 6.0 branches.

-jv 



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to