Commit Graph

433 Commits

Author SHA1 Message Date
Kalle Sommer Nielsen
7ef4cdf471 Remove a couple TSRMLS_FETCH() calls around ext/main/sapi 2010-04-13 11:02:15 +00:00
Felipe Pena
78cf85ab44 - Fixed bug #51257 (CURL_VERSION_LARGEFILE incorrectly used after libcurl version 7.10.1)
patch by: aron dot ujvari at microsec dot hu
2010-03-10 22:58:46 +00:00
Ilia Alshanetsky
772a84d5b9 Fixed bug #51171 (curl_setopt() doesn't output any errors or warnings when an invalid option is provided) 2010-03-02 12:54:23 +00:00
Sriram Natarajan
0ea435c6e0 - Fixed bug #50756 (CURLOPT_FTP_SKIP_PASV_IP does not exist.) 2010-01-23 01:37:32 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Ilia Alshanetsky
ff5a2ce931 Fixed bug #49921 (Curl post upload functions changed). 2009-10-26 12:57:01 +00:00
Ilia Alshanetsky
809dbcda08 Fixed bug #49517 (cURL's CURLOPT_FILE prevents file from being deleted after fclose). 2009-09-30 02:34:17 +00:00
Sriram Natarajan
92c08b1224 - Fixed bug #49571 (CURLOPT_POSTREDIR not implemented). 2009-09-24 18:20:49 +00:00
Felipe Pena
788031f093 - Fixed bug #49531 (CURLOPT_INFILESIZE sometimes causes warning "CURLPROTO_FILE cannot be set ...") 2009-09-23 02:08:19 +00:00
Ilia Alshanetsky
420a3abc6a Fixed compiler warning 2009-09-23 00:18:32 +00:00
Ilia Alshanetsky
d223d65aad Fixed build with older version of libcurl 2009-09-22 01:17:16 +00:00
Felipe Pena
fff0a24656 - Fixed ZTS build 2009-09-16 18:01:10 +00:00
Pierre Joye
15398c4ed5 - #49253, add support for libcurl's CERTINFO option 2009-09-15 15:47:06 +00:00
Pierre Joye
137b9210f2 - fix #49372, segfault in php_curl_option_url 2009-08-26 22:24:10 +00:00
Felipe Pena
837732acc5 - Fix ZTS build 2009-07-26 23:44:59 +00:00
Jani Taskinen
776cb8a669 - Fixed bug #48637 ("file" wrapper is overwritten when using --with-curlwrappers)
# Also fixes bug #48603, basically same issue.
2009-07-25 20:44:19 +00:00
Felipe Pena
57140f7db0 - Making Valgrind happy 2009-07-25 20:39:01 +00:00
Sriram Natarajan
27dccf7ac0 - Fixed bug #48774 (SIGSEGVs when using curl_copy_handle()). 2009-07-21 20:32:32 +00:00
Ilia Alshanetsky
160c88cfa1 Fixed bug #48962 (cURL does not upload files with specified filename). 2009-07-21 15:56:08 +00:00
Felipe Pena
ea2abdc378 - Removed unnecessary strlen() call and if statement. 2009-07-19 14:36:16 +00:00
Felipe Pena
f4f825a7a5 - MFH: Fixed bug #48893 (Problems compiling with Curl) 2009-07-17 00:25:54 +00:00
Ilia Alshanetsky
305f4984d2 MFB: Fixed bug #48733 (CURLOPT_WRITEHEADER|CURLOPT_FILE|CURLOPT_STDERR warns
on files that have been opened with r+).
2009-07-02 13:42:16 +00:00
Pierre Joye
f403bd2128 - MFH: fix regression introduced by the fix for #48518 (Ilia, Rasmus) 2009-06-28 09:50:14 +00:00
Ilia Alshanetsky
bb55de47cd Simplify original fix for bug #33475 2009-06-15 12:37:37 +00:00
Felipe Pena
f9b9765ed0 - MFH: Fixed bug #48514 (cURL extension uses same resource name for simple and multi APIs) 2009-06-12 20:48:28 +00:00
Antony Dovgal
efa7b5c4c8 MFH: fix bug #48518 (curl crashes when writing into invalid file handle) 2009-06-11 09:46:43 +00:00
Antony Dovgal
0c8e557621 reapply the fix 2009-06-11 09:43:59 +00:00
Antony Dovgal
ea8d871a01 revert the fix for a while 2009-06-10 11:53:58 +00:00
Antony Dovgal
029f42dc63 MFH: fix arginfo for curl_multi_info_read() 2009-06-10 11:10:01 +00:00
Pierre Joye
2a93efcea3 - fix build, stderr cannot be used as var or struct member 2009-05-27 22:35:26 +00:00
Jani Taskinen
83748ac00d MFH: Fixed bug #48203 (crash when CURLOPT_STDERR is set to regular file) 2009-05-26 15:49:15 +00:00
Ilia Alshanetsky
44fe1bf83f Fixed bug #48207 (CURLOPT_(FILE|WRITEHEADER options do not error out when
working with a non-writable stream)
2009-05-21 12:52:05 +00:00
Antony Dovgal
0813510d1b sync with HEAD 2009-05-20 09:26:12 +00:00
Kalle Sommer Nielsen
21f836ee64 MFH: Fixed compiler warnings
# (see previous commit message)
2009-05-19 18:08:57 +00:00
Jani Taskinen
befe469770 MFH 2009-05-18 12:51:05 +00:00
Pierre Joye
4398fbcb07 - MFH: use ZEND_ARG_ARRAY_INFO for arginfo_curl_setopt_array 2009-05-18 12:01:44 +00:00
Pierre Joye
f77d46ea36 - sync with HEAD 2009-05-18 11:58:04 +00:00
Pierre Joye
52d8816cf7 - more WS 2009-05-18 11:48:31 +00:00
Pierre Joye
b5b4b19b8b - MFH: add CURLPROXY_SOCKS4 2009-05-18 11:18:59 +00:00
Pierre Joye
4b0a0e5568 - WS 2009-05-18 11:17:51 +00:00
Pierre Joye
330e416563 - MFB: - disable file:// when safe_mode or open_basedir are enabled 2009-05-18 10:31:08 +00:00
Brian Shire
4c81aa0b50 MFH: Add missing #ifdef for curl version that does not have FTP_FILEMETHOD or IPRESOLVE options. related to fix for bug #39637 2009-05-08 03:33:06 +00:00
Pierre Joye
d6d644b0bb - [DOC] a note about the symbol -> version page/doc 2009-05-04 14:11:45 +00:00
Pierre Joye
93941d1735 - [DOC] MFH: #39637, add CURLOPT_FTP_FILEMETHOD which accepts CURLFTPMETHOD_MULTICWD, CURLFTPMETHOD_NOCWD and CURLFTPMETHOD_SINGLECWD 2009-05-04 14:09:28 +00:00
Pierre Joye
5b3fa5afdd - MFH: [DOC] #47739. add option CURLOPT_IPRESOLVE which accepts CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4 or CURL_IPRESOLVE_V6 2009-05-04 12:12:57 +00:00
Pierre Joye
1cd9a33826 - ws/cs 2009-05-03 15:16:10 +00:00
Pierre Joye
ea57845b6e - c/p error 2009-05-03 15:03:35 +00:00
Pierre Joye
8e7031087a - [DOC] MFH: #41712, implement progress callback
- add constants  CURLOPT_PROGRESSFUNCTION
2009-05-03 14:59:46 +00:00
Felipe Pena
c7bfd897e6 - MFH: Fixed bug #47616 (curl keeps crashing) 2009-03-16 15:08:56 +00:00
Stanislav Malyshev
c452af9e6a add new CURL options 2009-03-13 19:39:49 +00:00
Ilia Alshanetsky
51f4e5efcd Fixed bug #47217 (content-type is not set properly for file uploads) 2009-01-26 15:19:55 +00:00
Antony Dovgal
34f1855168 do not define CURLE_SSH twice 2009-01-25 22:33:10 +00:00
Pierre Joye
f19f0cefa5 - nicer features list 2009-01-25 17:12:36 +00:00
Pierre Joye
7dc3ef31d2 - MFH
- [DOC] Add support for SSH via libssh2
  - new constants: CURLE_SSH, CURLSSH_AUTH_NONE, CURLSSH_AUTH_PUBLICKEY, CURLSSH_AUTH_PASSWORD, CURLSSH_AUTH_HOST, CURLSSH_AUTH_KEYBOARD, CURLSSH_AUTH_DEFAULT, CURLOPT_SSH_AUTH_TYPES, CURLOPT_KEYPASSWD, CURLOPT_SSH_PUBLIC_KEYFILE, CURLOPT_SSH_PRIVATE_KEYFILE, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5
   See http://curl.haxx.se/libcurl/c/curl_easy_setopt.html fortheir roles or usages
