SWF Editor source repos
Revisión | d86ae65ad7e38e4da39e0e4bc0b519175b7d7f79 (tree) |
---|---|
Tiempo | 2015-11-23 02:24:01 |
Autor | Yoshihiro Yamazaki <yoya@awm....> |
Commiter | Yoshihiro Yamazaki |
IS_BOOL を IS_TRUE と IS_FALSE に分けた際に == と != が逆になった。
@@ -1169,11 +1169,12 @@ PHP_METHOD(swfed, replaceBitmapData) { | ||
1169 | 1169 | } |
1170 | 1170 | if (arg4 != NULL) { |
1171 | 1171 | if (Z_TYPE_P(arg4) != IS_ARRAY) { // without_converting (boolean) |
1172 | - if (Z_TYPE_P(arg4) != IS_TRUE) { | |
1172 | + if (Z_TYPE_P(arg4) == IS_TRUE) { | |
1173 | 1173 | without_converting = 1; |
1174 | - } else if (Z_TYPE_P(arg4) != IS_FALSE) { | |
1174 | + } else if (Z_TYPE_P(arg4) == IS_FALSE) { | |
1175 | 1175 | without_converting = 0; |
1176 | 1176 | } else { |
1177 | + convert_to_boolean(arg4); | |
1177 | 1178 | without_converting = (int) Z_LVAL_P(arg4); |
1178 | 1179 | } |
1179 | 1180 | } else { // or opts (array) |