--TEST-- SplFileObject::ftruncate function - truncating with stream that does not support truncation --FILE-- ftruncate(1); } catch (LogicException $e) { echo($e->getMessage()); } ?> --EXPECTF-- Can't truncate file %s