2009-01-25 16:28:18 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Jani Taskinen
77a63540a5 MFH:- Fixed bug #45161 (Reusing a curl handle leaks memory) 2008-12-17 14:13:40 +00:00
Ilia Alshanetsky
9049b6948e Fixed missing initialization of uses when copying a curl handle 2008-12-09 17:17:27 +00:00
Mikko Koppanen
57caba14ea Fixes bug #46739 2008-12-04 13:13:22 +00:00
Ilia Alshanetsky
fdc286abee Fixed bug #46711 (cURL curl_setopt leaks memory in foreach loops). 2008-11-30 17:30:50 +00:00
Dmitry Stogov
7d4fd3fd38 Fixed bug #46409 (__invoke method called outside of object context when using array_map) 2008-11-27 19:01:23 +00:00
Ilia Alshanetsky
d741138a46 Fixed bug #46696 (cURL fails in upload files with specified content-type) 2008-11-27 17:00:04 +00:00
Felipe Pena
fc2fb50d09 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:28:01 +00:00
Pierre Joye
5fc86e0213 - MFH: fix build with all curl versions, even very old (thx Felipe for having found all versions info) 2008-11-11 12:26:04 +00:00
Jani Taskinen
5493b4b7d1 fix build 2008-11-11 11:56:01 +00:00
Pierre Joye
dcdf00bdfc - MFH: make the curl phpinfo more verbose 2008-11-10 22:59:28 +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
Arnaud Le Blanc
1d5ba8bb21 MFH: initialize optional vars 2008-10-21 23:39:15 +00:00
Antony Dovgal
d9abccb322 MFH: fix copy/paste error (patch by Mikko) 2008-07-29 10:42:44 +00:00
Felipe Pena
75db10f95b - MFB: Fixed bug #45220 (curl_read callback returns -1 when needs to return size_t (unsigned)) 2008-07-12 21:16:50 +00:00
Alexey Zakhlestin
2618a28278 updated to the new parameter-parsing api 2008-06-21 21:51:05 +00:00
Ilia Alshanetsky
87eb2a9ec3 New param parsing API 2008-02-07 02:08:45 +00:00
Ilia Alshanetsky
e24c17f9b4 MFB: Fixed a safe_mode bypass in cURL identified by Maksymilian Arciemowicz. 2008-01-06 17:12:44 +00:00
Sebastian Bergmann
d1dded8751 MFH: Bump copyright year, 2 of 2. 2007-12-31 07:17:19 +00:00
Ilia Alshanetsky
d5d2b86303 Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can result
in a crash)
2007-12-18 13:46:07 +00:00
Antony Dovgal
cce49d019a MFH 2007-12-04 08:56:07 +00:00
Jani Taskinen
5bf4d6d89b MFH: - Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL) 2007-11-16 14:21:01 +00:00
Hannes Magnusson
ccce08e668 MFH: Fix typo and remove dots in error messages 2007-10-13 11:34:43 +00:00
Michael Wallner
2448b05b4f MFH: fix CURLOPT_TIMEOUT_MS support 2007-10-03 20:34:01 +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
86a022f7c7 MFH: add CURLINFO_PRIVATE & CURLOPT_PRIVATE
patch by Andrey A. Belashkov
2007-07-04 13:34:23 +00:00
Sara Golemon
5040dbd5e8 MFH(r-1.112) Add CURLOPT_TIMEOUT_MS and CURLOPT_CONNECTTIMEOUT_MS option constants 2007-05-22 08:39:20 +00:00
Antony Dovgal
b316a030aa MFH: add CURLOPT_FTP_CREATE_MISSING_DIRS 2007-04-23 14:36:56 +00:00
Rasmus Lerdorf
5b9ec4828f Off by ! in the url control char check for file:/// urls 2007-03-09 01:20:34 +00:00
Antony Dovgal
fa513e74ce MFH: fix leak 2007-02-23 20:51:02 +00:00
Antony Dovgal
7e74ff0ff1 MFH 2007-01-19 18:03:33 +00:00
Antony Dovgal
504e9e31f3 MFH: fix #40169 (CURLOPT_TCP_NODELAY only available in curl >= 7.11.2) 2007-01-19 15:38:51 +00:00
Sara Golemon
6a8f688af2 MFH: Add CURLOPT_TCP_NODELAY constant 2007-01-09 23:13:05 +00:00
Sebastian Bergmann
4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Ilia Alshanetsky
7fe60ada00 Don't forget to free url structure 2006-12-26 16:58:23 +00:00
Ilia Alshanetsky
5e576be36f Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). 2006-12-26 16:55:56 +00:00
Michael Wallner
2beee146b4 MFH: check CRYPTO_get_id_callback() if anyone else already set thread lock callbacks 2006-12-19 21:41:25 +00:00
Ilia Alshanetsky
57eb7c0bad Adjust previous patch to work better 2006-11-21 15:53:23 +00:00
Ilia Alshanetsky
fd8378d7d6 Fixed compiler warnings 2006-11-20 19:04:21 +00:00
Ilia Alshanetsky
0c7e63a07e Fixed bug #39354 (Allow building of curl extension against libcurl 7.16.0) 2006-11-03 14:53:14 +00:00
Ilia Alshanetsky
03641dcea4 Fixed bug #39034 (curl_exec() with return transfer returns TRUE on empty
files).
2006-10-10 23:12:59 +00:00
Ilia Alshanetsky
f850285c40 Added missing configuration checks 2006-10-08 22:38:48 +00:00
Ilia Alshanetsky
c8a5e8fa7a Fixed bug #38574 (missing curl constants and improper constant detection). 2006-09-18 16:11:50 +00:00
Hannes Magnusson
ef4ff6fe9e CURL->cURL 2006-09-09 20:04:50 +00:00
Ilia Alshanetsky
5ea3080546 Fixed bug #38637 (curl_copy_handle() fails to fully copy the cURL handle). 2006-08-29 17:10:40 +00:00
Ilia Alshanetsky
a4d2f04307 Fixed overflow on 64bit systems in str_repeat() and wordwrap().
Disabled CURLOPT_FOLLOWLOCATION in curl when open_basedir or safe_mode are
enabled.

