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
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
bceb56b2ba
Re-enable the curlwrappers configure option.
...
I still don't recommend it's use unless you are hacking both curl and PHP
to make it work.
2002-11-18 12:00:21 +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
89ea16ffaa
remove C++ comments
2002-11-14 04:07:51 +00:00
Sterling Hughes
9d04acdaaa
curl_multi_info_read is unimplemented...
2002-11-13 22:43:31 +00:00
Sterling Hughes
537284418c
add multi support and reorganize things a bit...
2002-11-13 22:25:33 +00:00
Derick Rethans
30daa9489c
- Make it rely on cURL version 7.9.8 again, so that we can start with the
...
Release Process.
2002-11-10 21:26:14 +00:00
Sterling Hughes
c4bb7f4776
add a whole bunch of constants that make the interface somewhat up-to-date.
2002-11-09 13:52:00 +00:00
Sterling Hughes
767c02af51
add check for curl 7.10.2
2002-11-09 13:08:49 +00:00
Sterling Hughes
71d316e39e
add support for curl 7.10.* constants (at least most of them)
...
add support for persistent connections
2002-11-08 17:58:43 +00:00
Wez Furlong
be769483d5
Really disable curlwrappers configure option.
2002-11-07 18:07:03 +00:00
Wez Furlong
ec955b07bb
Disable --with-curlwrappers.
...
(Pending support from libcurl itself)
2002-11-06 10:24:48 +00:00
Ilia Alshanetsky
62aefeb01f
Fixed ZTS build.
2002-10-22 18:54:09 +00:00
Sterling Hughes
102c945501
no need to double fetch
2002-10-21 22:35:59 +00:00
Derick Rethans
f85e6fe51d
- Added CURLOPT_FTP_USE_EPSV option. (Patch by Alex Howansky
...
<alex@wankwood.com>)
2002-10-02 16:44:48 +00:00
Wez Furlong
4d8a07d529
Implement read buffering in streams.
...
Eliminate similar code from network.c.
Implement fgets equivalent at the streams level, which can detect
the mac, dos and unix line endings and handle them appropriately.
The default behaviour is unix (and dos) line endings.
An ini option to control this behaviour will follow.
# Don't forget to make clean!
# I've done some testing but would appreciate feedback from
# people with scripts/extensions that seek around a lot.
2002-09-23 01:47:04 +00:00
foobar
3bf7519210
@- Added --disable-all configure option. (Jani)
2002-09-04 18:47:28 +00:00
Derick Rethans
8218b5838c
@- PHP's cURL extention now requires cURL version 7.9.8 (Derick)
...
- Bump up required version number of cURL to 7.9.8
2002-08-25 12:24:40 +00:00
Wez Furlong
fc1ef270ce
Implement curl based wrappers.
...
Currently read-only, and http is the only thing tested.
Because of this, using them can be controlled by configure:
--with-curlwrappers Use CURL for url streams
Not for production use...
This enables http, https, ftp and ldap protocols as streams.
2002-08-12 15:56:13 +00:00
Sterling Hughes
3754f76507
add support for the curl dns cache
2002-07-31 22:10:58 +00:00
foobar
d1e3622fcc
- Fix bug: #18509 , e.g. setting CURLOPT_BINARYTRANSFER succeeds always.
...
- Also set the binary mode ONLY if the passed value is true..
2002-07-26 22:57:14 +00:00
foobar
0790c58f96
Fixed bug: #18250
2002-07-11 02:31:38 +00:00
Sterling Hughes
f7a5c05bb6
formatting fixes
2002-07-03 12:02:17 +00:00
Sterling Hughes
51e5a578b7
fix bug #17963
2002-07-03 11:50:00 +00:00
Derick Rethans
8967b5725b
Unify error messages
2002-06-26 07:24:47 +00:00
Sterling Hughes
7201d8b54e
fix bug #15150 , thanks to daniel at haxx.se for the fix
2002-04-03 23:59:36 +00:00
Derick Rethans
66e510f60a
- Fix for bug #16232 (Patch by Alan Knowles <alan@akbkhome.com>)
2002-03-24 10:40:21 +00:00
Hartmut Holzgraefe
ab928b03d6
proto fix
2002-03-23 01:43:38 +00:00
Markus Fischer
1d75089d8b
*** empty log message ***
2002-03-21 22:35:02 +00:00
Hartmut Holzgraefe
c19dfe84c7
proto fixes
2002-03-18 18:00:24 +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
Sterling Hughes
094873c6d2
hopefully fix --with-openssl issues
2002-01-27 06:11:50 +00:00
Sterling Hughes
1a36eb5574
just init CURL_GLOBAL_SSL
2002-01-22 17:06:16 +00:00
Sterling Hughes
85fa03aab3
Avoid a segfault when 0 bytes are returned from a website, and RETURNTRANSFER is enabled.
2001-12-24 13:58:03 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Sterling Hughes
737b6f8b13
Spaces -> Tabs
2001-12-10 13:22:48 +00:00
Sterling Hughes
80f4a863f9
Add a content length field to perhaps eliminate null truncation
2001-12-03 12:24:03 +00:00
Sterling Hughes
fa58a95035
Re-add support for HTTP file uploads
2001-12-03 09:19:14 +00:00
foobar
f1397d5339
Unified the configure messages.
2001-11-30 19:00:13 +00:00
Sterling Hughes
e7aa85c011
Fix a crash bug in CURLOPT_POSTFIELDS by using curl_formadd instead of
...
curl_formparse
Fix a crash bug when CURLOPT_INFILE is not properly specified.
2001-11-20 11:29:54 +00:00
Zeev Suraski
8b40f3c231
Improve OpenSSL compatibility
2001-11-13 11:47:52 +00:00
Sterling Hughes
5fc1552c04
"Fix" last commit, to compile cURL with SSL support you must also use the
...
OpenSSL extension -- sorry...
The last commit caused bad things to happen if you were compiling cURL and
PHP on Win32 or if you compiled PHP --with-openssl, ie, re-initializing things
that were already initialized
2001-11-13 10:59:15 +00:00
Zeev Suraski
6d7be11454
Import patch from bug #14023
2001-11-13 01:01:47 +00:00
Frank M. Kromann
583b24b682
Reverting the last fix for ZTS and adding TSRMLS_FETCH() to make it work.
2001-10-18 19:24:51 +00:00
Frank M. Kromann
d682cf90cf
Adding include path for having curl header and libraries in php_build\curl
2001-10-18 17:47:35 +00:00
Frank M. Kromann
d3dfc03108
Fixing ZTS build on win32
2001-10-18 17:46:57 +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
39e47f5a98
Revert macro-subst, because wasn't necessary here, and those who were
...
substitued weren't zvals
2001-09-26 22:24:44 +00:00
Jeroen van Wolffelaar
21f2b9277f
3rd run in back-substitutin Z_* macro's. The val->Z_ cases are all solved now.
2001-09-26 08:35:48 +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
Sterling Hughes
bb2d4e3126
add a 7.9 version check
2001-09-25 07:07:22 +00:00
Sterling Hughes
2e79759f50
fix constant
2001-09-24 18:45:08 +00:00
Sterling Hughes
958675c067
fix compile
2001-09-22 16:56:21 +00:00
Sterling Hughes
f8e78a00f2
update to curl 7.9 (when it comes out :)
...
make REGISTER_CURL_CONSTANT() only take one argument
couple of speed-up's
few style fixes
2001-09-22 00:38:59 +00:00
Sascha Schumann
d5e22e2a29
Use proper macro to return string with unknown length
2001-09-10 11:06:15 +00:00
Sterling Hughes
2e890a36d4
Revert, this is max error size, not strlen(error)
2001-09-10 00:25:59 +00:00
Sterling Hughes
5830ffeb48
RETURN_STRING -> RETURN_STRINGL
2001-09-10 00:24:29 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
André Langhorst
d4b86e1c5b
fix curl build for curl >= 7.8
2001-09-08 16:51:00 +00:00
Sterling Hughes
1c3b3ad8f3
tense, tense, tense
2001-09-08 00:42:25 +00:00
foobar
032b263129
Fixes commit / link problems with certain compilers.
...
# Please use PHP_CHECK_LIBRARY() always instead of AC_CHECK_LIB
# if you need to pass extra libs/libpaths to the test.
2001-09-05 13:18:09 +00:00
Sterling Hughes
dd094d1866
noet
2001-08-24 01:12:37 +00:00
Rasmus Lerdorf
4d11d90880
Track down a few more functions that don't check for 0 args and use
...
faster mechanism
2001-08-13 07:55:39 +00:00
Rasmus Lerdorf
8c497f05c4
We don't consistently check for args passed to functions that don't
...
take any args. In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks. There are still lots of cases out there.
2001-08-13 06:43:47 +00:00
foobar
f9c76ee19f
Fixed bug: #12597 .
2001-08-06 15:40:47 +00:00
Sterling Hughes
70a0951eb9
Larger transfer buffer before realloc() this should speed things up a bit
2001-08-02 19:28:33 +00:00
Sterling Hughes
b71efb2f9c
ws fix
2001-08-02 19:25:46 +00:00
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
2001-07-31 05:44:11 +00:00
Zeev Suraski
c43806f415
Zend compatibility patch
2001-07-30 08:24:42 +00:00
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
...
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Stanislav Malyshev
e2a7a6b0f6
Prevent cURl from always outputting the header. Fix bug #12018
2001-07-18 10:47:54 +00:00
Sterling Hughes
f00791ce24
add missing break statements.
2001-07-13 16:44:44 +00:00
Sterling Hughes
fc729b7cd5
Herr sascha's reccomendation.
2001-07-11 23:03:24 +00:00
Sterling Hughes
f76c42688d
Return proper length, thanks for excellent reports by Colin.
2001-07-11 18:10:52 +00:00
Sterling Hughes
dd3a7680ca
fix.
2001-07-11 01:06:09 +00:00
Sterling Hughes
203ea6c51d
# I think i am quite stupid.
2001-07-10 20:31:49 +00:00
Sterling Hughes
5e4e376571
If the transfer fails, still free the buffer if it exists.
2001-07-10 20:09:56 +00:00
Sterling Hughes
4dc55c14a4
Fix possible corruption problem with curl_errno() and curl_error()
2001-07-02 12:08:21 +00:00
Sterling Hughes
d097b0ed86
Fix mispell.
2001-07-02 11:56:08 +00:00
Sterling Hughes
0216627522
@ Fixed a crash when using the CURLOPT_WRITEHEADER option. (Sterling)
...
# Folks please test, I've tested a limited amount of test cases, however,
# this change is far reaching, so I couldn't test all the necessary things
2001-06-25 15:14:20 +00:00
Stig Bakken
2a61bad994
(PHP curl_setopt) fix CURLOPT_HTTPHEADER crasher (Stig)
2001-06-12 20:23:14 +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
Sterling Hughes
5ede574d49
Speed up data being sent to stdout
2001-05-27 19:11:09 +00:00
foobar
43e41ddb93
curl-config tells us which libraries it has compiled with. So we should use it.
2001-05-27 18:52:33 +00:00
Sterling Hughes
43865fb3c2
.
2001-05-27 01:16:45 +00:00
Sterling Hughes
1b20eacd21
so says sniper, and so it shall be.
2001-05-27 01:15:27 +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
Daniel Beulshausen
741fbe5fc6
winsock is already initialized in an higher version by php
2001-05-17 17:13:47 +00:00
Sterling Hughes
ffc997f149
Add a compile check for the cURL version and fix the compile in general.
2001-05-16 23:43:30 +00:00
Sterling Hughes
00421e7c83
leftovers.....
2001-05-14 21:04:23 +00:00
Sterling Hughes
db58472b56
Register the binary transfer option
2001-05-14 21:02:31 +00:00
Sterling Hughes
7bf6869583
fix crash bug
2001-05-06 22:24:25 +00:00
Sterling Hughes
1ae44c8e49
Make it compile with the latest cURL cvs, heck it even works.
2001-05-04 04:20:38 +00:00
Andi Gutmans
0ac0f656ae
- Fix possible buffer overflow. Always better to use strlcpy() instead
...
of strncpy()
2001-05-02 22:22:16 +00:00
Sterling Hughes
21032fee6b
remove last minute garbage that snuck in...
2001-04-30 16:30:46 +00:00
Sterling Hughes
33d5c80bcd
Add some missing constants.
2001-04-30 14:46:04 +00:00
Sterling Hughes
ea2cf1856f
# Ok, big ass change list. Most of the changes are NEW's worthy, so
...
# I'll enter them directly there, not here.... The non-newsworthy code
# is:
Added REGISTER_CURL_CONSTANT() a wrapper around REGISTER_LONG_CONSTANT()
Re-vamp the internal php_curl structure.
Properly free allocated slist's and HttpPost structures
many whitespace changes
speed improvements (in the post handling and slist area's)
# Furthermore, as a side note, while the code I'm committing is correct,
# no one will be able to compile it yet and test it, as it requires a
# patched version of curl (if you really want to try it out and can't
# wait a day or two, send me a private mail)
2001-04-30 14:36:19 +00:00
Daniel Beulshausen
cb7c65d052
fix win32 build
2001-04-30 09:57:16 +00:00
Sterling Hughes
425c714435
# Actually fix the bug this time (I fixed another bug last time :)
2001-04-28 21:44:44 +00:00
Sterling Hughes
d53ab0ae48
fix bug #10541
2001-04-28 21:37:45 +00:00
Sterling Hughes
a59a85b598
Fixed a crash bug.
...
Return the proper amount.
2001-04-24 22:10:41 +00:00
foobar
8a26918ed1
Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
...
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00
Sterling Hughes
ad8fd43e10
remove some unneccessary casts, remove unneccessary error casts, standardize
...
the coding format for some of the stuff.
2001-03-20 21:30:42 +00:00
Sterling Hughes
9b4c5db8ae
Remove some unnecessary error checking
2001-03-20 01:46:41 +00:00
foobar
499b63a354
If AC_CHECK_LIB fails, assume that --with-openssl is needed
2001-03-11 00:49:16 +00:00
Sterling Hughes
d1fdea8373
add a warn not available for curl_getinfo().
...
remove unneccessary error checking.
2001-03-03 01:06:55 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
foobar
2c3b7385bf
Fixed a typo in constant definitions and a possible crash in curl_setopt().
...
# pr: #9181
2001-02-16 14:31:37 +00:00
Sterling Hughes
2f0238dc4e
Change e-mail address
...
# Can I get someone to change my cvsusers e-mail address to
# sterling@designmultimedia.com ?
2001-02-15 16:20:13 +00:00
Sterling Hughes
0e6fe30139
Make daniel's changes work in ZTS mode...
2001-01-12 10:49:38 +00:00
Daniel Beulshausen
490cca07de
take out emtpy struct
...
# vc chokes on them
2001-01-12 10:26:29 +00:00
foobar
d52824c42d
Fix pr #8305 .
2001-01-03 16:07:55 +00:00
Zeev Suraski
aa6d2ac5d0
Heads up people!
...
Updated the get_current_key() API - the relevant authors, please take
a look at the updated code and make sure it's ok...
2000-12-22 12:57:09 +00:00
Stanislav Malyshev
62f626b157
Kill warning
2000-12-13 09:44:06 +00:00
foobar
9eaddc999d
Fixed bug #8145
2000-12-07 11:01:32 +00:00
Sterling Hughes
2d322a13a2
close the filehandle if it is a tempfile.
2000-12-04 15:05:23 +00:00
foobar
f03b949134
Revert bad commit.
...
# And now I'm ready to sleep..
2000-11-23 16:31:58 +00:00
foobar
78ed6e831f
Fixed some compile warnings.
2000-11-23 15:57:24 +00:00
Stanislav Malyshev
b36afe2957
Fix memory leaks in cURL.
...
cURL doesn't free strings we pass to him, so let PHP do it.
2000-11-22 15:46:13 +00:00
Sterling Hughes
a56c9f8e68
Hmmm, that wasn't good.
2000-11-22 15:19:59 +00:00
Hartmut Holzgraefe
1f6878e912
2nd step towards auto-credits
2000-11-20 10:33:33 +00:00
foobar
1f71f1f3c0
Remove duplicates (when curl-7.4.1 is used).
2000-11-09 02:11:45 +00:00
Sterling Hughes
ea9ac669da
Fix the other part...
2000-11-05 17:22:05 +00:00
Sterling Hughes
f25ccb0a83
This should fix the garbage.
2000-11-05 17:14:16 +00:00
Stanislav Malyshev
41a2b59977
Fix crash from #7577 (torben@php.net)
2000-11-05 16:25:26 +00:00
Sterling Hughes
70f262d0c5
New e-mail address.
2000-10-27 19:10:23 +00:00
Andrei Zmievski
f1dcb32c9f
Use zend_register_list_destructors_ex() instead.
2000-10-25 17:44:02 +00:00
foobar
7ef3e414e2
Makes curl extension compile again plus some typo fixes.
2000-10-22 17:29:33 +00:00
Andrei Zmievski
7b4983c8f8
Mega-patch to get better resource information for modules.
...
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
* Switched register_list_destructors() to use
zend_register_list_destructors_ex() instead
* Updated all relevant modules to provide the resource type name
to register_list_destructors() call
* Updated var_dump() to output resource type name instead of number
@- Made resource type names visible, e.g. var_dump() and
@ get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Sterling Hughes
6b8faeb1f2
Fix CURLOPT_REFERER.
...
@ Added the curl_getinfo() function to find out information about a CURL
transfer. This function requires cURL 4.0 or above. (Sterling)
@ Added the CURLOPT_KRB4, CURLOPT_INTERFACE, CURLOPT_QUOTE,
CURLOPT_POSTQUOTE, CURLOPT_QUOTE and CURLOPT_HTTPPROXYTUNNELL options.
(Sterling)
2000-10-20 04:57:14 +00:00
Rasmus Lerdorf
b189759bcd
Clean up the alignment of configure --help output
2000-10-02 17:36:01 +00:00
Sterling Hughes
82070f1cdf
Tiny change in copying of buffer.
2000-10-02 04:55:26 +00:00
Sterling Hughes
36dc3e1c20
@ Added the ability for CURLOPT_POSTFIELDS to accept an array of HTTP post
...
parameters. (Sterling)
@ Added the CURLOPT_HTTPHEADER option that allows for the posting of HTTP
headers to a remote site from cURL. (Sterling)
@ Add the curl_error() and curl_errno() functions. (Sterling)
Buncha other changes...
- Changed if () else if () in curl_setopt to switch .. case
- Fixed a couple crashes in certain cases.
- Finally a decent error reporting scheme.
- A few formatting changes.
2000-09-30 03:09:54 +00:00
Daniel Beulshausen
b8dabd3fb8
removed redefines
2000-09-26 12:05:37 +00:00
Daniel Beulshausen
77e7617654
cleanup, added configurations for ssl as well
2000-09-26 11:51:31 +00:00
Sterling Hughes
d44d114b75
@- Fix bug with curl places extra data in the output. (medvitz@medvitz.net)
2000-09-11 03:33:14 +00:00
Sterling Hughes
6e10dc5456
Fix up the implementation.
...
# it was getting hacky already.
2000-08-27 22:53:33 +00:00
Daniel Beulshausen
b6f0d041f9
deleted a few unnecceasary defines and added the Release_TS_Inline path to the libpath
2000-08-24 17:48:30 +00:00
Daniel Beulshausen
2ec7ccdf4c
win32 projectfile for the curl extension
2000-08-23 16:18:28 +00:00
Sterling Hughes
cd599d17c0
Bunch o' changes..
...
- Add the ability to return the web page into a variable
by setting the CURLOPT_RETURNTRANSFER constant to 1.
- Make everything conform to the naming guidelines.
- Delete the resource id from the file_id table when a
resource is closed.
2000-08-20 08:28:00 +00:00
Sterling Hughes
c80f2bcba2
Purely cosmetic.
2000-08-18 13:24:00 +00:00
Andi Gutmans
056401fa6c
- It should be #ifdef PHP_WIN32
2000-08-17 04:05:57 +00:00
Sterling Hughes
8a8b5dacc6
ts issues.
2000-08-17 02:14:41 +00:00
Sterling Hughes
185f6e95d8
Leftovers...
2000-08-15 17:03:48 +00:00