changes for php 5.4 and zlib 1.2.7-9