Fix a segfault with PHP5.4.13 on Debian only.