Trim trailing whitespace in *.phpt

This commit is contained in:
Peter Kokot 2018-10-14 18:03:31 +02:00
parent b0708fa2e7
commit d7a3edd45d
3238 changed files with 5500 additions and 5509 deletions

View file

@ -60,7 +60,7 @@ foreach ($scalar_variables as $scalar_var) {
// destroy the variable using unset
unset( $scalar_var );
// dump and see if its destroyed, expcted: NULL
// dump and see if its destroyed, expcted: NULL
var_dump( $scalar_var );
// check using isset to see if unset, expected: bool(false)
@ -106,11 +106,11 @@ foreach ($array_variables as $array_var) {
var_dump( isset($array_var['non_existent'], $array_var['none']) );
var_dump( empty($array_var['non_existent']) );
// testing empty and isset on arrays
// testing empty and isset on arrays
var_dump( empty($array_var) ); // expecting bool(false), except: array(), which is considered empty
var_dump( isset($array_var) ); // expecting bool(true), except: array(), which is not set
// get the keys of the $array_var
// get the keys of the $array_var
$keys = array_keys($array_var);
// unset each element in the array and see the working of unset, isset & empty
$inner_loop_counter = 1;
@ -130,7 +130,7 @@ foreach ($array_variables as $array_var) {
// calling empty, expected bool(true)
var_dump( empty($array_var[$key_val]) );
// dump the array to see that that array did not get modified
// dump the array to see that that array did not get modified
// because of using isset, empty and unset on its element
var_dump($array_var);
}
@ -184,11 +184,11 @@ foreach ($resources as $resource) {
// now the isset() with both the args as unset
var_dump( isset($resource, $temp_var) ); // expected: bool(false);
// dump the resource to see if there any effect on it
// dump the resource to see if there any effect on it
var_dump($resource);
}
// unset and dump the array containing all the resources to see that
// unset works correctly
// unset works correctly
unset($resources);
var_dump($resources);
var_dump( isset($resources) ); //expected: bool(false)
@ -215,8 +215,8 @@ class Point
}
$point1 = new Point(30,40);
// use unset/empty/isset to check the object
var_dump($point1); // dump the object
// use unset/empty/isset to check the object
var_dump($point1); // dump the object
// check the object and member that is not set
var_dump( isset($point1) ); // expected: bool(true)
@ -229,7 +229,7 @@ $point1->setLable("Point1");
var_dump( isset($point1->$lable) ); //expected: bool(true)
var_dump( empty($point1->$lable) ); //expected: bool(false)
// dump the object to see that obj was not harmed
// dump the object to see that obj was not harmed
// because of the usage of the isset & empty
var_dump($point1);
@ -270,11 +270,11 @@ var_dump($point2);
/* testing variation in operation for isset(), empty() & unset().
Note: Most of the variation for function unset() is testing by a
set of testcases named "Zend/tests/unset_cv??.phpt", only
set of testcases named "Zend/tests/unset_cv??.phpt", only
variation not tested are attempted here */
echo "\n*** Testing possible variation in operation for isset(), empty() & unset() ***\n";
/* unset() variation1: checking unset on static variable inside a function.
/* unset() variation1: checking unset on static variable inside a function.
* unset() destroys the variable only in the context of the rest of a function
* Following calls will restore the previous value of a variable.
*/
@ -286,14 +286,14 @@ function test_unset1() {
$static_var ++;
echo "value of static_var before unset: $static_var\n";
// check using isset and empty
// check using isset and empty
var_dump( isset($static_var) );
var_dump( empty($static_var) );
// unset the static var
unset($static_var);
echo "value of static_var after unset: $static_var\n";
// check using isset and empty
// check using isset and empty
var_dump( isset($static_var) );
var_dump( empty($static_var) );
@ -308,10 +308,10 @@ test_unset1();
echo "\n** Testing unset() variation 2: unset on a variable passed by ref. inside of a function **\n";
/* unset() variation2: Pass by reference
* If a variable that is PASSED BY REFERENCE is unset() inside of a function,
/* unset() variation2: Pass by reference
* If a variable that is PASSED BY REFERENCE is unset() inside of a function,
* only the local variable is destroyed. The variable in the calling environment
* will retain the same value as before unset() was called.
* will retain the same value as before unset() was called.
*/
function test_unset2( &$ref_val ) {
// unset the variable passed
@ -341,14 +341,14 @@ $global_var = 10;
function test_unset3() {
global $global_var;
// check the $global_var using isset and empty
// check the $global_var using isset and empty
var_dump( isset($global_var) );
var_dump( empty($global_var) );
// unset the global var
unset($global_var);
// check the $global_var using isset and empty
// check the $global_var using isset and empty
var_dump( isset($global_var) );
var_dump( empty($global_var) );
}

View file

@ -1,5 +1,5 @@
--TEST--
adding arrays to objects
adding arrays to objects
--FILE--
<?php

View file

@ -1,5 +1,5 @@
--TEST--
adding strings to arrays
adding strings to arrays
--FILE--
<?php

View file

@ -15,7 +15,7 @@ class SectionClass {
$this->Comment = $comment;
}
function __destruct() {
out($this->Comment); // this line doesn't crash PHP
out($this->Comment); // this line doesn't crash PHP
out("\n<!-- End Section: " . $this->Comment . "-->"); // this line
}
}

View file

@ -21,8 +21,8 @@ class foo
}
}
/* The following is a BC break with PHP 4 where it would
* call foo::fail. In PHP 5 we first evaluate static class
/* The following is a BC break with PHP 4 where it would
* call foo::fail. In PHP 5 we first evaluate static class
* properties and then do the function call.
*/
$method = 'foo_func';

