Commit Graph

171 Commits

Author SHA1 Message Date
Ilia Alshanetsky
f8b7f4bed6 MFB: Fixed bug #43620 (Workaround for a bug inside libcurl 7.16.2 that can
result in a crash)
2007-12-18 13:48:19 +00:00
Antony Dovgal
b3a45d492d fix folding 2007-12-04 08:55:58 +00:00
Jani Taskinen
fc5d24284f - Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL) 2007-11-16 14:18:59 +00:00
Michael Wallner
25f77827dd - fix CURLOPT_TIMEOUT_MS support (available since 7.16.2) 2007-10-03 20:32:52 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Sara Golemon
16b1288ee1 Bagder says I don't need these ifdefs 2007-08-21 21:23:35 +00:00
Sara Golemon
0deb7d03df Add support for CURLPROXY_SOCKS4 2007-08-20 18:56:05 +00:00
Antony Dovgal
0c0166979d add CURLINFO_PRIVATE & CURLOPT_PRIVATE
patch by Andrey A. Belashkov
2007-07-04 13:33:01 +00:00
Antony Dovgal
84827aabc4 add CURLOPT_FTP_CREATE_MISSING_DIRS 2007-04-23 14:36:38 +00:00
Sara Golemon
68fb6f020b Add support for CURLOPT_TIMEOUT_MS and CURLOPT_CONNECTTIMEOUT_MS 2007-04-17 18:39:18 +00:00
Rasmus Lerdorf
bdd22775fe MFB Off by ! in file:/// control char check 2007-03-09 01:22:47 +00:00
Antony Dovgal
b4f2b5d1df fix leak
no need to allocate the buffer if there was no data
2007-02-23 20:50:17 +00:00
Antony Dovgal
d92352967c improve the fix 2007-01-19 18:03:25 +00:00
Antony Dovgal
70863e0395 fix #40169 (CURLOPT_TCP_NODELAY only available in curl >= 7.11.2) 2007-01-19 15:38:02 +00:00
Sara Golemon
ea81a3a7b7 Add CURLOPT_TCP_NODELAY 2007-01-08 20:04:56 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
fdf33c7593 MFB: Fixed bug #39878 (CURL doesn't compile on Sun Studio Pro). 2006-12-26 16:57:51 +00:00
Michael Wallner
88cd3100c7 - check CRYPTO_get_id_callback() if anyone else already set thread lock callbacks 2006-12-19 21:41:12 +00:00
Ilia Alshanetsky
e0b72d28c6 Improve handling of POST data with Andrei's help. 2006-12-09 14:37:40 +00:00
Hannes Magnusson
815ec53657 Fix build 2006-12-09 14:07:13 +00:00
Ilia Alshanetsky
6ef2d0dd23 Fixed typo 2006-12-08 03:13:41 +00:00
Ilia Alshanetsky
e8101a6d16 Allow POST of unicode data as utf8 2006-12-08 00:46:01 +00:00
Ilia Alshanetsky
38d622732d Allow submission of unicode data in utf8 form 2006-12-07 01:06:54 +00:00
Ilia Alshanetsky
374a5b63c6 Final set of unicode changes 2006-12-06 18:40:55 +00:00
Ilia Alshanetsky
aa6e70f216 First part of unicode upgrade 2006-12-06 17:52:11 +00:00
Ilia Alshanetsky
f1fdf21706 MFB: Adjust previous patch to work better 2006-11-21 15:58:12 +00:00
Ilia Alshanetsky
f09218a04c MFB: Fixed compiler warnings 2006-11-20 19:06:09 +00:00
Ilia Alshanetsky
0311ffef1f MFB: Fixed bug #39354 (Allow building of curl extension against libcurl
7.16.0)
2006-11-03 14:53:27 +00:00
Ilia Alshanetsky
1032b2eaa3 MFB: Fixed bug #39034 (curl_exec() with return transfer returns TRUE on
empty files).
2006-10-10 23:13:13 +00:00
Ilia Alshanetsky
6c3b4288bb MFB: Added missing configuration checks 2006-10-08 22:39:48 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Ilia Alshanetsky
b8b3ade128 MFB: Fixed bug #38574 (missing curl constants and improper constant
detection).
2006-09-18 16:13:00 +00:00
Hannes Magnusson
8b427acfd0 Be overly picky: CURL->cURL 2006-09-09 20:03:55 +00:00
Ilia Alshanetsky
a577e39142 MFB: Fixed bug #38637 (curl_copy_handle() fails to fully copy the cURL
handle).
2006-08-29 17:10:52 +00:00
Ilia Alshanetsky
fa48ce6810 MFB: Various security fixes 2006-08-10 19:02:32 +00:00
Ilia Alshanetsky
a033c5e7f6 MFB: Eliminate some compiler warnings 2006-07-04 20:13:40 +00:00
Hannes Magnusson
0a2cfcce41 MFB: url -> URL 2006-06-29 14:32:24 +00:00
Hannes Magnusson
7589f995c9 Removed obsolete arg_info include 2006-06-26 14:10:57 +00:00
Hannes Magnusson
284ad23f60 Add array type hinting
Remove unnecessary array checkes
2006-06-15 16:25:12 +00:00
Hannes Magnusson
66ad36259b Revert array type hinting 2006-06-15 15:31:39 +00:00
Hannes Magnusson
e6487d115e Added argument info
Fixed protos
Fixed vim folding
2006-06-10 22:59:40 +00:00
Ilia Alshanetsky
ef29a49de6 Added control character checks for cURL extension's open_basedir/safe_mode
checks.
2006-05-21 16:32:10 +00:00
Antony Dovgal
52972cc61f MF51:
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:43 +00:00
foobar
b8cdb46cce - More safe_mode left-overs. 2006-04-11 11:32:06 +00:00
Andi Gutmans
c28cff57d1 - Couple of compile fixes. 2006-02-19 05:05:42 +00:00
Andi Gutmans
ac1e7362b3 - More safe_mode nuking 2006-02-19 03:07:39 +00:00
Andi Gutmans
e94e25e621 Start nuking safe_mode. Still a lot of work to do... 2006-02-19 00:55:22 +00:00
Michael Wallner
98ca921fb2 - fix bug #36152 problems with curl+ssl and pgsql+ssl in same PHP 2006-01-26 13:20:56 +00:00
Ilia Alshanetsky
6213faa402 MFB4: Fixed bug #35908 (curl extension uses undefined GCRY_THREAD_OPTIONS_USER). 2006-01-05 18:06:15 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
foobar
0a1d459892 MF51: improve open_basedir check 2005-11-27 20:10:15 +00:00
Ilia Alshanetsky
b8665d4169 MFB51: Additional open_basedir/safe_mode checks. 2005-10-31 23:45:50 +00:00
foobar
4d9e40f8dd Fix indent 2005-10-26 11:33:05 +00:00
Michael Wallner
6cb40d4c48 - thread safe SSL crypto locks, fixes bug #33760 2005-10-25 14:29:07 +00:00
Ilia Alshanetsky
21979641ca Further URL validations in safe_mode/open_basedir configs. 2005-10-17 02:42:17 +00:00
Ilia Alshanetsky
37a1bb6f52 Added missing safe_mode checks. 2005-10-06 20:37:25 +00:00
Ilia Alshanetsky
f10effd288 Missing safe_mode/open_basedir checks for file uploads. 2005-10-05 14:32:19 +00:00
Ilia Alshanetsky
726e1efe86 Added curl_setopt_array(), allowing setting of multiple cURL options.
Added CURLINFO_HEADER_OUT to facilitate request retrieval.
2005-08-09 14:14:55 +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