#include "Zend/zend_interfaces.h"
#include "php_curl.h"
#include "curl_file_arginfo.h"
-#ifdef HAVE_CURL
PHP_CURL_API zend_class_entry *curl_CURLFile_class;
zend_declare_property_string(curl_CURLFile_class, "mime", sizeof("mime")-1, "", ZEND_ACC_PUBLIC);
zend_declare_property_string(curl_CURLFile_class, "postname", sizeof("postname")-1, "", ZEND_ACC_PUBLIC);
}
-
-#endif
#include "Zend/zend_interfaces.h"
#include "Zend/zend_exceptions.h"
-#ifdef HAVE_CURL
-
#include <stdio.h>
#include <string.h>
RETURN_LONG(curl_easy_pause(ch->cp, bitmask));
}
/* }}} */
-
-#endif /* HAVE_CURL */
#include "php.h"
#include "Zend/zend_interfaces.h"
-#ifdef HAVE_CURL
-
#include "php_curl.h"
#include <curl/curl.h>
curl_multi_handlers.clone_obj = NULL;
curl_multi_handlers.cast_object = curl_cast_object;
}
-
-#endif
#include "php.h"
#include "zend_smart_str.h"
-#ifdef COMPILE_DL_CURL
-#undef HAVE_CURL
-#define HAVE_CURL 1
-#endif
-
-#ifdef HAVE_CURL
-
#define PHP_CURL_DEBUG 0
#ifdef PHP_WIN32
#include <curl/multi.h>
extern zend_module_entry curl_module_entry;
-#define curl_module_ptr &curl_module_entry
+#define phpext_curl_ptr &curl_module_entry
#define CURLOPT_RETURNTRANSFER 19913
#define CURLOPT_BINARYTRANSFER 19914 /* For Backward compatibility */
PHP_CURL_API extern zend_class_entry *curl_CURLFile_class;
-#else
-#define curl_module_ptr NULL
-#endif /* HAVE_CURL */
-#define phpext_curl_ptr curl_module_ptr
#endif /* _PHP_CURL_H */
#include "php.h"
#include "Zend/zend_interfaces.h"
-#ifdef HAVE_CURL
-
#include "php_curl.h"
#include <curl/curl.h>
curl_share_handlers.get_constructor = curl_share_get_constructor;
curl_share_handlers.clone_obj = NULL;
}
-
-#endif
#include "php.h"
#include "ext/standard/file.h"
-#ifdef HAVE_EXIF
-
/* When EXIF_DEBUG is defined the module generates a lot of debug messages
* that help understanding what is going on. This can and should be used
* while extending the module as it shows if you are at the right position.
}
}
/* }}} */
-
-#endif
+----------------------------------------------------------------------+
*/
-#ifdef HAVE_EXIF
-
#include "php_version.h"
#define PHP_EXIF_VERSION PHP_VERSION
extern zend_module_entry exif_module_entry;
#define phpext_exif_ptr &exif_module_entry
-
-#endif
#include "php.h"
-#ifdef HAVE_FTP
-
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
return PHP_FTP_FAILED;
}
/* }}} */
-
-#endif /* HAVE_FTP */
#ifndef _INCLUDED_FTP_H
#define _INCLUDED_FTP_H
-#ifdef HAVE_FTP
-
extern zend_module_entry php_ftp_module_entry;
-#define php_ftp_module_ptr &php_ftp_module_entry
+#define phpext_ftp_ptr &php_ftp_module_entry
#include "php_version.h"
#define PHP_FTP_VERSION PHP_VERSION
PHP_MINIT_FUNCTION(ftp);
PHP_MINFO_FUNCTION(ftp);
-#define phpext_ftp_ptr php_ftp_module_ptr
-
-#else
-#define php_ftp_module_ptr NULL
-#endif /* HAVE_FTP */
-
#endif