From 80e0bc7e786447dcb8c9c6fac212409e5b6b9537 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 5 Aug 2009 13:09:13 +0200 Subject: [PATCH] PHP: define our own ZEND_MODULE_BUILD_ID macro to silence a PHP 5.3 warning --- Source/Modules/php.cxx | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx index 3bdbb98..71b1747 100644 --- a/Source/Modules/php.cxx +++ b/Source/Modules/php.cxx @@ -501,6 +501,10 @@ public: Printf(s_entry, "static zend_function_entry %s_functions[] = {\n", module); /* start the init section */ + Append(s_init, "#ifdef ZEND_MODULE_BUILD_ID\n"); + Append(s_init, "#undef ZEND_MODULE_BUILD_ID\n"); + Append(s_init, "#define ZEND_MODULE_BUILD_ID (char*)\"API\" ZEND_TOSTR(ZEND_MODULE_API_NO) ZEND_BUILD_TS ZEND_BUILD_DEBUG ZEND_BUILD_SYSTEM ZEND_BUILD_EXTRA\n"); + Append(s_init, "#endif\n"); Printv(s_init, "zend_module_entry ", module, "_module_entry = {\n" "#if ZEND_MODULE_API_NO > 20010900\n" " STANDARD_MODULE_HEADER,\n" "#endif\n", NIL); Printf(s_init, " (char*)\"%s\",\n", module); Printf(s_init, " %s_functions,\n", module); -- 1.6.3.3