# Patches by Stefan E.
2006-08-10 14:40:13 +00:00
Ilia Alshanetsky
f0178f71ee Eliminate some compiler warnings 2006-07-04 20:12:38 +00:00
Hannes Magnusson
bcd06ef1b6 Bug #37961 (url should be URL) 2006-06-29 14:31:56 +00:00
Hannes Magnusson
d258bcd951 MFH: Removed obsolete arginfo include 2006-06-26 14:11:17 +00:00
Hannes Magnusson
954acfe261 MFH: Revert array type hinting 2006-06-15 15:31:54 +00:00
Hannes Magnusson
3104233019 MFH: arginfo, protos, vim folding 2006-06-11 01:42:17 +00:00
Ilia Alshanetsky
24f3d55f3c Added control character checks for cURL extension's open_basedir/safe_mode
checks.
2006-05-21 16:31:57 +00:00
Antony Dovgal
65fcbcbdc0 fix bug #37061 (curl_exec() doesn't zero-terminate binary strings) - we get the data length from cURL, so it's binary safe.
fix leak appearing when re-using curl handle
2006-04-13 11:26:10 +00:00
Michael Wallner
ed58b573a1 MFH: fix bug #36152 problems with curl+ssl and pgsql+ssl in same PHP 2006-01-26 13:23:33 +00:00
Ilia Alshanetsky
5f25d80d10 cURL extension news. 2006-01-24 20:11:14 +00:00
Ilia Alshanetsky
8340e30313 Revert unrelated parts of the previous patch. 2006-01-05 18:07:55 +00:00
Ilia Alshanetsky
e9c813af61 MFH4: Fixed bug #35908 (curl extension uses undefined GCRY_THREAD_OPTIONS_USER). 2006-01-05 18:05:37 +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
cdbe4a5cab Improved safe_mode/open_basedir check. 2005-11-27 20:07:36 +00:00
Ilia Alshanetsky
0ba24fb65a Additional open_basedir/safe_mode checks. 2005-10-31 23:44:40 +00:00
foobar
143d1c8011 MFH 2005-10-26 11:33:25 +00:00
Michael Wallner
60efdff75f - MFH: thread safe SSL crypto locks, fixes bug #33760 2005-10-25 14:32:33 +00:00
Ilia Alshanetsky
8d476ded8e MFH: Further URL validations in safe_mode/open_basedir configs. 2005-10-17 02:43:20 +00:00
Ilia Alshanetsky
71bd44ac02 MFH: Added missing safe_mode checks. 2005-10-06 20:47:41 +00:00
Ilia Alshanetsky
bcf354a97a MFH: Missing safe_mode/open_basedir checks for file uploads. 2005-10-05 14:35:30 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
a6931b3923 Cleanup buffers on handle re-use. 2005-07-18 13:47:33 +00:00
Ilia Alshanetsky
2889c497f5 Added 2 missing cURL options available in all versions. 2005-07-16 18:33:09 +00:00
George Schlossnagle
d0ec239661 Darwin seems to like this much better. 2005-07-15 16:47:48 +00:00
Ilia Alshanetsky
498595a122 Fixed bug #33475 (cURL handle is not closed on curl_close(). 2005-06-26 17:31:07 +00:00
Antony Dovgal
56a68b5be1 fix bug #33222 (segfault when CURL handle is closed in a callback).
fix segfaults when CURL callback functions throw exception.
2005-06-02 21:04:12 +00:00
Ilia Alshanetsky
8b8940ba84 php_error() -> php_error_docref(). 2005-04-21 21:11:23 +00:00
foobar
5718cb15a3 - Fixed bug #30609 (cURL functions bypass open_basedir) 2005-03-14 09:02:23 +00:00
Joe Orton
792032c6bb Fix #31413: curl POSTFIELDS usage on 64-bit platforms. 2005-01-05 21:33:56 +00:00
Rob Richards
bd8aba8c8d fix typo so it compiles 2004-11-18 16:35:04 +00:00
Ilia Alshanetsky
fae64ba40c Added support for better control over FTP encryption protocols. 2004-11-14 20:00:16 +00:00
Ilia Alshanetsky
5b95dc5faf MFB: Fixed bug #30613 (Prevent infinite recursion in url redirection). 2004-11-01 04:55:01 +00:00
Ilia Alshanetsky
8c8fba0841 Fixed bug #30475 (curl_getinfo() may crash in some situations). 2004-10-18 22:41:24 +00:00
Ilia Alshanetsky
823e4029f7 MFB: Removed unneeded bits. 2004-08-20 13:53:16 +00:00
Ilia Alshanetsky
67e3288a5d Added more missing cURL options. 2004-08-20 00:55:56 +00:00
Ilia Alshanetsky
5520636b17 Fixed bug #29727 (Added missing CURL authentication directives). 2004-08-18 21:27:24 +00:00
Sterling Hughes
e8f984d77a fix bug wrt to CURLOPT_POSTFIELDS where if you passed it code like:
$fields = array('foo' => 'bar');
curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
curl_exec($ch);
as opposed to :

