mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
d6c05c6cd1
Current run-tests.php script produces the `*.php` files from the *.phpt. So all *.php files in tests folders are ignored by Git. To avoid confusion and to for bettere consistency this patch renames two remaining tests/*/*.php files to *.inc and *.phar as current practice in *.phpt files. - The `ext/curl/tests/resonder/get.php` to .inc extension - The `ext/phar/tests/files/pear2coverage.phar.php` to .phar extension
27 lines
555 B
PHP
27 lines
555 B
PHP
--TEST--
|
|
Test curl_copy_handle() with CURLOPT_PROGRESSFUNCTION
|
|
--SKIPIF--
|
|
<?php include 'skipif.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
include 'server.inc';
|
|
$host = curl_cli_server_start();
|
|
|
|
$url = "{$host}/get.inc";
|
|
$ch = curl_init($url);
|
|
|
|
curl_setopt($ch, CURLOPT_NOPROGRESS, 0);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_setopt($ch, CURLOPT_PROGRESSFUNCTION, function() { });
|
|
$ch2 = curl_copy_handle($ch);
|
|
echo curl_exec($ch), PHP_EOL;
|
|
unset($ch);
|
|
echo curl_exec($ch2);
|
|
|
|
?>
|
|
--EXPECT--
|
|
Hello World!
|
|
Hello World!
|
|
Hello World!
|
|
Hello World!
|