mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Remove some unnecessary HAVE_EXTNAME guards
A recurring pattern in old extension: Putting the whole source code behind HAVE_EXTNAME. This is pointless, as the code is only compiled if the extension is enabled. This removes a couple of them, but not all.
This commit is contained in:
parent
8e05c44496
commit
d1ac7e3ab1
9 changed files with 2 additions and 48 deletions
|
@ -21,13 +21,6 @@
|
|||
#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
|
||||
|
@ -45,7 +38,7 @@
|
|||
#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 */
|
||||
|
@ -180,8 +173,4 @@ int curl_cast_object(zend_object *obj, zval *result, int type);
|
|||
|
||||
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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue