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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
31 + 39 = ?
Subscribe to this entry?

 
 [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: Wed Apr 24 22:01:30 2024 UTC