This is fixed in 5.6.14+dfsg-1ubuntu1 based on the NEWS file in there reporting upstream 64938 fixed so I'm marking this Fix Released in Xenial.
It looks like this does still affect Trusty and was committed to 5.5.22 upstream and can be cherry-picked from http://git.php.net/?p=php-src.git;a=commit;h=de31324c221c1791b26350ba106cc26bad23ace9
This is fixed in 5.6.14+ dfsg-1ubuntu1 based on the NEWS file in there reporting upstream 64938 fixed so I'm marking this Fix Released in Xenial.
It looks like this does still affect Trusty and was committed to 5.5.22 upstream and can be cherry-picked from http:// git.php. net/?p= php-src. git;a=commit; h=de31324c221c1 791b26350ba106c c26bad23ace9