Miva Empresa/Mia/Script Compiler v5.21 Release Notes ------------------------------------------------------------- Bugs Fixed ---------- 8122: Compiler: Nested MvCOMMENTS are not detected 8961: Compiler: Compiler should at least warn about spaces in parameter variable names 15402: Compiler: Compiler crash in expression with extra close paren 15445: Assembler: Starting a function name with a number gives an unfriendly error 15591: Assembler: mvasm --version fails to display version 16392: Virtual Machine: MvLOCKFILE doesn't work with IPv6 on windows 16480: Builtins: system: miva_array_serialize/deserialize do not properly handle special characters in structure member names 16834: Builtins: system: miva_array_collapse copies array contents 16943: MivaSQL: Operator != does not throw a syntax error 16944: MivaSQL: Stack Underflow error on query with a negative value hardcoded 17099: MivaSQL: Mathematical operations in WHERE clause with parenthesis fail 17502: Compiler: Compiler enters an infinite loop when compiling unquoted string 17505: Compiler: Multiple periods in a decimal should not be allowed 17506: Virtual Machine: Multiple periods in a decimal should not be allowed - MvDO Expressions 17517: Compiler: Characters passed to isXXX functions should be casted to an unsigned char Platform Support ---------------- - IIS 7.0 and newer are now supported. There is no automated installer for this platform. See the README file for installation instructions. - 64-bit Windows is now support for both IIS 6.x (ISAPI) and IIS 7.0 and newer. API Changes ----------- - void mvProgram_SetCharacterSet( mvProgram program, const char *charset, int charset_len ); Sets the current character set to "charset" - char *mvProgram_JavaScriptString_Encode( mvProgram program, const char *data, int data_length, int *result_length, int *result_size ); Encodes "data" in a format suitable for use inside a JavaScript quoted string declaration honoring the current character set. Returns a newly allocated buffer containing the encoded string. "result_length" is populated with the length, in bytes, of the encoded string "result_size" is populated with the length, in bytes, of the allocated buffer New Builtin Functions --------------------- - encodejavascriptstring( string ) Encodes "string" in a format suitable for use inside a JavaScript quoted string declaration, honoring the current character set. Returns the encoded string. - miva_json_decode( data, output var ) Decodes a block of JSON data in "data", returning the parsed aggregate value in "output". Returns 1 on success, 0 on error. - miva_json_decode_last_error() Returns a textual description of the most recent parsing error encountered by json_decode StoreMorph Changes ------------------ - New tag exposes MvCALL functionality to the template language. Attributes are identical to those for MvCALL. and are permitted. - New tag exposes MvDO functionality to the template language. Attributes are identical to those for MvDO. - New entity method &mvtj allows tokens to be output with the correct encoding for use within JavaScript quoted strings. New Features ------------ - Hexadecimal integer constants are now consistently handled across all platforms.