Ticket #560 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Eolin.PHP.Core의 removeFiles에 존재하는 잠재적인 문제

Reported by: creorix Owned by: inureyes
Priority: major Milestone: 1.5
Component: Components Version: 1.5
Keywords: eolin.php.core Cc: dev@…
Release:

Description

  • 우선 디렉토리 존재 여부를 확인하지 않고 dir 함수를 호출하기 때문에 이 부분에서 Warning이 발생할 수 있습니다.
  • 또한 $dir->read()의 결과와 false를 ===로 비교하지 않기 때문에 반환값이 '0'과 같을 경우 뜻하지 않게 while을 빠져나오는 문제가 발생할 수 있습니다.

Change History

Changed 3 years ago by creorix

[4233]

  • 수정했습니다.

Changed 3 years ago by inureyes

  • status changed from new to closed
  • resolution set to fixed

[4234]

  • 반영했습니다.
Note: See TracTickets for help on using tickets.