OSDN Git Service

https://osdn.net/projects/swfed/scm/git/swfed/commits/95e67e1310189ada3b5c48ab7b347ef...
authorYoya <yoya@awm.jp>
Tue, 18 Oct 2016 15:21:27 +0000 (00:21 +0900)
committerYoya <yoya@awm.jp>
Tue, 18 Oct 2016 15:21:27 +0000 (00:21 +0900)
SWF_VERSION を PHP_SWF_VERSION に改名してヘッダファイルに移動

src/php5_swfed.c
src/php_swfed.c
src/php_swfed.h

index d795f8d..be285dd 100644 (file)
@@ -42,8 +42,6 @@
 #include "swf_tag.h"
 #include "swf_object.h"
 
-#define SWFED_VERSION "0.64a"
-
 #define get_zend_hash_value_long(table, key, value) do { \
         zval **tmp = NULL; \
         if (zend_hash_find(table, key, sizeof(key), (void**)&tmp) == SUCCESS) { \
@@ -151,7 +149,7 @@ zend_module_entry swfed_module_entry = {
         PHP_RSHUTDOWN(swfed),  /* Replace with NULL if there's nothing to do at request end */
         PHP_MINFO(swfed),
 #if ZEND_MODULE_API_NO >= 20010901
-        SWFED_VERSION, /* Replace with version number for your extension */
+        PHP_SWFED_VERSION,
 #endif
         STANDARD_MODULE_PROPERTIES
 };
@@ -249,7 +247,7 @@ PHP_MINFO_FUNCTION(swfed)
         int png_support = 0;
         php_info_print_table_start();
         php_info_print_table_header(2, "SWF Editor support", "enabled");
-        php_info_print_table_row(2, "SWF Editor version", SWFED_VERSION);
+        php_info_print_table_row(2, "SWF Editor version", PHP_SWFED_VERSION);
 #ifdef HAVE_PNG
         png_support = 1;
 #endif
index 193aae4..4281739 100644 (file)
@@ -42,8 +42,6 @@
 #include "swf_tag.h"
 #include "swf_object.h"
 
-#define SWFED_VERSION "0.64a"
-
 #define get_zend_hash_value_long(table, key, value) do { \
         zval *tmp = NULL; \
         if ((tmp = zend_hash_str_find(table, ZEND_STRL(key))) != NULL) { \
@@ -151,7 +149,7 @@ zend_module_entry swfed_module_entry = {
         PHP_RSHUTDOWN(swfed),  /* Replace with NULL if there's nothing to do at request end */
         PHP_MINFO(swfed),
 #if ZEND_MODULE_API_NO >= 20010901
-        SWFED_VERSION, /* Replace with version number for your extension */
+        PHP_SWFED_VERSION,
 #endif
         STANDARD_MODULE_PROPERTIES
 };
@@ -250,7 +248,7 @@ PHP_MINFO_FUNCTION(swfed)
         int png_support = 0;
         php_info_print_table_start();
         php_info_print_table_header(2, "SWF Editor support", "enabled");
-        php_info_print_table_row(2, "SWF Editor version", SWFED_VERSION);
+        php_info_print_table_row(2, "SWF Editor version", PHP_SWFED_VERSION);
 #ifdef HAVE_PNG
         png_support = 1;
 #endif
index 6c8da98..86170e8 100644 (file)
@@ -24,6 +24,8 @@
 extern zend_module_entry swfed_module_entry;
 #define phpext_swfed_ptr &swfed_module_entry
 
+#define PHP_SWFED_VERSION "0.65a" /* Replace with version number for your extention */
+
 #ifdef PHP_WIN32
 #define PHP_SWFED_API __declspec(dllexport)
 #else