Anatol Belski
1923c7a9b8
simplify condition
2015-03-12 10:21:43 +01:00
Anatol Belski
53b7258797
force ext/ftp to be always shared on Windows
2015-03-12 00:36:22 +01:00
Anatol Belski
2f443acad1
remove ext/openssl dependency for ext/ftp from conf
2015-03-12 00:13:01 +01:00
Anatol Belski
d2ee0840d2
don't depend on ext/openssl for ftp ssl support
...
instead just link against the openssl and init manually, that's
more flexible
2015-03-11 23:58:59 +01:00
Anatol Belski
d5f2b4b398
fix ftp_login with ssl enabled
2015-03-11 21:46:40 +01:00
Anatol Belski
f1a47988b0
added comment
2015-03-11 21:46:39 +01:00
Anatol Belski
167979fe76
enable ftps for shared ext/ftp
2015-03-11 21:46:38 +01:00
Xinchen Hui
38efb690c0
Ported ftp
2015-02-02 13:53:03 +08:00
Xinchen Hui
fc33f52d8c
bump year
2015-01-15 23:27:30 +08:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Xinchen Hui
73c1be2653
Bump year
2015-01-15 23:26:03 +08:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Andrea Faulds
e5eb9530ab
Use "float" and "integer" in typehint and zpp errors
2014-12-21 13:23:02 +00:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00
Veres Lajos
06fdf359e3
typo fixes - https://github.com/vlajos/misspell_fixer
2014-11-23 14:52:47 -08:00
Veres Lajos
4dc994571d
typo fixes - https://github.com/vlajos/misspell_fixer
...
Conflicts:
ext/ftp/ftp.h
ext/pcre/pcrelib/pcre_printint.c
ext/pcre/pcrelib/sljit/sljitLir.c
ext/pcre/pcrelib/sljit/sljitLir.h
ext/pcre/pcrelib/sljit/sljitNativeARM_32.c
ext/pcre/pcrelib/sljit/sljitNativeTILEGX_64.c
ext/pgsql/pgsql.c
ext/phar/func_interceptors.c
ext/soap/soap.c
ext/standard/image.c
2014-11-23 14:33:43 -08:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00
Nikita Popov
dd38c9e101
Fix ftp_login()
2014-09-03 16:52:56 +02:00
Anatol Belski
734e11cca7
fixed remaining 's' args for ftp
2014-08-27 23:56:19 +02:00
Anatol Belski
3234480827
first show to make 's' work with size_t
2014-08-27 20:49:31 +02:00
Anatol Belski
4d997f63d9
master renames phase 3
2014-08-25 20:22:49 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
70de6180d5
fixes to %pd format usage
2014-08-24 02:35:34 +02:00
Anatol Belski
6719106257
ported ext/ftp
2014-08-19 21:49:34 +02:00
Anatol Belski
63d3f0b844
basic macro replacements, all at once
2014-08-19 08:07:31 +02:00
Dmitry Stogov
4c716e8b51
Merge branch 'master' into test
...
* master: (39 commits)
Add __debugInfo() to UPGRADING.
fix TS build
Update NEWS
Update NEWS
Update NEWS
Small tidy ups and raise visibility of GitHub PR process
Bug #41631 : Observe socket read timeouts in SSL streams
wrap int8_t and int16_t with #ifdef to avoid possible clashes
- Updated to version 2014.6 (2014f)
Removed Countable::count() change info from UPGRADE.INTERNALS too
NEWS and UPGRADING for intdiv()
Revert "Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option"
Fixed skip case for intdiv 64-bit test
Use callback structure
Add EXPECTF
Fix handling of multi-result sets with PS...used to clean not only the result set but the whole PS.
5.5.17 now
5.4.33-dev now
Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option
Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option
...
Conflicts:
ext/fileinfo/libmagic/softmagic.c
main/streams/xp_socket.c
2014-08-11 11:38:41 +04:00
Ferenc Kovacs
791c87ae48
Revert "Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option"
...
This reverts commit a51bf0cadf
.
2014-08-06 20:33:48 +02:00
Daniel Lowrey
a51bf0cadf
Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option
2014-08-05 23:13:04 -04:00
Daniel Lowrey
60552a8871
Add SO_REUSEPORT + SO_BROADCAST support via socket stream context option
2014-08-05 22:43:12 -04:00
Xinchen Hui
d8431ba09c
Merge branch 'master' into phpng
2014-07-09 18:35:30 +08:00
Stanislav Malyshev
cd1130751d
fix unstable test
2014-07-08 15:04:09 -07:00
Stanislav Malyshev
f559976be6
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
fix unstable test
2014-07-08 14:31:40 -07:00
Stanislav Malyshev
64e4261c9b
fix unstable test
2014-07-08 14:13:46 -07:00
Dmitry Stogov
c1965f58d4
Use reference counting instead of zval duplication
2014-06-05 16:04:11 +04:00
Dmitry Stogov
7b1cb4922f
Fixed safe resource close.
...
It must not de deleted (just closed), because it still may be referenced from zval(s).
This fixes few ext/ftp test memory failures detected with valgrind.
2014-05-13 12:47:34 +04:00
Dmitry Stogov
485a60414d
Fixed incorrect boolean IS_FALSE/IS_TRUE handling
2014-05-06 15:59:49 +04:00
Dmitry Stogov
ebe024fd78
Fixed memory leaks
2014-05-06 15:18:17 +04:00
krakjoe
360962ea29
fix ftp for ng
2014-05-06 07:54:54 +01:00
Dmitry Stogov
050d7e38ad
Cleanup (1-st round)
2014-04-15 15:40:40 +04:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00
Xinchen Hui
c0d060f5c0
Bump year
2014-01-03 11:04:26 +08:00
Nikita Popov
c7ee97eea0
Merge branch 'PHP-5.4' into PHP-5.5
2013-12-30 13:54:58 +01:00
Nikita Popov
3b6afb1bd6
Fix leak caused by fix to bug #65667
...
ftp->stream is now closed in the ftp resource dtor.
2013-12-30 13:53:12 +01:00
Ferenc Kovacs
91108818e1
Merge branch 'PHP-5.4' into PHP-5.5
...
Conflicts:
ext/spl/tests/SplFileObject_rewind_error001.phpt
2013-11-06 10:46:34 +01:00
ptarjan
9c1e1bbc05
fix many parallel test issues
...
While running these on HHVM I've run into a lot of parallelism issues.
I'm backporting all the fixes I had to do in
https://github.com/facebook/hiphop-php/blob/master/hphp/tools/import_zend_test.py#L650
to php core.
Most of these changes were just filenames that were shared between
tests, but I did more surgery on the fixed ports. I can apreciate port
31337 as much as the next nerd, but random ports are better for tests.
2013-11-06 10:31:47 +01:00
Rasmus Lerdorf
288a4ec3bd
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Clean up this weird safe_emalloc() call
2013-10-20 09:37:25 -07:00
Rasmus Lerdorf
8f4a6d6e1b
Clean up this weird safe_emalloc() call
2013-10-20 09:36:50 -07:00
Rasmus Lerdorf
c5e5a6c2ac
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Minor Coverity tweaks
2013-10-20 08:56:24 -07:00
Rasmus Lerdorf
1494298231
Minor Coverity tweaks
2013-10-20 08:55:48 -07:00
Rasmus Lerdorf
683a7d719b
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Remove senseless check here
2013-10-19 20:56:01 -07:00
Rasmus Lerdorf
fb38fdc7fd
Remove senseless check here
2013-10-19 20:55:02 -07:00
Nikita Popov
90f0a77cad
Merge branch 'PHP-5.4' into PHP-5.5
2013-10-04 17:26:35 +02:00
Philip Hofstetter
96cc419924
Fix bug #65667 : ftp_nb_continue produces segfault
...
the idea behind ftp_nb_get is for it to be followed by multiple calls
to ftp_nb_continue in order to download a file piece-by-piece.
As such, it's unwise to close the stream used to write the downloaded
data to when the file hasn't been completely downloaded within the first
call to ftp_nb_get.
This regression was added in a93a462dce
and this patch restores the behavior that was seen pre-patch.
2013-10-04 17:25:46 +02:00
Christopher Jones
83469477e7
Remove compile warnings:
...
warning: variable ‘lastch’ set but not used [-Wunused-but-set-variable]
warning: variable ‘buf’ set but not used [-Wunused-but-set-variable]
2013-08-19 17:48:46 -07:00
Andreas Streichardt
a93a462dce
First fixes for a 64bit compatible ftp extension
2013-08-04 19:31:30 -07:00
Veres Lajos
8d86597d73
non living code related typo fixes
2013-08-04 16:05:36 -07:00
Veres Lajos
e9a95d78ef
typo fixes
2013-07-15 00:23:03 -07:00
Felipe Pena
0863a0d6a0
- Bug #65228 (FTPs memory leak) patch by: marco dot beierer at mbsecurity dot ch
2013-07-13 17:54:31 -03:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
Xinchen Hui
e081c55fb5
Merge branch 'PHP-5.3' into PHP-5.4
2012-10-10 10:31:31 +08:00
Xinchen Hui
610c7fbe7b
Remove executable permission on phpt
2012-10-10 10:27:49 +08:00
Scott MacVicar
398c6e6d11
MFH r322485
...
Fix possible attack in SSL sockets with SSL 3.0 / TLS 1.0.
CVE-2011-3389
2012-01-26 05:15:57 +00:00
Felipe Pena
e4ca0ed09f
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Rasmus Lerdorf
09f8573a77
Fix bug 60183
2011-11-01 15:15:51 +00:00
Rasmus Lerdorf
d2881adcbc
Fix bug 60183
2011-11-01 15:15:51 +00:00
Felipe Pena
23e438594d
- Make usage of new PHP_FE_END macro
2011-07-25 11:42:53 +00:00
Felipe Pena
4b30846b50
- Make usage of new PHP_FE_END macro
2011-07-25 11:35:02 +00:00
Felipe Pena
32b5f8a1a3
- Added new parameter parsing option (p - for valid path (string without null byte in the middle))
...
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* Removed ini options, safe_mode*
* Removed --enable-safe-mode --with-exec-dir configure options on Unix
* Updated extensions, SAPI's and core
* php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Ilia Alshanetsky
4db5175f54
Fixed bug #51190 (ftp_put() returns false when transfer was successful).
2010-03-04 12:52:58 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Rasmus Lerdorf
99f469f707
Fix null deref found by Michael Maclean
2009-11-24 13:57:39 +00:00
Sriram Natarajan
ac2d3990f2
- Fixed bug #49447 (php engine need to correctly check for socket API
...
return status on windows). (Sriram Natarajan)
2009-09-04 07:59:48 +00:00
Zoe Slattery
c0c141d0cf
server for ftp tests
2009-08-30 09:31:54 +00:00
Zoe Slattery
6a22ec3eda
More tests from 2009 testfest
2009-08-30 09:30:13 +00:00
Antony Dovgal
e3e34fa7ed
MF52: fix test: don't create tmp files in "." and clean up when done
2009-01-09 23:12:12 +00:00
Zoe Slattery
6d246c060b
new test from Nat Mcugh
2008-12-31 20:06:26 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Zoe Slattery
7156227045
New FTP test from Nathaniel McHugh
2008-12-17 12:35:26 +00:00
Zoe Slattery
9271f52838
FTP test from Nathaniel McHugh
2008-12-05 16:28:16 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Pierre Joye
f8a7c37c83
- MFH: don't use inet_ntop when not present
2008-07-12 23:26:02 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Antony Dovgal
d042fd0675
MFH: php_gmtime_r() fixes
2007-06-07 08:59:00 +00:00
Antony Dovgal
1f65545121
fix test names
2007-05-07 18:03:01 +00:00
Ilia Alshanetsky
bc1f7356d7
Fixed CRLF injection inside ftp_putcmd().
...
# Reported on BugTraq by loveshell[at]Bug.Center.Team
2007-03-24 16:25:42 +00:00
Martin Kraemer
9c62ddde34
Typo
2007-03-14 09:58:14 +00:00
Ilia Alshanetsky
efad70c2cc
snprintf() -> slprintf()
2007-02-27 03:28:17 +00:00
Stanislav Malyshev
33956fc358
fix typo
2007-02-24 02:45:24 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Antony Dovgal
22a866818b
fix test
2007-02-21 19:22:28 +00:00
Nuno Lopes
3d65d6d8d9
Fixed bug #37799 (ftp_ssl_connect() falls back to non-ssl connection)
2007-02-13 18:29:10 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Hannes Magnusson
b12e3e1475
Fix tests
2006-12-19 10:03:24 +00:00
Antony Dovgal
e1a63af85b
MFH: fix leaks
2006-12-03 13:59:11 +00:00
Nuno Lopes
e65bdffab5
tests + BFN
2006-12-01 16:37:39 +00:00
Nuno Lopes
8e0cf44164
fix bug #39458 : ftp_nlist() returns false on empty dirs
2006-12-01 16:34:43 +00:00
Antony Dovgal
a3c2958f22
MFH: fix test on FreeBSD
2006-11-27 11:43:59 +00:00
Nuno Lopes
e8384cbcca
more tests
2006-11-24 20:18:54 +00:00
Nuno Lopes
d64b17543c
fix tests after Tony's commit and add a test for the bug he fixed
2006-11-24 15:47:45 +00:00
Antony Dovgal
050e32ed65
fix test
2006-11-24 13:40:43 +00:00
Antony Dovgal
7f235792b3
MFH: fix #39583 (ftp_put() does not change transfer mode to ASCII)
2006-11-24 12:39:39 +00:00
Nuno Lopes
94a810755f
add tests for 2 old bugs
2006-11-23 20:47:38 +00:00
Nuno Lopes
ba8ba5a909
add two more tests (test bogus parameters and bogus server respsnes)
2006-11-23 17:34:34 +00:00
Nuno Lopes
bd519ae0d9
new tests. what a crazy idea...
2006-11-19 18:37:28 +00:00
Hannes Magnusson
21b0f60332
MFH: argument infos
2006-06-11 20:03:05 +00:00
Antony Dovgal
bace0def1e
fix spelling in error messages:
...
greater/less thEn -> greater/less thAn
2006-04-03 09:14:33 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Ilia Alshanetsky
82814fc852
Fixed bug #31971 (ftp_login fails on some SSL servers).
...
Patch by: frantisek at augusztin dot com
2005-11-05 22:02:15 +00:00
Brian France
890bd3f002
Fixed phpize build (default PHP_OPENSSL to no if not set)
2005-11-01 00:32:21 +00:00
foobar
b1d0f9bb43
typofix
2005-10-09 20:44:02 +00:00
foobar
e403b15ebb
MFH: - Fixed bug #34796 (missing SSL linking in ext/ftp when configured as shared).
2005-10-09 20:39:42 +00:00
foobar
286d53397a
MFH
2005-08-18 12:40:41 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
b36d4ae02c
Added bindto socket context option.
2005-06-14 02:39:42 +00:00
Ilia Alshanetsky
fed3058fba
Fixed compiler warning on win32.
2005-03-17 17:16:43 +00:00
Ilia Alshanetsky
ff80321587
Final set of fixes for bug #27633 .
...
# Many thanks to Edin for helpind analyze and resolve this bug.
2005-03-10 23:37:45 +00:00
Ilia Alshanetsky
21ff96859e
Fixes to ascii downloads on win32.
2005-03-09 20:52:38 +00:00
Ilia Alshanetsky
f2eb0acfcf
Fixed bug #27633 (Double \r\r problem on ftp_get in ASCII mode on Win32).
2005-02-17 15:37:24 +00:00
Ilia Alshanetsky
e35adfe522
Fixed bug #30027 (Possible crash inside ftp_get()).
...
# Patch by cfield at affinitysolutions dot com
2004-10-05 23:53:09 +00:00
Anantha Kesari H Y
5da74deab9
removed unwanted NEW_LIBC checks
2004-09-27 14:29:55 +00:00
Anantha Kesari H Y
e12ea3c30d
removed redundant NEW_LIBC check
2004-09-27 14:25:13 +00:00
Wez Furlong
99e290f882
Fix for Bug #24189 : possibly unsafe select(2) usage.
...
We avoid the problem by using poll(2).
On systems without poll(2) (older bsd-ish systems, and win32), we emulate
poll(2) using select(2) and check for valid descriptors before attempting
to access them via the descriptor sets.
If an out-of-range descriptor is detected, an E_WARNING is raised suggesting
that PHP should be recompiled with a larger FD_SETSIZE (and also with a
suggested value).
Most uses of select(2) in the source are to poll a single descriptor, so
a couple of handy wrapper functions have been added to make this easier.
A configure option --enable-fd-setsize has been added to both the unix and
win32 builds; on unix we default to 16384 and on windows we default to 256.
Windows FD_SETSIZE imposes a limit on the maximum number of descriptors that
can be select()ed at once, whereas the unix FD_SETSIZE limit is based on the
highest numbered descriptor; 256 should be plenty for PHP scripts under windows
(the default OS setting is 64).
The win32 specific parts are untested; will do that now.
2004-09-17 12:44:56 +00:00
Ilia Alshanetsky
dbc60edabf
Fixed bug #27809 (ftp_systype returns null on some ftp servers).
2004-03-31 20:43:40 +00:00
Hartmut Holzgraefe
eeb172b29f
"The Visa to Sibiria" (work in progress)
...
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +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
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16: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
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +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
Wez Furlong
05b9b20ed8
Add new (optional!) win32 build infrastructure.
...
Will follow up to internals@ shortly.
2003-12-02 23:17:04 +00:00
Ilia Alshanetsky
046904f2b1
Fixed bug #26113 (remove leftover local file when ftp_get/ftp_nb_get fails)
2003-11-04 20:56:47 +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
Sara Golemon
4936234fd8
MFB(r-1.74.2.13) Bug #25314 ASCII mode transfers behaving like binary when initiated from windows.
2003-09-08 22:40:12 +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
9d9727aac5
Fixed compiler warnings.
2003-08-28 19:17:34 +00:00
Ilia Alshanetsky
93bcd55eaf
emalloc -> safe_emalloc
2003-08-12 00:58:52 +00:00
Zeev Suraski
23f08b9a2f
fix another broken prototype
2003-08-07 16:03:17 +00:00
Zeev Suraski
2e869c7cb3
Fix prototype
2003-08-07 16:02:28 +00:00
foobar
3a7ca909be
- HAVE_OPENSSL_EXT is not defined always.
2003-06-27 16:41:41 +00:00
Andrey Hristov
eb33adf139
proto fixes
2003-06-15 15:29:46 +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
Sara Golemon
c9651182c6
MFB(r-1.74.2.8) Bug #14369 . ftp extension allows circumvention of safe_mode restrictions. HEAD version of this patch uses the simpler open_wrapper approach to applying safe mode restrictions. Also allows writting to/from wrappers this way.
2003-05-17 04:21:57 +00:00
Ilia Alshanetsky
6965f229a6
MFH
2003-04-03 00:55:56 +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
David Hill
4f8ae7b111
fixing missed int to long with zend_parse_parameters
2003-03-10 15:52:10 +00:00
David Hill
5c90216d2c
64-bit correction to variables passed to zend_parse_parameters
...
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +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
Derick Rethans
f3d3dd5bc8
- MFB
2002-12-26 23:45:05 +00:00
Ilia Alshanetsky
33de9befa1
Fixed bug #20812 , ftp_get returned NULL on success instead of TRUE.
2002-12-06 06:07:40 +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
0141e97052
Make these all work with persistent streams too.
2002-09-25 15:46:47 +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
Rasmus Lerdorf
fb0c9122c1
Fix typo
2002-08-13 04:19:25 +00:00
Sebastian Bergmann
9abdbd9c29
Fix warnings.
2002-08-08 18:55:19 +00:00
Stefan Esser
a6cf14ac5c
ftp_close returns now TRUE on success and FALSE on failure.
2002-07-30 20:37:59 +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
Stefan Esser
55c1b3d35b
fixed cut & paste typo
2002-07-26 16:26:55 +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
c334894a2b
ws fix
2002-07-11 20:29:53 +00:00
foobar
4d69e91806
Fix bug: #14052
2002-07-11 02:48:00 +00:00
Derick Rethans
2855b21e1c
- Initialize var properly
2002-07-09 21:42:07 +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
Derick Rethans
51dfe5eebe
Unify error messages
2002-06-27 06:49:02 +00:00
Markus Fischer
e4d2fa88d7
- Fix #16348 .
2002-03-30 01:56:52 +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
d2d8762267
Streams now make more use of the memory manager, so tracking down
...
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Wez Furlong
636829345e
Allow php_stream_copy_to_stream to do nothing when used with code
...
that calculates a max length of zero. (Thanks again Marcus).
2002-03-16 02:48:35 +00:00
Wez Furlong
52982c422e
This should help with some build problems/warnings under win32.
...
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
2002-03-16 02:33:00 +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
Sascha Schumann
5cba3a99c2
extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed
2002-03-12 16:44:00 +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
7603d13733
- Now use ZE's builtin zend_zval_type_name().
2002-01-03 14:32:36 +00:00
Markus Fischer
84b948a15f
- FTP_BINARY is more common instead of FTP_IMAGE.
2002-01-03 07:57:58 +00:00
Egon Schmid
e941df5d1a
Please, no punctuation mark at the end of the description.
2002-01-03 05:55:22 +00:00
Markus Fischer
f7bd38413e
- Corrected proto for ftp_connect() (new optional parameter for initial
...
custom timeout).
2002-01-02 15:01:15 +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
Markus Fischer
83ccb3e511
- Fixed ftp_fget() and ftp_mkdir() protos.
2002-01-02 01:05:10 +00:00
Markus Fischer
7c197409ae
- Corrected proto for ftp_fget().
2002-01-02 00:42:11 +00:00
Markus Fischer
8559f372fd
- Switched to zend_parse_parameters(), unified error/warning messages,
...
use real resources instead of integers, adjusted prototypes (hope I got
them all).
2002-01-01 22:15:22 +00:00
Egon Schmid
adee5f9451
Fixed a proto.
2001-12-30 08:21:58 +00:00
Hartmut Holzgraefe
052d5fc85d
proto fix
2001-12-15 14:23:07 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Andi Gutmans
288d96229e
- Missed one
2001-12-03 20:55:59 +00:00
foobar
f1397d5339
Unified the configure messages.
2001-11-30 19:00:13 +00:00
Alex Waugh
bc26250413
Included header files needed by RISC OS
2001-11-04 12:35:49 +00:00
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
...
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +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
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
2001-07-31 05:44:11 +00:00
Zeev Suraski
797a079a95
More TSRMLS_FETCH work, and a bit of cleanup
2001-07-30 06:18:13 +00:00
Zeev Suraski
7b1c400631
More TSRMLS_FETCH annihilation (Zend compatibility patch)
2001-07-30 04:58: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
1ecc932895
Fixed bug: #9707
2001-05-27 19:12:21 +00:00
Stig Bakken
1beda9ee1e
* include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build)
2001-05-24 10:07:29 +00:00
Andi Gutmans
4c823e8a89
- Change macros from V_ to VCWD_ because of AIX name clash
2001-04-30 12:45:02 +00:00