php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6463 ftp_mdtm - probleme with the directory
Submitted: 2000-08-31 08:09 UTC Modified: 2000-08-31 08:19 UTC
From: cyruss at galaxy dot fr Assigned:
Status: Closed Package: Other
PHP Version: 4.0.1pl2 OS: unix
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cyruss at galaxy dot fr
New email:
PHP Version: OS:

 

 [2000-08-31 08:09 UTC] cyruss at galaxy dot fr
When i use the function ftp_mdtm with a directory it return me False.
This -1 means that it don t work.
When i use this function with a file there is no problem.

Thx 

cyruss 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-31 08:18 UTC] sniper@php.net
From the manual:
----------------

ftp_mdtm() checks the last-modified time for a file, and returns it as a UNIX timestamp. If an error occurs, or the file does not exist, -1 is returned. Note that not all servers support this feature.

---

So are you absolutely sure that file exists? 
And that server supports this feature?

Please add a shortest possible reproducive script
which uses some public ftp server.

--Jani

 [2000-08-31 08:19 UTC] sniper@php.net
I should have read your bug report better.
ftp_mdtm() doesn't work with directories.

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 03:01:29 2024 UTC