View file

@ -22,9 +22,9 @@ $test2=array(
'typo3' =>'',
'php' =>'',
'cms' => ''
),
'conflicts' => array('' =>'')
),
),
'conflicts' => array('' =>'')
),
'authorname' => 'Mirko Balluff',
'authoremail' => 'balluff@amt1.de',
'ownerusername' => 'amt1',

View file

@ -5,7 +5,7 @@ opcache.enable_cli=0
--FILE--
<?php
class Foo
class Foo
{
public function __toString()
{

View file

@ -1,5 +1,5 @@
--TEST--
Bug #45742 Wrong class array inpretetion using constant indexes
Bug #45742 Wrong class array inpretetion using constant indexes
--FILE--
<?php
class Constants {

View file

@ -5,7 +5,7 @@ Olivier Doucet
--FILE--
<?php
/* Prototype : void restore_error_handler(void)
* Description: Restores the previously defined error handler function
* Description: Restores the previously defined error handler function
* Source code: Zend/zend_builtin_functions.c
* Alias to functions:
*/

View file

@ -7,7 +7,7 @@ function do_throw() {
throw new Exception();
}
class aa
class aa
{
function check()
{

View file

@ -11,8 +11,8 @@ class Test {
public function __construct() {
unset(
$this->publicProperty,
$this->protectedProperty,
$this->publicProperty,
$this->protectedProperty,
$this->privateProperty
);
}

View file

@ -8,7 +8,7 @@ set_error_handler(function($no, $msg) {
});
try {
if ($a === null) { // ZEND_VM_SMART_BRANCH
if ($a === null) { // ZEND_VM_SMART_BRANCH
undefined_function('Null');
}
} catch (Exception $e) {

View file

@ -37,7 +37,7 @@ $t[] = &$t;
unset($t); // This is used to trigger C::__destruct while doing gc_colloct_roots
$e = $a;
unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots will be called,
unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots will be called,
// but C::__destructor which is called in gc_colloct_roots will put $a into buf
// which will make $a be putted into gc roots buf twice
var_dump(gc_collect_cycles());

View file

@ -1,5 +1,5 @@
--TEST--
Bug #70914 zend_throw_or_error() format string vulnerability
Bug #70914 zend_throw_or_error() format string vulnerability
--SKIPIF--
<?php
if (!extension_loaded("pdo_sqlite")) {

View file

@ -15,7 +15,7 @@ function change_copy($copy) {
$data = [
'a' => [
'b' => [],
],
],
];
create_references($data);

Binary file not shown.

View file

@ -1,5 +1,5 @@
--TEST--
casting different variables to double
casting different variables to double
--INI--
precision=14
--FILE--

Binary file not shown.

Binary file not shown.

View file

@ -21,9 +21,9 @@ $const = __NAMESPACE__ .'\\foo'; // class
$const2 = __NAMESPACE__ .'\\Ifoo'; // interface
var_dump( foo,
\foo\foo,
namespace\foo,
\foo\foo::foo,
\foo\foo,
namespace\foo,
\foo\foo::foo,
$const::foo,
\foo,
constant('foo'),

View file

@ -1,5 +1,5 @@
--TEST--
debug_backtrace segmentation fault with include and error handler
debug_backtrace segmentation fault with include and error handler
--FILE--
<?php
class CLWrapper {

View file

@ -12,7 +12,7 @@ var_dump(a()[1][0]); // int(5)
function b() {
return array();
}
var_dump(b()[0]); // Notice: Undefined offset: 0
var_dump(b()[0]); // Notice: Undefined offset: 0
class foo {
public $y = 1;

View file

@ -1,5 +1,5 @@
--TEST--
errmsg: __unset() must take exactly 1 argument
errmsg: __unset() must take exactly 1 argument
--FILE--
<?php

View file

@ -1,5 +1,5 @@
--TEST--
errmsg: static abstract function
errmsg: static abstract function
--FILE--
<?php

View file

@ -1,5 +1,5 @@
--TEST--
errmsg: __destruct() cannot take arguments
errmsg: __destruct() cannot take arguments
--FILE--
<?php

View file

@ -15,7 +15,7 @@ var_dump(<<<END
// Insufficient indentation is fine if the line is whitespace-only
// Using eval() here to avoid issue with trailing whitespace trimming
var_dump(eval("return <<<END
\x20
\x20
\x20\x20END;"));
echo <<<'END'

View file

@ -2,7 +2,7 @@
Foreach over object with shadowed private property
--FILE--
<?php
class Test {
private $prop = "Test";

View file

@ -1,5 +1,5 @@
--TEST--
function_exists function : basic functionality
function_exists function : basic functionality
--FILE--
<?php
/*

View file

@ -1,5 +1,5 @@
--TEST--
Test function_exists() function : error conditions
Test function_exists() function : error conditions
--FILE--
<?php
/*

View file

@ -3,10 +3,10 @@ Test function_exists() function : usage variations - test values for $str argume
--FILE--
<?php
/*
/*
* proto bool function_exists(string function_name)
* Function is implemented in Zend/zend_builtin_functions.c
*/
*/
echo "*** Testing function_exists() function: with unexpected inputs for 'str' argument ***\n";
@ -18,7 +18,7 @@ unset($unset_var);
class sample {
public function __toString() {
return "sample object";
}
}
}
//getting the resource

View file

@ -1,5 +1,5 @@
--TEST--
get_defined_functions() function : basic functionality
get_defined_functions() function : basic functionality
--FILE--
<?php

View file

@ -1,5 +1,5 @@
--TEST--
Test get_defined_functions() function : error conditions
Test get_defined_functions() function : error conditions
--FILE--
<?php
@ -17,7 +17,7 @@ $extra_arg = 10;
$extra_arg2 = 20;
var_dump( get_defined_functions($extra_arg, $extra_arg2) );
?>
?>
===Done===
--EXPECTF--
*** Testing get_defined_functions() : error conditions ***
@ -26,5 +26,4 @@ var_dump( get_defined_functions($extra_arg, $extra_arg2) );
Warning: get_defined_functions() expects at most 1 parameter, 2 given in %s on line %d
NULL
===Done===

View file

@ -1,5 +1,5 @@
--TEST--
globals in global scope
globals in global scope
--INI--
variables_order="egpcs"
--FILE--

View file

@ -1,5 +1,5 @@
--TEST--
globals in local scope - 3
globals in local scope - 3
--INI--
variables_order="egpcs"
--FILE--

View file

@ -1,5 +1,5 @@
--TEST--
Inherited constant from interface
Inherited constant from interface
--FILE--
<?php
interface foo {

View file

@ -1,5 +1,5 @@
--TEST--
ZE2 Late Static Binding with exceptions
ZE2 Late Static Binding with exceptions
--FILE--
<?php
function foo() {

View file

@ -1,5 +1,5 @@
--TEST--
ZE2 Late Static Binding properties and methods declared as protected and overridden as public.
ZE2 Late Static Binding properties and methods declared as protected and overridden as public.
--FILE--
<?php
class TestClass {

View file

@ -1,5 +1,5 @@
--TEST--
ZE2 Late Static Binding properties and methods declared as public and overridden as public.
ZE2 Late Static Binding properties and methods declared as public and overridden as public.
--FILE--
<?php
class TestClass {

View file

@ -1,5 +1,5 @@
--TEST--
Nullable return value
Nullable return value
--FILE--
<?php
function foo($x) : ?array {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,5 +1,5 @@
--TEST--
Abstract Trait Methods should behave like common abstract methods and
Abstract Trait Methods should behave like common abstract methods and
implementstion may be provided by other traits. Sorting order shouldn't influence result.
--FILE--
<?php

View file

@ -1,5 +1,5 @@
--TEST--
parent:: works like in a method defined without traits.
parent:: works like in a method defined without traits.
--FILE--
<?php
error_reporting(E_ALL);

View file

@ -19,7 +19,7 @@ function foo($ret = FALSE) {
}
} catch (Exception $e) {
goto local;
local:
local:
var_dump("catched");
if ($ret) return "return";
} finally {

View file

@ -1,5 +1,5 @@
--TEST--
Test ctype_alpha() function : basic functionality
Test ctype_alpha() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

View file

@ -1,5 +1,5 @@
--TEST--
Test ctype_cntrl() function : basic functionality
Test ctype_cntrl() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

View file

@ -1,11 +1,11 @@
--TEST--
Test ctype_graph() function : basic functionality
Test ctype_graph() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,7 +5,7 @@ Test ctype_graph() function : error conditions - incorrect number of arguments
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - different data types as $c arg
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

View file

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - different integers
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

View file

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - different strings
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

View file

@ -5,8 +5,8 @@ Test ctype_graph() function : usage variations - octal and hexadecimal values
--FILE--
<?php
/* Prototype : bool ctype_graph(mixed $c)
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
* Description: Checks for any printable character(s) except space
* Source code: ext/ctype/ctype.c
*/
/*

View file

@ -1,5 +1,5 @@
--TEST--
Test ctype_lower() function : basic functionality
Test ctype_lower() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

View file

@ -1,5 +1,5 @@
--TEST--
Test ctype_print() function : basic functionality
Test ctype_print() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

View file

@ -1,12 +1,12 @@
--TEST--
Test ctype_punct() function : basic functionality
Test ctype_punct() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,8 +5,8 @@ Test ctype_punct() function : error conditions - incorrect number of args
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - different data types as $c argu
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - different integers
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - different punctuation
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,8 +5,8 @@ Test ctype_punct() function : usage variations - Octal and Hexadecimal values
--FILE--
<?php
/* Prototype : bool ctype_punct(mixed $c)
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Description: Checks for any printable character which is not whitespace
* or an alphanumeric character
* Source code: ext/ctype/ctype.c
*/

View file

@ -1,5 +1,5 @@
--TEST--
Test ctype_space() function : basic functionality
Test ctype_space() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

View file

@ -62,7 +62,7 @@ $inputs = array(
false,
TRUE,
FALSE,
// empty data
/*16*/ "",
'',
@ -72,7 +72,7 @@ $inputs = array(
/*19*/ "\n\t\r",
' ',
$heredoc,
// object data
/*22*/ new classA(),

View file

@ -1,5 +1,5 @@
--TEST--
Test ctype_upper() function : basic functionality
Test ctype_upper() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--

View file

@ -1,11 +1,11 @@
--TEST--
Test ctype_xdigit() function : basic functionality
Test ctype_xdigit() function : basic functionality
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,7 +5,7 @@ Test ctype_xdigit() function : error conditions - Incorrect number of args
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - different data typse as $c arg
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - different integers
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - Different strings
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

View file

@ -5,7 +5,7 @@ Test ctype_xdigit() function : usage variations - heaxadecimal and octal values
--FILE--
<?php
/* Prototype : bool ctype_xdigit(mixed $c)
* Description: Checks for character(s) representing a hexadecimal digit
* Description: Checks for character(s) representing a hexadecimal digit
* Source code: ext/ctype/ctype.c
*/

View file

@ -1,5 +1,5 @@
--TEST--
Test curl_exec() function with basic functionality
Test curl_exec() function with basic functionality
--CREDITS--
Sebastian Deutsch <sebastian.deutsch@9elements.com>
TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
@ -8,7 +8,7 @@ TestFest 2009 - AFUP - Jean-Marc Fontaine <jmf@durcommefaire.net>
--FILE--
<?php
/* Prototype : bool curl_exec(resource ch)
* Description: Perform a cURL session
* Description: Perform a cURL session
* Source code: ext/curl/interface.c
* Alias to functions:
*/

View file

@ -1,7 +1,7 @@
--TEST--
Test curl_opt() function with COOKIE
Test curl_opt() function with COOKIE
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--

View file

@ -1,7 +1,7 @@
--TEST--
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_0
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_0
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
@ -25,7 +25,7 @@ TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
$curl_content = curl_exec($ch);
curl_close($ch);

View file

@ -1,7 +1,7 @@
--TEST--
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_1
Test curl_opt() function with CURLOPT_HTTP_VERSION/CURL_HTTP_VERSION_1_1
--CREDITS--
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
@ -25,7 +25,7 @@ TestFest 2009 - AFUP - Xavier Gorse <xgorse@elao.com>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_URL, $url); //set the url we want to use
$curl_content = curl_exec($ch);
curl_close($ch);

View file

@ -1,5 +1,5 @@
--TEST--
Test curl_multi_exec() function with basic functionality
Test curl_multi_exec() function with basic functionality
--CREDITS--
TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--SKIPIF--
@ -7,7 +7,7 @@ TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--FILE--
<?php
/* Prototype : bool curl_multi_exec(resource ch)
* Description: Perform a cURL session
* Description: Perform a cURL session
* Source code: ext/curl/multi.c
* Alias to functions:
*/

View file

@ -1,5 +1,5 @@
--TEST--
Test curl_setopt() with curl_multi function with basic functionality
Test curl_setopt() with curl_multi function with basic functionality
--CREDITS--
TestFest 2009 - AFUP - Thomas Rabaix <thomas.rabaix@gmail.com>
--SKIPIF--

View file

@ -1,5 +1,5 @@
--TEST--
Test curl_copy_handle() function with basic functionality
Test curl_copy_handle() function with basic functionality
--CREDITS--
Francesco Fullone ff@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20

Binary file not shown.

View file

@ -1,5 +1,5 @@
--TEST--
Curl_multi_getcontent() error test
Curl_multi_getcontent() error test
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509

View file

@ -1,5 +1,5 @@
--TEST--
Curl_multi_getcontent() error test
Curl_multi_getcontent() error test
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509

View file

@ -1,5 +1,5 @@
--TEST--
Curl_multi_getcontent() error test
Curl_multi_getcontent() error test
--CREDITS--
Rein Velt (rein@velt.org)
#TestFest Utrecht 20090509

View file

@ -8,7 +8,7 @@ Ivo Jansch <ivo@ibuildings.com>
--FILE--
<?php
/* Prototype : resource curl_multi_select($mh, $timeout=1.0])
* Description : Get all the sockets associated with the cURL extension, which can then be
* Description : Get all the sockets associated with the cURL extension, which can then be
* "selected"
* Source code : ?
* Test documentation: http://wiki.php.net/qa/temp/ext/curl

View file

@ -1,5 +1,5 @@
--TEST--
Test curl option CURLOPT_FILE
Test curl option CURLOPT_FILE
--CREDITS--
Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht

View file

@ -1,5 +1,5 @@
--TEST--
Test curl option CURLOPT_RETURNTRANSFER
Test curl option CURLOPT_RETURNTRANSFER
--CREDITS--
Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht

View file

@ -1,5 +1,5 @@
--TEST--
Test curl option CURLOPT_HEADERFUNCTION
Test curl option CURLOPT_HEADERFUNCTION
--CREDITS--
Mathieu Kooiman <mathieuk@gmail.com>
Dutch UG, TestFest 2009, Utrecht

View file

@ -3,7 +3,7 @@ Test clone on DateTimeZone objects
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set('Europe/London');
echo "*** Testing clone on DateTime objects ***\n";
@ -11,7 +11,7 @@ echo "*** Testing clone on DateTime objects ***\n";
// Create a DateTimeZone object..
$orig = new DateTimeZone("GMT");
// ..create a clone of it ..Clone
// ..create a clone of it ..Clone
$clone = clone $orig;
var_dump($orig);

View file

@ -1,8 +1,8 @@
--TEST--
Testing clone on objects whoose class derived from DateTimeZone class
Testing clone on objects whoose class derived from DateTimeZone class
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
class DateTimeZoneExt1 extends DateTimeZone {

View file

@ -2,7 +2,7 @@
Test clone of DateTimeZOne objects
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing clone on DateTime objects ***\n";

View file

@ -2,7 +2,7 @@
Test clone of DateTimeZone derived objects with __clone magic method
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
class DateTimeZoneExt1 extends DateTimeZone {

View file

@ -3,11 +3,11 @@ Test of compare object handler for DateTime objects
--FILE--
<?php
// NB: DateTimeZone class does not define a customized compare class handler so standard object handler will be used
// NB: DateTimeZone class does not define a customized compare class handler so standard object handler will be used
echo "Simple test for DateTimeZone compare object handler\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
class DateTimeZoneExt1 extends DateTimeZone {

View file

@ -1,5 +1,5 @@
--TEST--
Test new DateTimeZone() : basic functionality
Test new DateTimeZone() : basic functionality
--FILE--
<?php
/* Prototype : DateTimeZone::__construct ( string $timezone )
@ -8,7 +8,7 @@ Test new DateTimeZone() : basic functionality
* Alias to functions:
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing new DateTimeZone() : basic functionality ***\n";

View file

@ -1,5 +1,5 @@
--TEST--
Test new DateTimeZone() : error conditions
Test new DateTimeZone() : error conditions
--FILE--
<?php
/* Prototype : DateTimeZone::__construct ( string $timezone )
@ -7,7 +7,7 @@ Test new DateTimeZone() : error conditions
* Source code: ext/date/php_date.c
* Alias to functions:
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
echo "*** Testing DateTimeZone() : error conditions ***\n";

View file

@ -10,7 +10,7 @@ Test DateTime::__construct() function : usage variation - Passing unexpected val
echo "*** Testing DateTime::__construct() : usage variation - unexpected values to first argument \$timezone***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
//get an unset variable
@ -89,7 +89,7 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
// resource
// resource
'resource' => $file_handle
);

View file

@ -1,9 +1,9 @@
--TEST--
Test DateTimeZone class inheritance
Test DateTimeZone class inheritance
--FILE--
<?php
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
echo "*** Testing basic DateTimeZone inheritance() ***\n";

View file

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getName() function : basic functionality
Test DateTimeZone::getName() function : basic functionality
--FILE--
<?php
/* Prototype : public string DateTimeZone::getName ( void )
@ -10,7 +10,7 @@ Test DateTimeZone::getName() function : basic functionality
echo "*** Testing DateTimeZone::getName() : basic functionality ***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz1 = new DateTimeZone("Europe/London");

View file

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getName() function : error conditions
Test DateTimeZone::getName() function : error conditions
--FILE--
<?php
/* Prototype : public string DateTimeZone::getName ( void )
@ -8,7 +8,7 @@ Test DateTimeZone::getName() function : error conditions
* Alias to functions: timezone_name_get()
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz = new DateTimeZone("Europe/London");

View file

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getOffset() function : basic functionality
Test DateTimeZone::getOffset() function : basic functionality
--FILE--
<?php
/* Prototype : int DateTimeZone::getOffset ( DateTime $datetime )
@ -10,7 +10,7 @@ Test DateTimeZone::getOffset() function : basic functionality
echo "*** Testing DateTimeZone::getOffset() : basic functionality ***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz1 = new DateTimeZone("Europe/London");

View file

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getOffset() function : error conditions
Test DateTimeZone::getOffset() function : error conditions
--FILE--
<?php
/* Prototype : int DateTimeZone::getOffset ( DateTime $datetime )
@ -8,7 +8,7 @@ Test DateTimeZone::getOffset() function : error conditions
* Alias to functions: timezone_offset_get()
*/
//Set the default time zone
//Set the default time zone
date_default_timezone_set("GMT");
$tz = new DateTimeZone("Europe/London");

View file

@ -1,5 +1,5 @@
--TEST--
Test DateTimeZone::getTransitions() function : basic functionality
Test DateTimeZone::getTransitions() function : basic functionality
--FILE--
<?php
/* Prototype : array DateTimeZone::getTransitions ()
@ -10,7 +10,7 @@ Test DateTimeZone::getTransitions() function : basic functionality
echo "*** Testing DateTimeZone::getTransitions() : basic functionality ***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
// Create a DateTimeZone object

Some files were not shown because too many files have changed in this diff Show more