From:
Operating system: PLD Linux
PHP version: 5.3.3
Package: cURL related
Bug Type: Bug
Bug description:ext/curl/tests/curl_error_basic.phpt fail
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]
=====================================================================
--
Edit bug report at http://bugs.php.net/bug.php?id=52448&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52448&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52448&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52448&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52448&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52448&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52448&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52448&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52448&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52448&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52448&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52448&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52448&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52448&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52448&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52448&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52448&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52448&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52448&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52448&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52448&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52448&r=mysqlcfg