OSDN Git Service

Action 系の文字列入れ替えで、渡されたのが文字列以外の時も文字列として扱うように修正。(今まで数値のメモリイメージを文字列として解釈していたので問題だった)
authorよや <yoya@awm.jp>
Thu, 8 Sep 2011 17:21:41 +0000 (02:21 +0900)
committerよや <yoya@awm.jp>
Thu, 8 Sep 2011 17:21:41 +0000 (02:21 +0900)
src/php_swfed.c [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 038b7a3..2d4e4eb
@@ -1389,6 +1389,7 @@ PHP_METHOD(swfed, setActionVariables) {
     zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(arr), &pos);
     while (zend_hash_get_current_data_ex(Z_ARRVAL_P(arr), (void **)&entry, &
                                          pos) == SUCCESS) {
+        convert_to_string_ex(entry);
         str_value = Z_STRVAL_PP(entry);
         str_value_len = Z_STRLEN_PP(entry);
         ret = zend_hash_get_current_key_ex(Z_ARRVAL_P(arr), &str_key, &
@@ -1432,6 +1433,7 @@ PHP_METHOD(swfed, replaceActionStrings) {
     zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(arr), &pos);
     while (zend_hash_get_current_data_ex(Z_ARRVAL_P(arr), (void **)&entry, &
                                          pos) == SUCCESS) {
+        convert_to_string_ex(entry);
         str_value = Z_STRVAL_PP(entry);
         str_value_len = Z_STRLEN_PP(entry);
         ret = zend_hash_get_current_key_ex(Z_ARRVAL_P(arr), &str_key, &