diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index e0bf8a614e5..07b66e12283 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -174,6 +174,10 @@ static zend_function_entry xmlwriter_functions[] = { /* }}} */ #ifdef ZEND_ENGINE_2 +#if (PHP_MINOR_VERSION < 2) && (PHP_MAJOR_VERSION == 5) +#undef PHP_ME_MAPPING +#define PHP_ME_MAPPING(name, func_name, arg_types, flags) ZEND_ME_MAPPING(name, func_name, arg_types) +#endif /* {{{ xmlwriter_class_functions */ static zend_function_entry xmlwriter_class_functions[] = { PHP_ME_MAPPING(openUri, xmlwriter_open_uri, NULL, 0)