#include "php_version.h"
+#if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION >= 3)
+# define HTTP_ZAPI_CONST_CAST(t) (const t)
+#else
+# define HTTP_ZAPI_CONST_CAST(t) (t)
+#endif
+
#if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION == 0)
# define WONKY
#endif
#endif
#ifndef ZEND_MN
-# define ZEND_MN(name) zim_##name
+# define ZEND_MN(name) ZEND_FN(name)
#endif
#ifdef WONKY