Knowledgebase:
Miva Merchant Empresa/Mia/Script Compiler v5.21 Release Notes
Posted by Wayne Smith on 03 February 2015 03:33 PM

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 <mvt:call> exposes MvCALL functionality to the template language.
  • Attributes are identical to those for MvCALL.
  • <mvt:callcontinue /> and <mvt:callstop /> are permitted.
  • New tag <mvt:do> 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.

Customer Impact

  • The fix for bug 16943 changed the MivaSQL parser in a way that may cause errors in queries that worked in previous versions, if the queries contain spurious punctuation characters, such as “!” or “}”.  Users are advised to make sure they are not affected by this change prior to making use of the new template language features, so that they can roll back to a previous version of Miva Empresa if required.

Rollback Procedure

  • Uninstall v5.21 of Empresa and/or the Script Compiler.
  • Reinstall the v5.20 version from the standard distribution.

 

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?