Uploaded image for project: 'Lucee Development'
  1. LDEV-1041

Global undocumented function setYear appeared in 5.1.

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.26
    • Fix Version/s: 5.1.1.2
    • Labels:
      None
    • Environment:

      Ubuntu 12.04.2 and Ubuntu 16.04.1

      Description

      In 5.0, there was so function called setYear:

      <cfset setYear()>
      Lucee 5.0.1.47-SNAPSHOT Error (expression)
      Message	No matching function [SETYEAR] found
      
      In 5.1, there is a globally available, and undocumented as far as I can tell, function called setYear:
      
      <cfset setYear()>
      Lucee 5.1.0.34 Error (template)
      Message	too few attributes in function [setYear]
      Pattern	setyear(date:datetime, year:number [, timezone:timezone]):datetime
      

      This breaks existing applications that define their own setYear function.

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              sb_leon Leon Miller-Out
            • Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: