fix assembly of safe_address() for x86 and x86_64
truncate results at depth of 255 to prevent corruption
add test for bug #65236
PHP 5.3.27