Ilia Alshanetsky
dbc60edabf
Fixed bug #27809 (ftp_systype returns null on some ftp servers).
2004-03-31 20:43:40 +00:00
Ilia Alshanetsky
b176ee99d3
Fixed bug #27633 (Incorrect EOL translation by ftp_get() in ASCII mode).
2004-03-18 17:12:07 +00:00
Sara Golemon
85aa47efab
Don't rely on ANSI tmpfile(), use the streams layer instead, it'll deal with platform issues.
2004-03-04 22:24:27 +00:00
Sara Golemon
c23305e184
Avoid use of memcpy(), reply on struct in_addr to be right sized instead
2004-02-21 19:37:37 +00:00
Sara Golemon
4113da3f86
s_addr is always unsigned 32bit, long is not.
2004-02-20 21:05:37 +00:00
foobar
5b59254761
- Fixed bug #26896 (ext/ftp does not work as shared extension)
2004-01-13 18:58:23 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Sara Golemon
d516184885
Fail loudly, silence bogus bugs.
2003-12-16 19:41:26 +00:00
Wez Furlong
bf033aa5a8
Fix ftp build when openssl is built as a shared extension.
2003-12-06 16:12:10 +00:00
Wez Furlong
dbb152b96a
Detect and enable IPv6 support under win32.
...
The ws2tcpip.h header links to IPv6 functions dynamically
and the generated binary will run on win98 and later.
2003-12-06 00:00:31 +00:00
Sara Golemon
0a3bc21c5c
Manageability
2003-09-18 17:51:55 +00:00
Sara Golemon
c553af47e0
Add ftp_alloc() for servers which require client to predeclare filesize to be sent.
2003-09-18 17:36:08 +00:00
Sara Golemon
4e6672eadd
Fix Bug #25294 LIST/NLST can cause segfault because ftp->data not cleaned properly
2003-09-09 21:12:49 +00:00
Ilia Alshanetsky
07f864d06b
Make sure that ftp->data is nulled after it's freed. This may fix bug
...
#25294 & bug #25296 .
2003-08-31 21:07:01 +00:00
Ilia Alshanetsky
93bcd55eaf
emalloc -> safe_emalloc
2003-08-12 00:58:52 +00:00
foobar
3a7ca909be
- HAVE_OPENSSL_EXT is not defined always.
2003-06-27 16:41:41 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
08bf402440
Fixed bug #23683
2003-05-19 13:26:28 +00:00
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
foobar
d0ac3d0646
Fixed bug #22765
2003-03-18 17:30:32 +00:00
Wez Furlong
349ce76f96
Tidy up stupid signed/unsigned issues with win32 by introducing a php_socket_t typedef.
2003-02-28 21:03:36 +00:00
Wez Furlong
1b53a2d12e
New user-space functions:
...
. stream_socket_client() - similar to fsockopen(), but more powerful.
. stream_socket_server() - Creates a server socket.
. stream_socket_accept() - Accept a client connection.
. stream_socket_get_name() - Get local or remote name of socket.
Tidy up some leaks and debug printfs.
Move more streams functions into streamsfuncs.c and streamsfuncs.h.
2003-02-28 19:53:21 +00:00
foobar
08b5f6b2b9
- No need to include the ssl headers elsewhere but in ext/openssl
...
# ext/ftp doesn't use streams yet so it needs to include them.
2003-02-28 07:25:15 +00:00
Wez Furlong
0a18a9d744
A add much more useful select(2) implementation than is provided by
...
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.
This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.
Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Ilia Alshanetsky
c59240d599
CS fixes.
2003-02-14 20:15:11 +00:00
Sara Golemon
a9e1b5f641
MFB(r-1.68.2.5) Bug 22052
2003-02-13 22:20:21 +00:00
Sara Golemon
d1d0d0b71a
Bug #22059 . ftp_chdir() causes segfault. efree(ftp->pwd) was being called without knowing for certain that ftp->pwd
...
actually pointed anywhere.
2003-02-13 19:48:49 +00:00
Sara Golemon
81797baed4
Add ftp_raw() to send raw command strings to an FTP server.
2003-01-31 04:54:57 +00:00
Sara Golemon
d0cb097c52
Fix potential buffer overflow.
2003-01-27 19:51:50 +00:00
Sara Golemon
761fa96412
Feature Request #21748 . Added function ftp_chmod().
2003-01-27 02:54:12 +00:00
Ilia Alshanetsky
928c260c57
ZTS cleanup.
2003-01-07 13:02:43 +00:00
Ilia Alshanetsky
f0de896ed2
Fixed ZTS build.
2003-01-07 03:44:12 +00:00
Ilia Alshanetsky
34e868d451
MFB + CS
2003-01-07 02:47:24 +00:00
Anantha Kesari H Y
90ba724072
Modified for NetWare.
2003-01-03 14:24:07 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
b855893b0c
Fixed ZTS build
...
Fixed 2 ZTS related warnings
2002-10-13 01:40:46 +00:00
Stefan Esser
4368b8e4ac
some FTP servers return 32bit port numbers.
2002-10-04 22:20:08 +00:00
Stefan Esser
8fae3d7a49
swapped conditions to correct the logic
2002-10-03 12:16:44 +00:00
Stefan Esser
b220b7113f
Added ftp_ssl_connect() for FTP over SSL.
2002-10-03 11:33:05 +00:00
Stefan Esser
8827f8eca9
renamed ftp_async_* into ftp_nb_*
2002-10-03 09:10:24 +00:00
Wez Furlong
ad4afdf827
fix some warnings.
2002-09-23 14:50:21 +00:00
Anantha Kesari H Y
e75aae81fc
Removed unnecessary code that was added for NetWare
2002-09-11 10:28:22 +00:00
Anantha Kesari H Y
77e2ed4834
NetWare related additions/modifications into FTP files
2002-09-05 10:13:27 +00:00
Sebastian Bergmann
e8b50bc834
Fix ZTS build.
2002-08-25 22:17:56 +00:00
Wez Furlong
27adb75585
Remove php_stream_error as discussed with Rasmus.
...
Unify error messages for ext/ftp. (which was using php_stream_error).
2002-08-25 10:10:23 +00:00
Ilia Alshanetsky
a86b1fc275
Fixed compile warning.
2002-08-21 03:59:27 +00:00
Sebastian Bergmann
9abdbd9c29
Fix warnings.
2002-08-08 18:55:19 +00:00
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