IsEmpty(0) returns true

Description

Not much to say: IsEmpty(0) returns true.

If this should happen, then it is extremely unexpected behavior. If it shouldn't, then it is a major bug.

Environment

None

Activity

Dominic Watson 
21 May 2015 at 09:48

@kilakos missed that. Have reopened

Konstantinos Liakos 
21 May 2015 at 08:57

Since you documented the behavior for numerics, why not add booleans as well. IsEmpty(false) returns true now, which is as weird as the IsEmpty(0).

Dominic Watson 
20 May 2015 at 22:53

Documentation has been updated: http://docs.lucee.org/reference/functions/isempty.html. When fixing this, the docs will need tweaking again to note version of change.

Konstantinos Liakos 
18 May 2015 at 16:33

Ok then, it isn't a bug but it should change. No problem.

Vote up for the documentation also. The first thing a looked up was what the docs say about this.

Fixed

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

Affects versions

Created 18 May 2015 at 09:29
Updated 22 May 2015 at 19:55
Resolved 22 May 2015 at 19:55