|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-04-29 00:17 UTC] tyra3l at gmail dot com
[2011-04-29 00:20 UTC] tyra3l at gmail dot com
[2011-04-29 09:55 UTC] bjori@php.net
-Status: Open
+Status: Bogus
[2011-04-29 09:55 UTC] bjori@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ With SPLFileObject it is possible to return the content of a file, after the file was deleted. Test script: --------------- file_put_contents('/tmp/file.txt', 'test'); $file = new SplFileObject('/tmp/file.txt'); unlink('/tmp/file.txt'); var_dump(file_exists('/tmp/file.txt')); while (!$file->eof()) { echo $file->fgets(); } Expected result: ---------------- bool(false) Actual result: -------------- bool(false) test