Issues

Select view

Select search mode

 

Strange result from Evaluate since 6.1.0.243

Fixed

Description

Before 6.1.0.243, results from :

<cfset truc = 1+1> #truc# - #Evaluate('truc')# - #Evaluate('1+int(1)')#<br> <cfset truc = #year(now())#+1> #truc# - #Evaluate('truc')# - #Evaluate('year(now())+1')#<br> <cfset truc3 = #Asc('A')#> <cfset truc2 = #truc3#-9*#Int(truc3/9)#> #truc2# - #Evaluate('truc2')# - #Evaluate('truc3-9*Int(truc3/9)')#

where

2 - 2 - 2 2025 - 2025 - 2025 2 - 2 - 2

and since 6.1.0.243 results are

2 - 2 - 2.0 2025 - 2025 - 2025.0 2 - 2 - 2.0

hundreds or even thousands of programs to check, because I don’t remember where I need an integer instead of a decimal…

If the result seems logical to you, I need to hijack the Evaluate function with a function of my own that simulates it; my question is, where is the source (or compiled program) of Evaluate in order to hijack it? can you help me?

Environment

built-in function Evaluate

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 30 October 2024 at 14:47
Updated 5 November 2024 at 07:05
Resolved 5 November 2024 at 07:05

Activity

Show:

Pothys - MitrahSoft5 November 2024 at 07:04

I have investigated this ticket with Lucee versions 6.1.1.111-SNAPSHOT and 6.2.0.152-SNAPSHOT.
The Evaluate() function now returns the numeric value with the addition operation, and the issue has been resolved.

PhilippeK4 November 2024 at 15:07

: Thank you so much … that’s great for me … and, maybe others

Michael Offner4 November 2024 at 14:32

fixed for all math operations

Michael Offner4 November 2024 at 14:25
Edited

Michael Offner4 November 2024 at 14:23
Edited

Flag notifications