From:
Operating system:
PHP version: 5.3.3
Package: *General Issues
Bug Type: Bug
Bug description:ext/curl/tests/curl_multi_getcontent_basic3.phpt broken due
php.net/robots.txt
Description:
------------
ext/curl/tests/curl_multi_getcontent_basic3.phpt test is broken due
php.net/robots.txt content change.
Test script:
---------------
test with --show-all
=====================================================================
PHP : /home/users/glen/rpm/BUILD.i686-linux/php-5.3.3/sapi/cli/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 : /home/users/glen/rpm/BUILD.i686-linux/php-5.3.3/tmp-php.ini
More .INIs :
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_multi_getcontent_basic3.phpt]
========SKIP========
<?php
if (!extension_loaded('curl')) print 'skip';
?>
========DONE========
========TEST========
<?php
//CURL_MULTI_GETCONTENT TEST
//CREATE RESOURCES
$ch1=curl_init();
$ch2=curl_init();
//SET URL AND OTHER OPTIONS
curl_setopt($ch1, CURLOPT_URL, "http://php.net/robots.txt");
curl_setopt($ch2, CURLOPT_URL,
"file://".dirname(__FILE__)."/curl_testdata2.txt");
curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
//CREATE MULTIPLE CURL HANDLE
$mh=curl_multi_init();
//ADD THE 2 HANDLES
curl_multi_add_handle($mh,$ch1);
curl_multi_add_handle($mh,$ch2);
//EXECUTE
$running=0;
do {
curl_multi_exec($mh,$running);
} while ($running>0);
$results1=curl_multi_getcontent($ch1);
$results2=curl_multi_getcontent($ch2);
//CLOSE
curl_multi_remove_handle($mh,$ch1);
curl_multi_remove_handle($mh,$ch2);
curl_multi_close($mh);
echo $results1;
echo $results2;
?>
========DONE========
========OUT========
User-agent: *
Disallow: /backend/
Disallow: /distributions/
Disallow: /stats/
Disallow: /source.php
Disallow: /search.php
Disallow: /mod.php
Disallow: /manual/add-note.php
Disallow: /harming/humans
Disallow: /ignoring/human/orders
Disallow: /harm/to/self
CURL2
========DONE========
========EXP========
User-agent: *
Disallow: /backend/
Disallow: /distributions/
Disallow: /stats/
Disallow: /source.php
Disallow: /search.php
Disallow: /mod.php
Disallow: /manual/add-note.php
CURL2
========DONE========
========DIFF========
009+
010+ Disallow: /harming/humans
011+ Disallow: /ignoring/human/orders
012+ Disallow: /harm/to/self
013+
========DONE========
FAIL Curl_multi_getcontent() basic test with different sources (local
file/http) [ext/curl/tests/curl_multi_getcontent_basic3.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 : 1 seconds
=====================================================================
=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Curl_multi_getcontent() basic test with different sources (local file/http)
[ext/curl/tests/curl_multi_getcontent_basic3.phpt]
=====================================================================
make: [test] Error 1 (ignored)
--
Edit bug report at http://bugs.php.net/bug.php?id=52533&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52533&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52533&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=52533&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52533&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=52533&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52533&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=52533&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=52533&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=52533&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=52533&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=52533&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=52533&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=52533&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52533&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52533&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=52533&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=52533&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=52533&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=52533&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=52533&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=52533&r=mysqlcfg