~ubuntu-branches/ubuntu/quantal/php5/quantal-proposed

« back to all changes in this revision

Viewing changes to ext/curl/tests/curl_multi_getcontent_basic3.phpt

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-16 03:17:18 UTC
  • mfrom: (1.1.23) (0.3.41 sid)
  • Revision ID: package-import@ubuntu.com-20120216031718-v0cy98ben10nljri
Tags: 5.3.10-1ubuntu1
* Merge from Debian testing.  Remaining changes:
  - d/control: build-depend on mysql 5.5 instead of 5.1 for running tests.
  - d/setup-mysql.sh: modify to work with mysql 5.5 differences
  - debian/rules: export DEB_HOST_MULTIARCH properly.
  - Only build php5-sqlite for sqlite3, dropping the obsolete sqlite2.
  - Add build-dependency on lemon, which we now need.
  - Dropped firebird2.1-dev, libc-client-dev, libmcrypt-dev as it is in universe.
  - Dropped libcurl-dev not in the archive.
  - debian/control: replace build-depends on mysql-server with
    mysql-server-core-5.5 and mysql-client-5.5 to avoid upstart and
    mysql-server-5.5 postinst confusion with starting up multiple
    mysqlds listening on the same port.
  - Dropped php5-imap, php5-interbase, php5-mcrypt since we have versions
    already in universe.
  - Suggest php5-suhosin rather than recommends.
  - Dropped libonig-dev and libqgdbm since its in universe. (libonig MIR
    has been declined due to an inactive upstream. So this is probably
    a permanent change).
  - modulelist: Drop imap, interbase, sybase, and mcrypt.
  - debian/rules:
    * Dropped building of mcrypt, imap, and interbase.
    * Install apport hook for php5.
    * stop mysql instance on clean just in case we failed in tests
  - debian/control: Recommend php5-dev for php-pear.
* Dropped Changes:
  - d/patches/CVE-2011-4566.patch: Applied upstream
  - debian/rules: --enable-pcntl for cgi as well. (Applied in Debian)
* d/rules: enable Suhosin patch with PHP5_SUHOSIN=yes
* d/NEWS: add note explaining that SUHOSIN *is* enabled in the Ubuntu
  package.
* d/rules: Simplify apache config settings since we never build 
  interbase or firebird.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
#TestFest Utrecht 20090509
6
6
--SKIPIF--
7
7
<?php
8
 
if (!extension_loaded('curl')) print 'skip';
 
8
if (!extension_loaded('curl')) print 'skip need ext/curl';
 
9
if (false === getenv('PHP_CURL_HTTP_REMOTE_SERVER'))  {
 
10
        exit("skip PHP_CURL_HTTP_REMOTE_SERVER env variable is not defined");
 
11
}
9
12
?>
10
13
--FILE--
11
14
<?php
16
19
        $ch2=curl_init();
17
20
 
18
21
        //SET URL AND OTHER OPTIONS
19
 
        curl_setopt($ch1, CURLOPT_URL, "http://php.net/robots.txt");
 
22
        $host = getenv('PHP_CURL_HTTP_REMOTE_SERVER');
 
23
        curl_setopt($ch1, CURLOPT_URL, "{$host}/get.php?test=getpost&get_param=Hello%20World");
20
24
        curl_setopt($ch2, CURLOPT_URL, "file://".dirname(__FILE__). DIRECTORY_SEPARATOR . "curl_testdata2.txt");
21
25
        curl_setopt($ch1, CURLOPT_RETURNTRANSFER, true);
22
26
        curl_setopt($ch2, CURLOPT_RETURNTRANSFER, true);
46
50
        echo $results2;
47
51
 
48
52
?>
49
 
--EXPECT--
50
 
User-agent: *
51
 
Disallow: /backend/
52
 
Disallow: /distributions/
53
 
Disallow: /stats/
54
 
Disallow: /source.php
55
 
Disallow: /search.php
56
 
Disallow: /mod.php
57
 
Disallow: /manual/add-note.php
58
 
 
59
 
Disallow: /harming/humans
60
 
Disallow: /ignoring/human/orders
61
 
Disallow: /harm/to/self
62
 
 
 
53
--EXPECTF--
 
54
array(2) {
 
55
  ["test"]=>
 
56
  string(7) "getpost"
 
57
  ["get_param"]=>
 
58
  string(11) "Hello World"
 
59
}
 
60
array(0) {
 
61
}
63
62
CURL2
64