summaryrefslogtreecommitdiff
path: root/ext/curl/php_curl.h
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2000-08-27 22:53:33 +0000
committerSterling Hughes <sterling@php.net>2000-08-27 22:53:33 +0000
commit6e10dc54566ad8c2954547b0942d1969adbab47a (patch)
tree532e289b96307274291835ad6f7b2c1b2f20ebb2 /ext/curl/php_curl.h
parentfc3acfc4d5e435d9843b3b7c3327b3b4e1d189a0 (diff)
downloadphp-git-6e10dc54566ad8c2954547b0942d1969adbab47a.tar.gz
Fix up the implementation.
# it was getting hacky already.
Diffstat (limited to 'ext/curl/php_curl.h')
-rw-r--r--ext/curl/php_curl.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/ext/curl/php_curl.h b/ext/curl/php_curl.h
index 20bf2643e7..d3abd8832c 100644
--- a/ext/curl/php_curl.h
+++ b/ext/curl/php_curl.h
@@ -28,6 +28,8 @@
#if HAVE_CURL
+#include <curl/curl.h>
+
extern zend_module_entry curl_module_entry;
#define curl_module_ptr &curl_module_entry
@@ -88,16 +90,15 @@ PHP_FUNCTION(curl_close);
#define C_LAST 45
#define CURLOPT_RETURNTRANSFER 500
-struct curl_file_id_table {
- int id;
+typedef struct {
int return_transfer;
- int output_to_file;
- struct curl_file_id_table *next;
-};
+ int output_file;
+ int php_stdout;
+ CURL *cp;
+} php_curl;
typedef struct {
int le_curl;
- struct curl_file_id_table *output_node, *output_previous, output_start;
} php_curl_globals;
#ifdef ZTS