|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-11 13:36 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Description: ------------ Typo in SplFileInfo, when SplFileInfo::getType fails. Lstat instead of stat Reproduce code: --------------- <?php $file = new SplFileInfo('not_here'); try { $file->getType(); } catch(Exception $e) { echo $e->getMessage() . "\n"; } ?> Expected result: ---------------- SplFileInfo::getType(): stat failed for not_here Actual result: -------------- SplFileInfo::getType(): Lstat failed for not_here