Also remove unnecessary #ifdef's for PACKAGE and VERSION.
#include "php_compat.h"
/* automake defines PACKAGE and VERSION for Zend too */
-#ifdef PACKAGE
-# undef PACKAGE
-#endif
-#ifdef VERSION
-# undef VERSION
-#endif
+#undef PACKAGE
+#undef VERSION
#include "zend_API.h"
+#if PHP_BROKEN_SPRINTF
+#undef sprintf
+#define sprintf php_sprintf
+#endif
extern unsigned char first_arg_force_ref[];
extern unsigned char first_arg_allow_ref[];