|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug-52448.patch (last revision 2010-07-26 18:04 UTC by glen at delfi dot ee)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-27 04:34 UTC] srinatar@php.net
[2010-07-27 10:09 UTC] glen at delfi dot ee
[2010-07-27 10:15 UTC] glen at delfi dot ee
[2010-12-20 12:07 UTC] jani@php.net
-Package: Tidy
+Package: cURL related
[2011-03-21 12:28 UTC] cataphract@php.net
-Status: Open
+Status: Bogus
[2011-03-21 12:28 UTC] cataphract@php.net
[2011-08-23 07:01 UTC] glen at delfi dot ee
[2011-11-05 20:47 UTC] glen at delfi dot ee
-Operating System: PLD Linux
+Operating System:
[2011-11-05 20:47 UTC] glen at delfi dot ee
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 12:00:01 2025 UTC |
Description: ------------ the curl library error string has changed, trivial patch fixes that tested with curl version = 7.21.0 ========DIFF======== 002+ Error: Could not resolve host: fakeURL (Domain name not found) 002- Error: Couldn't resolve host 'fakeURL' Test script: --------------- $ TEST_PHP_EXECUTABLE=$(which php) php run-tests.php --show-all ext/curl/tests/curl_error_basic.phpt ===================================================================== PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.3.3 ZEND_VERSION: 2.3.0 PHP_OS : Linux - Linux carme-pld-i686 2.6.34.1-3 #1 SMP Tue Jul 6 16:15:11 CEST 2010 i686 INI actual : /etc/php/php-cli.ini More .INIs : /etc/php/conf.d/PCRE.ini,/etc/php/conf.d/SPL.ini,/etc/php/conf.d/bcmath.ini,/etc/php/conf.d/bz2.ini,/etc/php/conf.d/calendar.ini,/etc/php/conf.d/ctype.ini,/etc/php/conf.d/curl.ini,/etc/php/conf.d/dba.ini,/etc/php/conf.d/dom.ini,/etc/php/conf.d/ftp.ini,/etc/php/conf.d/gd.ini,/etc/php/conf.d/gettext.ini,/etc/php/conf.d/iconv.ini,/etc/php/conf.d/imap.ini,/etc/php/conf.d/ldap.ini,/etc/php/conf.d/mbstring.ini,/etc/php/conf.d/mcrypt.ini,/etc/php/conf.d/mysql.ini,/etc/php/conf.d/openssl.ini,/etc/php/conf.d/pgsql.ini,/etc/php/conf.d/posix.ini,/etc/php/conf.d/simplexml.ini,/etc/php/conf.d/soap.ini,/etc/php/conf.d/sockets.ini,/etc/php/conf.d/tidy.ini,/etc/php/conf.d/xml.ini,/etc/php/conf.d/xmlrpc.ini,/etc/php/conf.d/zlib.ini CWD : /home/users/glen/rpm/BUILD.i686-linux/php-5.3.3 Extra dirs : VALGRIND : Not used ===================================================================== Running selected tests. TEST 1/1 [ext/curl/tests/curl_error_basic.phpt] ========SKIP======== <?php if (!extension_loaded("curl")) print "skip"; ?> ========DONE======== ========TEST======== <?php /* * Prototype: string curl_error(resource $ch) * Description: Returns a clear text error message for the last cURL operation. * Source: ext/curl/interface.c * Documentation: http://wiki.php.net/qa/temp/ext/curl */ // Fake URL to trigger an error $url = "fakeURL"; echo "== Testing curl_error with a fake URL ==\n"; // cURL handler $ch = curl_init($url); ob_start(); // start output buffering curl_exec($ch); echo "Error: " . curl_error($ch); curl_close($ch); ?> ========DONE======== ========OUT======== == Testing curl_error with a fake URL == Error: Could not resolve host: fakeURL (Domain name not found) ========DONE======== ========EXP======== == Testing curl_error with a fake URL == Error: Couldn't resolve host 'fakeURL' ========DONE======== ========DIFF======== 002+ Error: Could not resolve host: fakeURL (Domain name not found) 002- Error: Couldn't resolve host 'fakeURL' ========DONE======== FAIL curl_error() function - basic test for curl_error using a fake url [ext/curl/tests/curl_error_basic.phpt] ===================================================================== Number of tests : 1 1 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 1 (100.0%) (100.0%) Expected fail : 0 ( 0.0%) ( 0.0%) Tests passed : 0 ( 0.0%) ( 0.0%) --------------------------------------------------------------------- Time taken : 0 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- curl_error() function - basic test for curl_error using a fake url [ext/curl/tests/curl_error_basic.phpt] =====================================================================