php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10566 don't work properly fopen
Submitted: 2001-04-30 17:11 UTC Modified: 2002-06-02 13:37 UTC
Votes:3
Avg. Score:3.7 ± 1.2
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: erick at citmatel dot inf dot cu Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Windows NT/ Unix FreeBSD
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: erick at citmatel dot inf dot cu
New email:
PHP Version: OS:

 

 [2001-04-30 17:11 UTC] erick at citmatel dot inf dot cu
this scrip don't work properly:
(only the first time, that's ok)
<?
$file=fopen("ftp://usr:pass@localhost/administrador/servicios5.inc","w");
fputs($file,"Algo");
fclose($file);
?>

this the warning:

Warning: File already exists in generaservicios.inc on line 1

Warning: fopen("ftp://...@localhost/administrador/servicios5.inc","w") - File exists in generaservicios.inc on line 1

Warning: Supplied argument is not a valid File-Handle resource in generaservicios.inc on line 2

Warning: Supplied argument is not a valid File-Handle resource in generaservicios.inc on line 97

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-01 02:02 UTC] sniper@php.net
I can reproduce this on Linux too.
If file exists in ftp, you can not overwrite it or
add to it.

--Jani

 [2002-06-02 13:37 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC