]> granicus.if.org Git - php/commitdiff
- Make this compatible with 5.0/1 again
authorMarcus Boerger <helly@php.net>
Mon, 5 Jun 2006 12:20:08 +0000 (12:20 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 5 Jun 2006 12:20:08 +0000 (12:20 +0000)
ext/xmlwriter/php_xmlwriter.c

index e0bf8a614e577b73a285e0a0672b556b85c3e6a0..07b66e1228377d24fe8adc3b874941fcc3168f26 100644 (file)
@@ -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)