]> granicus.if.org Git - php/commitdiff
- Bug #51629, CURLOPT_FOLLOWLOCATION error message is misleading
authorPierre Joye <pajoye@php.net>
Thu, 22 Apr 2010 08:58:07 +0000 (08:58 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 22 Apr 2010 08:58:07 +0000 (08:58 +0000)
NEWS
ext/curl/interface.c

diff --git a/NEWS b/NEWS
index bef365400d2c2f8aeaae306d923f87f43371a0e2..bc868dcd9fc7ce8795ad20b797dc39d68c8ceb84 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,8 @@ PHP                                                                        NEWS
 - Fixed a NULL pointer dereference when processing invalid XML-RPC
   requests (Fixes CVE-2010-0397, bug #51288). (Raphael Geissert)
 
+- Fixed bug #51629 (CURLOPT_FOLLOWLOCATION error message is misleading).
+  (Pierre)
 - Fixed bug #51617 (PDO PGSQL still broken against PostGreSQL < 7.4).
   (Felipe, wdierkes at 5dollarwhitebox dot org)
 - Fixed bug #51615 (PHP crash with wrong HTML in SimpleXML). (Felipe)
index 34402d979c2a0ad0877e14c0df1b72cc6251b7f9..939168f3af53fd85ed6ebf5a3a158360ef3ed5e0 100644 (file)
@@ -1386,7 +1386,7 @@ static int _php_curl_setopt(php_curl *ch, long option, zval **zvalue, zval *retu
                        convert_to_long_ex(zvalue);
                        if ((PG(open_basedir) && *PG(open_basedir)) || PG(safe_mode)) {
                                if (Z_LVAL_PP(zvalue) != 0) {
-                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set");
+                                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set");
                                        RETVAL_FALSE;
                                        return 1;
                                }