File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 23
23
#include "Zend/zend_interfaces.h"
24
24
#include "php_curl.h"
25
25
#include "curl_file_arginfo.h"
26
- #if HAVE_CURL
26
+ #ifdef HAVE_CURL
27
27
28
28
PHP_CURL_API zend_class_entry * curl_CURLFile_class ;
29
29
Original file line number Diff line number Diff line change 22
22
23
23
#include "php.h"
24
24
25
- #if HAVE_CURL
25
+ #ifdef HAVE_CURL
26
26
27
27
#include <stdio.h>
28
28
#include <string.h>
@@ -1722,7 +1722,7 @@ static void _php_curl_set_default_options(php_curl *ch)
1722
1722
curl_easy_setopt (ch -> cp , CURLOPT_INFILE , (void * ) ch );
1723
1723
curl_easy_setopt (ch -> cp , CURLOPT_HEADERFUNCTION , curl_write_header );
1724
1724
curl_easy_setopt (ch -> cp , CURLOPT_WRITEHEADER , (void * ) ch );
1725
- #if !defined( ZTS )
1725
+ #ifndef ZTS
1726
1726
curl_easy_setopt (ch -> cp , CURLOPT_DNS_USE_GLOBAL_CACHE , 1 );
1727
1727
#endif
1728
1728
curl_easy_setopt (ch -> cp , CURLOPT_DNS_CACHE_TIMEOUT , 120 );
@@ -1736,7 +1736,7 @@ static void _php_curl_set_default_options(php_curl *ch)
1736
1736
curl_easy_setopt (ch -> cp , CURLOPT_CAINFO , cainfo );
1737
1737
}
1738
1738
1739
- #if defined( ZTS )
1739
+ #ifdef ZTS
1740
1740
curl_easy_setopt (ch -> cp , CURLOPT_NOSIGNAL , 1 );
1741
1741
#endif
1742
1742
}
Original file line number Diff line number Diff line change 22
22
23
23
#include "php.h"
24
24
25
- #if HAVE_CURL
25
+ #ifdef HAVE_CURL
26
26
27
27
#include "php_curl.h"
28
28
Original file line number Diff line number Diff line change 26
26
#define HAVE_CURL 1
27
27
#endif
28
28
29
- #if HAVE_CURL
29
+ #ifdef HAVE_CURL
30
30
31
31
#define PHP_CURL_DEBUG 0
32
32
Original file line number Diff line number Diff line change 22
22
23
23
#include "php.h"
24
24
25
- #if HAVE_CURL
25
+ #ifdef HAVE_CURL
26
26
27
27
#include "php_curl.h"
28
28
You can’t perform that action at this time.
0 commit comments