Skip to content

Commit

Permalink
Add CURL_WRAPPERS_ENABLE constant
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Apr 3, 2013
1 parent 7b07d05 commit d7f709a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Expand Up @@ -5,6 +5,9 @@ PHP NEWS
. Fixed bug #64433 (follow_location parameter of context is ignored for most
response codes). (Sergey Akbarov)

- CURL
. Add CURL_WRAPPERS_ENABLE constant. (Laruence)

?? ??? 2013, PHP 5.4.14
- Core:
. Fixed bug #64529 (Ran out of opcode space). (Dmitry)
Expand Down
3 changes: 3 additions & 0 deletions ext/curl/interface.c
Expand Up @@ -914,6 +914,7 @@ PHP_MINIT_FUNCTION(curl)
}

#ifdef PHP_CURL_URL_WRAPPERS
REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLE", 1, CONST_CS | CONST_PERSISTENT);
# if HAVE_CURL_VERSION_INFO
{
curl_version_info_data *info = curl_version_info(CURLVERSION_NOW);
Expand All @@ -940,6 +941,8 @@ PHP_MINIT_FUNCTION(curl)
php_unregister_url_stream_wrapper("ldap");
php_register_url_stream_wrapper("ldap", &php_curl_wrapper TSRMLS_CC);
# endif
#else
REGISTER_LONG_CONSTANT("CURL_WRAPPERS_ENABLE", 0, CONST_CS | CONST_PERSISTENT);
#endif

return SUCCESS;
Expand Down

0 comments on commit d7f709a

Please sign in to comment.