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
Michael Wallner
d6212d96f4
- only try to fetch stream context options if context is set
2006-06-06 21:38:03 +00:00
Michael Wallner
3dcef1b9be
- implement standard http stream wrapper options, fixes bug #34180
...
- skip empty headers in on_header_available()
2006-05-25 12:41:35 +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
Brian France
39441f79e6
MFH: Add implementation of curl_multi_info_read
2006-05-08 15:29:28 +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
Antony Dovgal
af34ed0d97
fix #35341 (Fix for bug #33760 breaks build with older curl)
2005-11-22 22:53:34 +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
Ilia Alshanetsky
b5e2cc5197
MFH: Fixed bug #34420 (Possible crash inside curl_multi_remove_handle()).
2005-09-08 14:50:23 +00:00
foobar
4f89b2e0cb
Fix crash with e.g. stream_get_meta_data()
2005-08-25 12:25:10 +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
foobar
626253940e
- Added PHP_INSTALL_HEADERS() macro
...
- Fixed several VPATH build issues
- Changed all awk calls to use $AWK
- Changed all mkdir calls to use "$php_shtool mkdir"
2005-05-07 02:51:53 +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
Rasmus Lerdorf
4909775f04
Fix for bug #31901
2005-02-09 16:22:48 +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
Joe Orton
2685ca935f
Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
...
to support multi-ABI platforms.
2004-11-03 14:32:52 +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
Sterling Hughes
58cb0d77a0
fix wrong check from return value, binary content should not be \0'd,
...
non-binary content should be \0'd.
2004-09-10 20:36:45 +00:00
Sara Golemon
579575e430
Use user_agent ini setting if it's available.
2004-08-31 20:11:18 +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
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
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
6a1a3ecc36
Readability++
2004-03-11 00:27:16 +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
e33168207e
Fixed memory leak with curl_multi_init() de-initialization.
2004-03-09 15:04:17 +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
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
Sara Golemon
af4f949483
Don't even define this.
2004-01-13 05:30:53 +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
Wez Furlong
441181e9c2
copy-n-paste error
2003-12-19 12:52:39 +00:00
Sara Golemon
c56647833b
Route mkdir()/rmdir() via wrapper ops.
...
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
2003-12-13 04:07:18 +00:00
Sara Golemon
b1f8236b63
Route rename() via wrapper ops.
...
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
2003-12-12 23:06:42 +00:00
Wez Furlong
39305a50d6
allow these extensions to build with new system
2003-12-04 03:46:12 +00:00
Ilia Alshanetsky
ace83a8262
Silence warning.
2003-11-17 04:54:27 +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
Edin Kadribasic
ccff468774
MFB
2003-07-22 12:36:59 +00:00
Derick Rethans
12cf3ec385
- Removed duplicate constants
2003-06-28 09:55:12 +00:00
Edin Kadribasic
23a9f80f89
ZTS Fixes
2003-06-19 23:13:28 +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
Derick Rethans
48041d4d7f
- Fixed bug #23751 : Confusing configure warning concerning required cURL
...
version
2003-05-22 13:08:49 +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
18254e85ef
ilia's request is my command
2003-05-21 15:47:01 +00:00
Sterling Hughes
dd8accf890
apply fix from bug #23539
2003-05-17 14:12:36 +00:00
Sara Golemon
5126fbe556
Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
2003-05-14 06:10:04 +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
Brian France
031aef1e0c
Added HAVE_CONFIG_H check so the phpize build method works
2003-04-05 08:14:56 +00:00
Sterling Hughes
335a1c1a6d
forgot to commit this.
2003-04-04 16:00:33 +00:00
Sterling Hughes
bb7c2ddb23
add the ability for curl_multi_info to introspect the handles.
...
# Zend commit doesn't break anything, so I'm committing it. If anyone
# has problems, just speak up. :)
2003-04-02 16:58:52 +00:00
Wez Furlong
badd5fb6fd
Fix curl detection when multiple installations exist
2003-03-23 18:14:41 +00:00
foobar
b4b661ae0a
WS & CS fixes
2003-03-17 15:06:11 +00:00
Hartmut Holzgraefe
dbe4f2238c
proto fixes
2003-03-17 13:11:19 +00:00