diff options
| author | Sterling Hughes <sterling@php.net> | 2000-08-20 08:28:00 +0000 | 
|---|---|---|
| committer | Sterling Hughes <sterling@php.net> | 2000-08-20 08:28:00 +0000 | 
| commit | cd599d17c0419f4a1e5836b5cb9a36614a9f87c8 (patch) | |
| tree | 541f211dfcf908242c2c48ee2c29811a6f5b7a1c /ext/curl/php_curl.h | |
| parent | 9e6e64955fb87342ea40a18f9c87cf328126c81f (diff) | |
| download | php-git-cd599d17c0419f4a1e5836b5cb9a36614a9f87c8.tar.gz | |
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.
Diffstat (limited to 'ext/curl/php_curl.h')
| -rw-r--r-- | ext/curl/php_curl.h | 8 | 
1 files changed, 5 insertions, 3 deletions
| diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h index 42fdde997a..20bf2643e7 100644 --- a/ext/curl/php_curl.h +++ b/ext/curl/php_curl.h @@ -86,21 +86,23 @@ PHP_FUNCTION(curl_close);  #define CE_BAD_FUNCTION_ARGUMENT 43  #define CE_BAD_CALLING_ORDER 44  #define C_LAST 45 +#define CURLOPT_RETURNTRANSFER 500  struct curl_file_id_table {  	int id; +	int return_transfer; +	int output_to_file;  	struct curl_file_id_table *next;  };  typedef struct { -	int use_file;  	int le_curl; -	struct curl_file_id_table *output_node, output_start; +	struct curl_file_id_table *output_node, *output_previous, output_start;  } php_curl_globals;  #ifdef ZTS  #define CURLG(v) (curl_globals->v) -#define CURLLS_FETCH() php_curl_globals *curl_globals = ts_resource(gd_curl_id) +#define CURLLS_FETCH() php_curl_globals *curl_globals = ts_resource(curl_globals_id)  #else  #define CURLG(v) (curl_globals.v)  #define CURLLS_FETCH() | 
