Stefan Esser
70d7184624
Do not leak data connection.
2002-07-27 09:18:51 +00:00
Frank M. Kromann
df0bab2c7b
Fizing ZTS build
2002-07-26 22:14:55 +00:00
Stefan Esser
80e9724ccc
[EXPERIMENTAL] Added functions for asynchronous FTP transfers
2002-07-26 22:00:25 +00:00
Stefan Esser
c9676ccad7
@- FTP extension does support (auto)resuming now.
...
Added (Auto)Resuming functionality to ftp_(f)get/(f)put via optional 5th parameter.
2002-07-26 13:03:08 +00:00
Jason Greene
a64eceef59
Switch streams socket abstraction to use a timeval structure instead of an
...
integer to allow subsecond timeouts.
This supports the previous behavior of fsockopen()
Fixes bug #16261
2002-07-22 18:46:26 +00:00
foobar
4d69e91806
Fix bug: #14052
2002-07-11 02:48:00 +00:00
foobar
b0ed560c95
@- Added optional 3rd parameter 'recursive' to ftp_rawlist() which will
...
@ do 'LIST -R' instead of 'LIST'. (Jani)
# tested too..and it even works. :)
# (removed that Z_TYPE_P() pollution also..)
2002-07-04 13:48:48 +00:00
Vlad Krupin
7139845af9
Fix ftp_size() returning bogus results.
...
# make sure the server is in BINARY mode before requesting file size.
2002-03-18 22:26:32 +00:00
Wez Furlong
c9d5e13738
TSRMLS related work on streams, as discussed with Zeev.
...
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
2002-03-18 18:54:32 +00:00
Wez Furlong
09213d7bf8
change * formatting
2002-03-16 01:28:57 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
Jon Parise
822c150636
Correct the header file ordering. From 'man 3 inet' (FreeBSD 4.5):
...
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
2002-03-07 20:27:37 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Stig Venaas
9e420659ad
Added php_sockaddr_size() in network.c (and the header file). This is used
...
in ftp.c to make sure connect() and bind() is called with size argument
which is exactly the size of the relevant sockaddr_xx structure
2002-02-10 12:35:29 +00:00
Stig Venaas
9a307e4550
Added IPv6 support
...
@- Added IPv6 support in FTP extension. (Stig Venaas)
2002-01-06 23:10:54 +00:00
Markus Fischer
9bde60d148
- Added ftp_set_option(), ftp_get_option() and support for setting a
...
custom timeout.
# Adding custom buffer size would be next, no promises though.
2002-01-02 14:58:17 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Alex Waugh
bc26250413
Included header files needed by RISC OS
2001-11-04 12:35:49 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
Zeev Suraski
f6f6c4d7e6
Whitespace
2001-08-11 16:39:07 +00:00
Jason Greene
6034e5161d
Forgotten Include.
...
This should fix the windows build (though I currently don't have a way to test it)
2001-07-17 16:56:51 +00:00
Jason Greene
8eb5a4b856
@Added support for socket and popen file types to ftp_fput (Jason)
2001-07-17 05:53:03 +00:00
Sebastian Bergmann
d926e84e5f
Change copyright note.
2001-06-19 21:25:53 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
foobar
1f00cff3ab
Fixed ftp_mkdir(). It return the dirname passed to it in case of
...
braindead ftp server which doesn't put the real path into reply.
PR: 7216
2000-11-03 21:53:24 +00:00
foobar
4c2abe7df4
Both RETR and STOR have also 250 as possible return value
2000-10-31 00:30:37 +00:00
foobar
55ccb5a35b
Fix the fix.
2000-10-31 00:00:26 +00:00
foobar
b45d265c54
Fixed PR: 6730. And it is mentioned also in RFC 959 to be this way.
2000-10-27 20:53:04 +00:00
foobar
11af318a62
Fixes PR: 7245
2000-10-27 20:47:36 +00:00
Derick Rethans
c7d31495bf
- Added ftp_exec to the ftp functions (thanks to <jhennebicq@i-d.net>)
...
@ Added ftp_exec to the ftp functions (thanks to <jhennebicq@i-d.net>)
@ (Derick)
2000-09-13 22:00:31 +00:00
foobar
d6f2f2c396
@- Fixed FTP module to accept multiline server replies (Jani)
...
# This fixed bug #4546 .
2000-08-10 21:13:08 +00:00
Zeev Suraski
da66298659
- Fix a couple of wranings in the FTP code and in parsedate.y
...
- Be safer with LC_MESSAGES
- Align with the latest Zend change in call_user_function_ex()
2000-06-17 16:49:03 +00:00
Andrew Skalski
6d51f4a788
Changed the #ifdefs around "errno = ETIMEDOUT;" to include the rest
...
of the statement ["if (n == 0)"]
2000-05-23 13:56:04 +00:00
Andi Gutmans
32dffec0f8
- PHP_WIN32 macro should be used with #ifdef/#ifndef
...
- Always use PHP_WIN32 instead of WIN32/WINNT values
2000-05-23 13:49:55 +00:00
Frank M. Kromann
c9158aec30
fixing type
2000-05-23 11:52:04 +00:00
Frank M. Kromann
34e74f8afe
chang #if to #ifdef
2000-05-23 10:36:48 +00:00
Frank M. Kromann
08bd9586fb
making ftp module compile and work on win32
2000-05-23 08:05:22 +00:00
Andrew Skalski
3ac4c96641
applied Luca Montecchiani's win32 fixes (open files in binary mode
...
using the "b" fopen flag, and use closesocket rather than close
when closing sockets)
2000-05-22 21:16:58 +00:00
Sascha Schumann
d0f3764ee2
Change reentrancy API to always use the php prefix.
...
Check for the declaration of reentrant functions, so that we can use
them in non-ZTS mode on all platforms.
2000-05-04 10:38:17 +00:00
Andrew Skalski
ceebb2db61
added the ftp_site() function
2000-02-22 20:50:00 +00:00
Andrew Skalski
2ba009c0f1
recognize 125 as success for put/get commands
2000-02-16 16:07:27 +00:00
Andrew Skalski
ecc77c81cc
typecast void pointer to char* for pointer arithmetic
1999-11-27 20:58:33 +00:00
Sascha Schumann
2f6ded9ac9
Convert more source files to use thread-safe functions
1999-11-26 16:51:57 +00:00
Thies C. Arntzen
3e59135a5c
<sys/time.h> is needed on linux
1999-11-19 18:33:21 +00:00
Andrew Skalski
0cb70ef9bb
Removed stdio wrapper from sockets; added timeouts to socket ops.
1999-11-18 20:29:32 +00:00
Andrew Skalski
f1f8b8a9a2
Added delete and rename functions.
1999-10-04 18:30:37 +00:00
Andrew Skalski
0413f52480
Added functions ftp_{pasv,size,mdtm,fget,fput}
...
PASV mode is now supported; file size and last-modified time can now
be fetched from servers that support them; files now may be stored to and
retrieved from open files, in addition to disk files.
1999-09-27 14:07:09 +00:00
Andrew Skalski
4b0707cf32
Added optional port argument to ftp_connect()
1999-09-22 16:07:41 +00:00
Andrew Skalski
773a26bb22
added missing "addr.sin_family = AF_INET" to socket routines
1999-09-21 23:34:45 +00:00
Andrew Skalski
85ca1dfb08
Replaced ftplib because of incompatible license.
1999-09-20 14:10:25 +00:00
Andrew Skalski
359a3af2a1
Added documentation hooks to ftp.c
1999-09-16 19:39:44 +00:00
Andrew Skalski
13a74e6979
added ftp_pwd() ftp_cdup() ftp_mkdir() and ftp_rmdir()
1999-09-16 19:03:27 +00:00
Andrew Skalski
93313c576c
added ftp_systype() and ftp_listraw() functions
1999-09-16 18:38:11 +00:00
Andrew Skalski
f0688ad7e2
Added rudimentary FTP support.
1999-09-16 15:57:51 +00:00