Bug #52448 [Bgs]: ext/curl/tests/curl_error_basic.phpt fail
| From: | glen at delfi dot ee | Date: | Sat, 05 Nov 2011 20:47:52 +0000 |
| Subject: | Bug #52448 [Bgs]: ext/curl/tests/curl_error_basic.phpt fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-164909@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52448&edit=1
ID: 52448
User updated by: glen at delfi dot ee
Reported by: glen at delfi dot ee
Summary: ext/curl/tests/curl_error_basic.phpt fail
Status: Bogus
Type: Bug
Package: cURL related
-Operating System: PLD Linux
+Operating System:
PHP Version: 5.3.3
Block user comment: N
Private report: N
New Comment:
ok, seems somebody finally wake up and commited the fix:
http://svn.php.net/viewvc/php/php-src/trunk/ext/curl/tests/curl_error_basic.phpt?
r1=296679&r2=315940
Previous Comments:
------------------------------------------------------------------------
[2011-08-23 07:01:16] glen at delfi dot ee
nothing is fixed, the patch i proposed still can be applied
and if you looked at the bugreport, the error is dependant on curl library
version, so if you want to depend on curl library output strings, you should be
handling different curl version outputs
please DO READ the previous notes what the bug is about, DO READ the proposed
patch
yet here i can't unmark "bogus" of the bug
------------------------------------------------------------------------
[2011-03-21 12:28:50] cataphract@php.net
Assuming it is already fixed as nothing shows up in http://gcov.php.net/viewer.php?version=PHP_5_3&func=tests.
------------------------------------------------------------------------
[2010-07-27 10:15:00] glen at delfi dot ee
to further illustrate that the error cames from curl library and is dependant on
curl library version:
$ curl fakeURL
curl: (6) Couldn't resolve host 'fakeURL'
$ curl --version
curl 7.18.2 (i686-pld-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.7m zlib/1.2.4
libidn/1.10 libssh2/0.18
Protocols: tftp ftp telnet dict ldap http file https ftps scp sftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
$ curl fakeURL
curl: (6) Could not resolve host: fakeURL (Domain name not found)
$ curl --version
curl 7.21.0 (x86_64-pld-linux-gnu) libcurl/7.21.0 GnuTLS/2.10.0 zlib/1.2.5 c-
ares/1.6.0 libidn/1.19 libssh2/1.2.5 librtmp/2.2e
Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtmp
rtsp scp sftp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM SSL libz
------------------------------------------------------------------------
[2010-07-27 10:09:27] glen at delfi dot ee
this concrete test test for library error code when trying to connect to
unresolvable host. plz look the test code.
and library error string pattern has changed, so either it must be updated (like
i suggested a patch), or make it support various error formats.
i.e the link you gave suggested how to setup webserver for tests, but this test
does not connect to test webserver!
------------------------------------------------------------------------
[2010-07-27 04:34:58] srinatar@php.net
pl. look at the test script carefully. there is instruction on how to run this test script and also
available at http://wiki.php.net/qa/temp/ext/curl
if this convinces u ,pl. move this bug to bogus.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=52448
--
Edit this bug report at https://bugs.php.net/bug.php?id=52448&edit=1