From: よや Date: Thu, 8 Sep 2011 17:21:41 +0000 (+0900) Subject: Action 系の文字列入れ替えで、渡されたのが文字列以外の時も文字列として扱うように修正。(今まで数値のメモリイメージを文字列として解釈していたので問題だった) X-Git-Tag: v0_60~110 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=072a16158fe6231f62d50faad59b6226282bb48f;p=swfed%2Fswfed.git Action 系の文字列入れ替えで、渡されたのが文字列以外の時も文字列として扱うように修正。(今まで数値のメモリイメージを文字列として解釈していたので問題だった) --- diff --git a/src/php_swfed.c b/src/php_swfed.c old mode 100755 new mode 100644 index 038b7a3..2d4e4eb --- a/src/php_swfed.c +++ b/src/php_swfed.c @@ -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, &