Status showing open - when using Fileclose()

Description

According to the use below code, the status didn't change when using fileclose().

<cfscript> base = GetDirectoryFromPath(GetCurrentTemplatePath()); if(!directoryExists(base&"fileDir")){ directoryCreate(base&'fileDir'); } path = base&"/fileDir/sample.txt"; result=fileopen(path,'write'); fileWrite(result,'lucee core dev'); writeoutput(result.status); fileclose(result); writeoutput(result.status); </cfscript>

Environment

None

Activity

Show:

Pothys - MitrahSoft 20 May 2020 at 10:51

It works fine and fixed on 5.3.7.31-SNAPSHOT.

Zac Spitzer 20 May 2020 at 10:44

works on Win10

Pothys - MitrahSoft 23 October 2019 at 15:42
Edited

I've added a testcase and confirmed the issue happened on lucee latest version 5.3.5.21-SNAPSHOT also.

Pull request: https://github.com/lucee/Lucee/pull/786

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

Sprint

Affects versions

Created 23 October 2019 at 13:46
Updated 10 May 2021 at 15:20
Resolved 25 May 2020 at 11:09

Flag notifications