curl_setopt($ch, CURLOPT_POSTFIELDS, array('foo' => 'bar'));

you'll get a segv or no results, depending on the mood and cycle of the
moon.
2004-07-01 06:50:46 +00:00
Ilia Alshanetsky
6fd3a52665 Fixed bug #28196 (missing error constants in cURL extension). 2004-04-29 16:25:42 +00:00
Ilia Alshanetsky
83e9b7eeee Fixes to allow curl extension to compile against libcurl 7.11.1 2004-03-22 18:42:03 +00:00
Sterling Hughes
e71590ef68 zval **, not a zval * 2004-03-12 20:04:31 +00:00
Sterling Hughes
94a1728de0 avoid a memory leak when a php_curl handle is allocated, but the initialization
of a CURL handle fails.
2004-03-12 18:41:19 +00:00
Sterling Hughes
177db33c63 add the curl_copy_handle() function which will exactly duplicate a cURL handle.
Useful when you have multiple "similair" transforms as with a multi handle with
only small variances (like the URL)
2004-03-12 18:37:55 +00:00
Ilia Alshanetsky
4eafea278f Simplify check. 2004-03-12 17:37:04 +00:00
Ilia Alshanetsky
2c9098a78f Additional checks of return values from user callback functions. 2004-03-12 17:31:10 +00:00
Sterling Hughes
ad84ce6233 leave length as -1, no need to strdup() 2004-03-12 16:36:30 +00:00
John Coggeshall
1c7ea2045b Opps. Shouldn't look at the value, just the type 2004-03-12 16:28:28 +00:00
John Coggeshall
4c76273d88 CURLOPT_INFILE === CURLOPT_READDATA 2004-03-12 16:12:47 +00:00
John Coggeshall
2009e4e83b Fixed a crash which happens if your READFUNCTION callback doesn't actually
return a string as promised.
2004-03-12 16:08:11 +00:00
Ilia Alshanetsky
21a7e57ae7 Fixed memory leak in the multi interface.
Fixed proto of curl_multi_exec().
Fixed crash in curl resource attached to curl multi resource is manually
freed via curl_close().
2004-03-11 00:11:18 +00:00
Rasmus Lerdorf
3189068f4e Make curl_setopt($ch,CURLOPT_RETURNTRANSFER,0) reset the RETURNTRANSFER to
stdout as is implied in the documentation.  Currently it simply does
absolutely nothing and there is no way to reset it to stdout.
2004-03-09 17:11:22 +00:00
Ilia Alshanetsky
11366f4886 Fixed bug #27341 (HEAD requests fail to return data). 2004-02-23 19:50:07 +00:00
foobar
f869e198e8 - Fixed compile problem with CURLOPT_HTTPAUTH 2004-01-26 04:59:59 +00:00
foobar
03e4695d3d - Fixed bug #27040 (passing an array of form-fields to CURLOPT_POSTFIELDS does not work). 2004-01-26 00:16:16 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Zeev Suraski
8767205afa Fix Win32 linkage problems 2003-08-31 12:41:53 +00:00
foobar
cc011660e7 Fix the build 2003-08-05 23:50:59 +00:00
Zeev Suraski
90b29aa076 Replace fast_call_user_function() with zend_call_function() 2003-08-05 10:29:03 +00:00
Zeev Suraski
538d58dd5f Use new infrastructure.
There are bound to be some messups, please report build/runtime bugs!
2003-08-03 17:44:39 +00:00
Derick Rethans
12cf3ec385 - Removed duplicate constants 2003-06-28 09:55:12 +00:00
Edin Kadribasic
7886bc93f6 Win32 build fixes 2003-06-19 23:07:14 +00:00
Ilia Alshanetsky
d81f2e582c Added missing safe_mode checks.
Added support for additional libcurl options.
Set CURLOPT_NOSIGNAL by default for ZTS, for signal free operation.
2003-06-19 22:12:21 +00:00
Sterling Hughes
8eef152174 recognize CURLOPT_PORT 2003-06-18 21:02:02 +00:00
Andrey Hristov
03a135a141 proto fix 2003-06-12 12:32:22 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Sterling Hughes
5641234ee2 move all the other callbacks 2003-05-21 23:27:12 +00:00
Sterling Hughes
3de6a7d3b2 switch over to using fast_call_user_function() with the callbacks 2003-05-21 23:15:28 +00:00
Sterling Hughes
dd8accf890 apply fix from bug #23539 2003-05-17 14:12:36 +00:00
Ilia Alshanetsky
09fbc97d55 Add missing initialization. 2003-05-09 01:10:18 +00:00
Derick Rethans
810ac117f0 - Fix non-ZTS build after Sterling's changes to TSRM 2003-04-28 10:40:28 +00:00
Sterling Hughes
7ed6fd22bc use the new TSRMLS_FETCH_FROM_CTX() macro 2003-04-27 22:15:19 +00:00
foobar
b4b661ae0a WS & CS fixes 2003-03-17 15:06:11 +00:00
Ilia Alshanetsky
cf072c4a75 Fixed bug #22681 (Crash when reading from invalid file pointer). 2003-03-13 18:15:31 +00:00
foobar
535a73a71e - Fixed bug #22312 (crash on failed connection when curl_getinfo() was called).
(Phil Oleson <poleson@verio.net>)
2003-02-28 07:34:45 +00:00
foobar
afc69728a8 (hope) fix some win32 build errors 2003-02-25 07:19:44 +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
b0924da0cf Fixed bug #22031 (Made curl_write() & curl_write_header() binary safe). 2003-02-03 20:56:23 +00:00
Ilia Alshanetsky
923ae6ca3e Gave the user the ability to specify encoding of the request.
Patch by jens@mermaidconsulting.dk.
2003-02-02 20:56:51 +00:00
Ilia Alshanetsky
aebb39b014 Changed php_error to php_error_docref.
Thanks to Marcus Börger for writing a script that significantly simplifies
this process.
2003-01-18 21:31:11 +00:00
Sebastian Bergmann
b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Ilia Alshanetsky
98e85ae80b Fixed bug #20987 (no handling for client certificates). 2002-12-21 18:03:46 +00:00
Wez Furlong
9ae3c2f7bd Commit these before Sterling renames the files again :-)
When curlstreams are enabled, registers a each supported protocol
with PHP.
"More Correctly" implement eof for curlstreams.
Still not ready for anything like primetime.
2002-11-14 11:41:24 +00:00
Sterling Hughes
537284418c add multi support and reorganize things a bit... 2002-11-13 22:25:33 +00:00