Bug #76364 [Opn]: filemtime() must return false if file not exist

From: Date: Tue, 22 May 2018 07:11:45 +0000
Subject: Bug #76364 [Opn]: filemtime() must return false if file not exist
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215322@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76364&edit=1 ID: 76364 User updated by: golden dot pr at mail dot ru Reported by: golden dot pr at mail dot ru Summary: filemtime() must return false if file not exist Status: Open Type: Bug Package: Filesystem function related PHP Version: 7.1.17 Block user comment: N Private report: N New Comment: Expected result: ---------------- false Actual result: -------------- filemtime(): stat failed for {$path} Previous Comments: ------------------------------------------------------------------------ [2018-05-22 07:10:34] golden dot pr at mail dot ru Description: ------------ --- From manual page: http://www.php.net/function.filemtime --- filemtime() must return false if file not exist Test script: --------------- $path = './test.txt'; echo @filemtime($path); Expected result: ---------------- filemtime(): stat failed for {$path} Actual result: -------------- false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76364&edit=1

« previous php.bugs (#215322) next »