mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
MFH: missing part of the fix for #38844
This commit is contained in:
parent
fcf4f87919
commit
c40975eda5
@ -108,6 +108,12 @@ if test "$PHP_CURL" != "no"; then
|
||||
$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
|
||||
])
|
||||
|
||||
PHP_CHECK_LIBRARY(curl,curl_multi_strerror,
|
||||
[
|
||||
AC_DEFINE(HAVE_CURL_MULTI_STRERROR,1,[ ])
|
||||
],[],[
|
||||
$CURL_LIBS -L$CURL_DIR/$PHP_LIBDIR
|
||||
])
|
||||
|
||||
if test "$PHP_CURLWRAPPERS" != "no" ; then
|
||||
AC_DEFINE(PHP_CURL_URL_WRAPPERS,1,[ ])
|
||||
|
@ -434,7 +434,11 @@ php_stream *php_curl_stream_opener(php_stream_wrapper *wrapper, char *filename,
|
||||
}
|
||||
|
||||
if (m != CURLM_OK) {
|
||||
#if HAVE_CURL_MULTI_STRERROR
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", curl_multi_strerror(m));
|
||||
#else
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "There was an error mcode=%d", m);
|
||||
#endif
|
||||
php_stream_close(stream);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user