Fix PHP 5.2 for libxml2 2.9.x