Fixed bug #64124 (IPv6 malformed)
Exceptions triggered by undefined variable should be handled before FATAL error

this is a enhancement of the fix for bug #64135
Merge branch 'PHP-5.5'