Use int instead of integer in type errors

PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
This commit is contained in:
Gabriel Caruso 2018-02-04 11:33:49 -02:00 committed by Nikita Popov
parent 4861730a94
commit ce1d69a1f6
627 changed files with 2941 additions and 2941 deletions

View File

@ -16,7 +16,7 @@ takes_int(log(tan(3.14)));
float(NAN)
bool(true)
Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type integer, float given, called in %s on line 9 and defined in %s:6
Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type int, float given, called in %s on line 9 and defined in %s:6
Stack trace:
#0 %s(9): takes_int(NAN)
#1 {main}

View File

@ -49,6 +49,6 @@ Too few arguments to function bar(), 1 passed in %s and exactly 2 expected
ArgumentCountError
Too few arguments to function bat(), 1 passed in %s and exactly 2 expected
TypeError
Argument 1 passed to bat() must be of the type integer, string given, called in %s
Argument 1 passed to bat() must be of the type int, string given, called in %s
TypeError
Argument 2 passed to bat() must be of the type string, integer given, called in %s
Argument 2 passed to bat() must be of the type string, int given, called in %s

View File

@ -6,7 +6,7 @@ function gen(array $a) { yield; }
gen(42);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to gen() must be of the type array, integer given, called in %sgenerator_with_type_check.php on line 3 and defined in %sgenerator_with_type_check.php:2
Fatal error: Uncaught TypeError: Argument 1 passed to gen() must be of the type array, int given, called in %sgenerator_with_type_check.php on line 3 and defined in %sgenerator_with_type_check.php:2
Stack trace:
#0 %sgenerator_with_type_check.php(3): gen(42)
#1 {main}

View File

@ -18,5 +18,5 @@ try {
}
?>
--EXPECTF--
Argument 1 passed to gen() must be of the type array, integer given, called in %sgenerator_with_type_check_2.php on line 4
Argument 1 passed to gen() must be of the type array, integer given, called in %sgenerator_with_type_check_2.php on line 10
Argument 1 passed to gen() must be of the type array, int given, called in %sgenerator_with_type_check_2.php on line 4
Argument 1 passed to gen() must be of the type array, int given, called in %sgenerator_with_type_check_2.php on line 10

View File

@ -19,7 +19,7 @@ $three = new class extends Two {
$three->a();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of class@anonymous::a() must be an object, integer returned in %s:13
Fatal error: Uncaught TypeError: Return value of class@anonymous::a() must be an object, int returned in %s:13
Stack trace:
#0 %s(16): class@anonymous->a()
#1 {main}

View File

@ -9,7 +9,7 @@ function a() : object {
a();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of a() must be an object, integer returned in %s:4
Fatal error: Uncaught TypeError: Return value of a() must be an object, int returned in %s:4
Stack trace:
#0 %s(6): a()
#1 {main}

View File

@ -19,7 +19,7 @@ $three = new class extends Two {
$three->a();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of class@anonymous::a() must be an object, integer returned in %s:13
Fatal error: Uncaught TypeError: Return value of class@anonymous::a() must be an object, int returned in %s:13
Stack trace:
#0 %s(16): class@anonymous->a()
#1 {main}

View File

@ -19,7 +19,7 @@ $three = new class implements Two {
$three->a();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of class@anonymous::a() must be an object, integer returned in %s:13
Fatal error: Uncaught TypeError: Return value of class@anonymous::a() must be an object, int returned in %s:13
Stack trace:
#0 %s(16): class@anonymous->a()
#1 {main}

View File

@ -12,7 +12,7 @@ $one->a(new One());
$one->a(123);
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to One::a() must be an object, integer given, called in %s:4
Fatal error: Uncaught TypeError: Argument 1 passed to One::a() must be an object, int given, called in %s:4
Stack trace:
#0 %s(9): One->a(123)
#1 {main}

View File

@ -10,7 +10,7 @@ a(new A());
a(123);
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to a() must be an object, integer given, called in %s.php on line 7 and defined in %s:4
Fatal error: Uncaught TypeError: Argument 1 passed to a() must be an object, int given, called in %s.php on line 7 and defined in %s:4
Stack trace:
#0 %s(7): a(123)
#1 {main}

View File

@ -9,7 +9,7 @@ function test1() : array {
test1();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, integer returned in %s:%d
Fatal error: Uncaught TypeError: Return value of test1() must be of the type array, int returned in %s:%d
Stack trace:
#0 %s(%d): test1()
#1 {main}

View File

@ -16,7 +16,7 @@ foo(0);
ok
ok
Fatal error: Uncaught TypeError: Return value of foo() must be of the type array or null, integer returned in %s030.php:3
Fatal error: Uncaught TypeError: Return value of foo() must be of the type array or null, int returned in %s030.php:3
Stack trace:
#0 %s030.php(10): foo(0)
#1 {main}

View File

@ -16,4 +16,4 @@ try {
}
?>
--EXPECT--
string(72) "Return value of getNumber() must be of the type integer, string returned"
string(68) "Return value of getNumber() must be of the type int, string returned"

View File

@ -11,7 +11,7 @@ function get_config(): array {
get_config();
--EXPECTF--
Fatal error: Uncaught TypeError: Return value of get_config() must be of the type array, integer returned in %s:%d
Fatal error: Uncaught TypeError: Return value of get_config() must be of the type array, int returned in %s:%d
Stack trace:
#0 %s(%d): get_config()
#1 {main}

View File

@ -12,7 +12,7 @@ foo(123);
--EXPECTF--
3
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type array, integer given, called in %s on line 7 and defined in %s:2
Fatal error: Uncaught TypeError: Argument 1 passed to foo() must be of the type array, int given, called in %s on line 7 and defined in %s:2
Stack trace:
#0 %s(%d): foo(123)
#1 {main}

View File

@ -11,7 +11,7 @@ require 'weak_include_strict_2.inc';
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type integer, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type int, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
Stack trace:
#0 %s(%d): takes_int(1)
#1 %s(%d): require('%s')

View File

@ -28,7 +28,7 @@ try {
?>
--EXPECTF--
*** Trying Ord With Integer
*** Caught ord() expects parameter 1 to be string, integer given
*** Caught ord() expects parameter 1 to be string, int given
*** Trying Array Map With Invalid Callback
*** Caught array_map() expects parameter 1 to be a valid callback, first array member is not a valid class name or object
*** Trying Strlen With Float

View File

@ -45,4 +45,4 @@ object(ArrayIterator)#1 (1) {
int(3)
}
}
Argument 1 passed to test() must be iterable, integer given, called in %s on line %d
Argument 1 passed to test() must be iterable, int given, called in %s on line %d

View File

@ -29,4 +29,4 @@ array(0) {
}
object(Generator)#2 (0) {
}
Return value of baz() must be iterable, integer returned
Return value of baz() must be iterable, int returned

View File

@ -79,16 +79,16 @@ E_NOTICE: A non well formed numeric value encountered on line %d
int(1)
*** Trying string(1) "a"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying int(%d)
int(%d)
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying bool(true)
int(1)
@ -97,22 +97,22 @@ int(1)
int(0)
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
*** Trying array(0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying resource(%d) of type (stream)
*** Caught Argument 1 passed to {closure}() must be of the type integer, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
Testing 'float' type:

View File

@ -13,7 +13,7 @@ var_dump(int_val());
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to int_val() must be of the type integer, string given, called in %s on line %d and defined in %s:%d
Fatal error: Uncaught TypeError: Argument 1 passed to int_val() must be of the type int, string given, called in %s on line %d and defined in %s:%d
Stack trace:
#0 %s(%d): int_val()
#1 {main}

View File

@ -37,7 +37,7 @@ echo PHP_EOL . "Done";
?>
--EXPECTF--
Testing int:
*** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
Testing float:
*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
Testing string:

View File

@ -76,30 +76,30 @@ int(1)
E_NOTICE: A non well formed numeric value encountered on line %d
int(1)
*** Trying string(1) "a"
*** Caught Return value of {closure}() must be of the type integer, string returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
*** Trying string(0) ""
*** Caught Return value of {closure}() must be of the type integer, string returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
*** Trying int(2147483647)
int(2147483647)
*** Trying float(NAN)
*** Caught Return value of {closure}() must be of the type integer, float returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, float returned in %s on line %d
*** Trying bool(true)
int(1)
*** Trying bool(false)
int(0)
*** Trying NULL
*** Caught Return value of {closure}() must be of the type integer, null returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, null returned in %s on line %d
*** Trying array(0) {
}
*** Caught Return value of {closure}() must be of the type integer, array returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Return value of {closure}() must be of the type integer, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Return value of {closure}() must be of the type integer, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
*** Trying resource(5) of type (stream)
*** Caught Return value of {closure}() must be of the type integer, resource returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, resource returned in %s on line %d
Testing 'float' type:
*** Trying int(1)

View File

@ -76,30 +76,30 @@ int(1)
E_NOTICE: A non well formed numeric value encountered on line %d
int(1)
*** Trying string(1) "a"
*** Caught Return value of {closure}() must be of the type integer, string returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
*** Trying string(0) ""
*** Caught Return value of {closure}() must be of the type integer, string returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, string returned in %s on line %d
*** Trying int(9223372036854775807)
int(9223372036854775807)
*** Trying float(NAN)
*** Caught Return value of {closure}() must be of the type integer, float returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, float returned in %s on line %d
*** Trying bool(true)
int(1)
*** Trying bool(false)
int(0)
*** Trying NULL
*** Caught Return value of {closure}() must be of the type integer, null returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, null returned in %s on line %d
*** Trying array(0) {
}
*** Caught Return value of {closure}() must be of the type integer, array returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Return value of {closure}() must be of the type integer, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Return value of {closure}() must be of the type integer, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, object returned in %s on line %d
*** Trying resource(5) of type (stream)
*** Caught Return value of {closure}() must be of the type integer, resource returned in %s on line %d
*** Caught Return value of {closure}() must be of the type int, resource returned in %s on line %d
Testing 'float' type:
*** Trying int(1)

View File

@ -70,52 +70,52 @@ Testing 'int' type:
int(1)
*** Trying string(1) "1"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying float(1)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying float(1.5)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying string(2) "1a"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying string(1) "a"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying int(2147483647)
int(2147483647)
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying bool(true)
*** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
*** Trying array(0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
*** Caught Argument 1 passed to {closure}() must be of the type integer, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
Testing 'float' type:
@ -173,7 +173,7 @@ float(NAN)
Testing 'string' type:
*** Trying int(1)
*** Caught Argument 1 passed to {closure}() must be of the type string, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
*** Trying string(1) "1"
string(1) "1"
@ -194,7 +194,7 @@ string(1) "a"
string(0) ""
*** Trying int(2147483647)
*** Caught Argument 1 passed to {closure}() must be of the type string, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
@ -226,7 +226,7 @@ string(0) ""
Testing 'bool' type:
*** Trying int(1)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Trying string(1) "1"
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
@ -247,7 +247,7 @@ Testing 'bool' type:
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Trying int(2147483647)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d

View File

@ -70,52 +70,52 @@ Testing 'int' type:
int(1)
*** Trying string(1) "1"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying float(1)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying float(1.5)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying string(2) "1a"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying string(1) "a"
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying int(9223372036854775807)
int(9223372036854775807)
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying bool(true)
*** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
*** Trying array(0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying resource(5) of type (stream)
*** Caught Argument 1 passed to {closure}() must be of the type integer, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
Testing 'float' type:
@ -173,7 +173,7 @@ float(NAN)
Testing 'string' type:
*** Trying int(1)
*** Caught Argument 1 passed to {closure}() must be of the type string, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
*** Trying string(1) "1"
string(1) "1"
@ -194,7 +194,7 @@ string(1) "a"
string(0) ""
*** Trying int(9223372036854775807)
*** Caught Argument 1 passed to {closure}() must be of the type string, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
@ -226,7 +226,7 @@ string(0) ""
Testing 'bool' type:
*** Trying int(1)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Trying string(1) "1"
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
@ -247,7 +247,7 @@ Testing 'bool' type:
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Trying int(9223372036854775807)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Trying float(NAN)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d

View File

@ -68,28 +68,28 @@ Testing 'int' type:
int(1)
*** Trying float value
*** Caught Argument 1 passed to {closure}() must be of the type integer, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, float given, called in %s on line %d
*** Trying string value
*** Caught Argument 1 passed to {closure}() must be of the type integer, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, string given, called in %s on line %d
*** Trying true value
*** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Trying false value
*** Caught Argument 1 passed to {closure}() must be of the type integer, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Trying null value
*** Caught Argument 1 passed to {closure}() must be of the type integer, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
*** Trying array value
*** Caught Argument 1 passed to {closure}() must be of the type integer, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, array given, called in %s on line %d
*** Trying object value
*** Caught Argument 1 passed to {closure}() must be of the type integer, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, object given, called in %s on line %d
*** Trying resource value
*** Caught Argument 1 passed to {closure}() must be of the type integer, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, resource given, called in %s on line %d
Testing 'float' type:
@ -123,7 +123,7 @@ float(1)
Testing 'string' type:
*** Trying integer value
*** Caught Argument 1 passed to {closure}() must be of the type string, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, int given, called in %s on line %d
*** Trying float value
*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
@ -152,7 +152,7 @@ string(1) "1"
Testing 'bool' type:
*** Trying integer value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, integer given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Trying float value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d

View File

@ -13,7 +13,7 @@ require 'strict_call_weak_2.inc';
function_declared_in_weak_mode(1.0);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to function_declared_in_weak_mode() must be of the type integer, float given, called in %sstrict_call_weak.php on line 10 and defined in %sstrict_call_weak_2.inc:5
Fatal error: Uncaught TypeError: Argument 1 passed to function_declared_in_weak_mode() must be of the type int, float given, called in %sstrict_call_weak.php on line 10 and defined in %sstrict_call_weak_2.inc:5
Stack trace:
#0 %s(%d): function_declared_in_weak_mode(1)
#1 {main}

View File

@ -13,7 +13,7 @@ require 'strict_call_weak_explicit_2.inc';
function_declared_in_weak_mode(1.0);
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to function_declared_in_weak_mode() must be of the type integer, float given, called in %sstrict_call_weak_explicit.php on line 10 and defined in %sstrict_call_weak_explicit_2.inc:5
Fatal error: Uncaught TypeError: Argument 1 passed to function_declared_in_weak_mode() must be of the type int, float given, called in %sstrict_call_weak_explicit.php on line 10 and defined in %sstrict_call_weak_explicit_2.inc:5
Stack trace:
#0 %s(%d): function_declared_in_weak_mode(1)
#1 {main}

View File

@ -11,7 +11,7 @@ require 'weak_include_strict_2.inc';
// calls within that file should stay strict, despite being included by weak file
?>
--EXPECTF--
Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type integer, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
Fatal error: Uncaught TypeError: Argument 1 passed to takes_int() must be of the type int, float given, called in %sweak_include_strict_2.inc on line 9 and defined in %sweak_include_strict_2.inc:5
Stack trace:
#0 %s(%d): takes_int(1)
#1 %s(%d): require('%s')

View File

@ -231,27 +231,27 @@ TypeError: Argument 1 passed to loadedInterface() must implement interface RealI
Stack trace:
#0 %s(26): loadedInterface(Object(stdClass))
#1 {main}
TypeError: Argument 1 passed to unloadedClass() must be an instance of I\Dont\Exist or null, integer given, called in %s on line 32 and defined in %s:5
TypeError: Argument 1 passed to unloadedClass() must be an instance of I\Dont\Exist or null, int given, called in %s on line 32 and defined in %s:5
Stack trace:
#0 %s(32): unloadedClass(1)
#1 {main}
TypeError: Argument 1 passed to loadedClass() must be an instance of RealClass or null, integer given, called in %s on line 38 and defined in %s:16
TypeError: Argument 1 passed to loadedClass() must be an instance of RealClass or null, int given, called in %s on line 38 and defined in %s:16
Stack trace:
#0 %s(38): loadedClass(1)
#1 {main}
TypeError: Argument 1 passed to loadedInterface() must implement interface RealInterface or be null, integer given, called in %s on line 44 and defined in %s:17
TypeError: Argument 1 passed to loadedInterface() must implement interface RealInterface or be null, int given, called in %s on line 44 and defined in %s:17
Stack trace:
#0 %s(44): loadedInterface(1)
#1 {main}
TypeError: Argument 1 passed to callableF() must be callable or null, integer given, called in %s on line 52 and defined in %s:49
TypeError: Argument 1 passed to callableF() must be callable or null, int given, called in %s on line 52 and defined in %s:49
Stack trace:
#0 %s(52): callableF(1)
#1 {main}
TypeError: Argument 1 passed to iterableF() must be iterable or null, integer given, called in %s on line 60 and defined in %s:57
TypeError: Argument 1 passed to iterableF() must be iterable or null, int given, called in %s on line 60 and defined in %s:57
Stack trace:
#0 %s(60): iterableF(1)
#1 {main}
TypeError: Argument 1 passed to intF() must be of the type integer or null, object given, called in %s on line 68 and defined in %s:65
TypeError: Argument 1 passed to intF() must be of the type int or null, object given, called in %s on line 68 and defined in %s:65
Stack trace:
#0 %s(68): intF(Object(stdClass))
#1 {main}
@ -267,27 +267,27 @@ TypeError: Return value of returnLoadedInterface() must implement interface Real
Stack trace:
#0 %s(98): returnLoadedInterface()
#1 {main}
TypeError: Return value of returnUnloadedClassScalar() must be an instance of I\Dont\Exist or null, integer returned in %s:104
TypeError: Return value of returnUnloadedClassScalar() must be an instance of I\Dont\Exist or null, int returned in %s:104
Stack trace:
#0 %s(108): returnUnloadedClassScalar()
#1 {main}
TypeError: Return value of returnLoadedClassScalar() must be an instance of RealClass or null, integer returned in %s:114
TypeError: Return value of returnLoadedClassScalar() must be an instance of RealClass or null, int returned in %s:114
Stack trace:
#0 %s(118): returnLoadedClassScalar()
#1 {main}
TypeError: Return value of returnLoadedInterfaceScalar() must implement interface RealInterface or be null, integer returned in %s:124
TypeError: Return value of returnLoadedInterfaceScalar() must implement interface RealInterface or be null, int returned in %s:124
Stack trace:
#0 %s(128): returnLoadedInterfaceScalar()
#1 {main}
TypeError: Return value of returnCallable() must be callable or null, integer returned in %s:134
TypeError: Return value of returnCallable() must be callable or null, int returned in %s:134
Stack trace:
#0 %s(138): returnCallable()
#1 {main}
TypeError: Return value of returnIterable() must be iterable or null, integer returned in %s:144
TypeError: Return value of returnIterable() must be iterable or null, int returned in %s:144
Stack trace:
#0 %s(148): returnIterable()
#1 {main}
TypeError: Return value of returnInt() must be of the type integer or null, object returned in %s:154
TypeError: Return value of returnInt() must be of the type int or null, object returned in %s:154
Stack trace:
#0 %s(158): returnInt()
#1 {main}
@ -311,7 +311,7 @@ TypeError: Return value of returnMissingIterable() must be iterable or null, non
Stack trace:
#0 %s(203): returnMissingIterable()
#1 {main}
TypeError: Return value of returnMissingInt() must be of the type integer or null, none returned in %s:209
TypeError: Return value of returnMissingInt() must be of the type int or null, none returned in %s:209
Stack trace:
#0 %s(212): returnMissingInt()
#1 {main}

View File

@ -33,7 +33,7 @@ array(3) {
}
}
Fatal error: Uncaught TypeError: Argument 3 passed to test() must be of the type array, integer given, called in %s:%d
Fatal error: Uncaught TypeError: Argument 3 passed to test() must be of the type array, int given, called in %s:%d
Stack trace:
#0 %s(%d): test(Array, Array, 2)
#1 {main}

View File

@ -15,4 +15,4 @@ try {
?>
--EXPECTF--
string(%d) "Argument 3 passed to test() must be of the type array, integer given, called in %s on line %d"
string(%d) "Argument 3 passed to test() must be of the type array, int given, called in %s on line %d"

View File

@ -107,7 +107,7 @@ ZEND_API char *zend_get_type_by_const(int type) /* {{{ */
case _IS_BOOL:
return "boolean";
case IS_LONG:
return "integer";
return "int";
case IS_DOUBLE:
return "float";
case IS_STRING:
@ -497,7 +497,7 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
}
if (!zend_parse_arg_long(arg, p, is_null, check_null, c == 'L')) {
return "integer";
return "int";
}
}
break;

View File

@ -690,7 +690,7 @@ END_EXTERN_C()
#define FAST_ZPP 1
#define Z_EXPECTED_TYPES(_) \
_(Z_EXPECTED_LONG, "integer") \
_(Z_EXPECTED_LONG, "int") \
_(Z_EXPECTED_BOOL, "boolean") \
_(Z_EXPECTED_STRING, "string") \
_(Z_EXPECTED_ARRAY, "array") \

View File

@ -56,22 +56,22 @@ string(0) ""
Notice: Array to string conversion in %sjdtomonthname.php on line %d
Array
Warning: jdmonthname() expects parameter 1 to be integer, array given in %s on line %d
Warning: jdmonthname() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: jdmonthname() expects parameter 1 to be integer, array given in %s on line %d
Warning: jdmonthname() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: jdmonthname() expects parameter 1 to be integer, array given in %s on line %d
Warning: jdmonthname() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: jdmonthname() expects parameter 1 to be integer, array given in %s on line %d
Warning: jdmonthname() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: jdmonthname() expects parameter 1 to be integer, array given in %s on line %d
Warning: jdmonthname() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: jdmonthname() expects parameter 1 to be integer, array given in %s on line %d
Warning: jdmonthname() expects parameter 1 to be int, array given in %s on line %d
bool(false)
=== 10000000

View File

@ -40,6 +40,6 @@ Warning: curl_setopt() expects exactly 3 parameters, 2 given in %s on line %d
Warning: curl_setopt() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: curl_setopt() expects parameter 2 to be integer, string given in %s on line %d
Warning: curl_setopt() expects parameter 2 to be int, string given in %s on line %d
Warning: curl_setopt(): Invalid curl configuration option in %scurl_setopt_error.php on line %d

View File

@ -110,23 +110,23 @@ bool(true)
bool(true)
-- Iteration 10 --
Warning: curl_version() expects parameter 1 to be integer, array given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- Iteration 11 --
Warning: curl_version() expects parameter 1 to be integer, array given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- Iteration 12 --
Warning: curl_version() expects parameter 1 to be integer, array given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- Iteration 13 --
Warning: curl_version() expects parameter 1 to be integer, string given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 14 --
Warning: curl_version() expects parameter 1 to be integer, string given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 15 --
@ -146,11 +146,11 @@ bool(true)
bool(true)
-- Iteration 22 --
Warning: curl_version() expects parameter 1 to be integer, object given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- Iteration 23 --
Warning: curl_version() expects parameter 1 to be integer, resource given in %s on line %d
Warning: curl_version() expects parameter 1 to be int, resource given in %s on line %d
bool(false)
-- Iteration 24 --
bool(true)

View File

@ -10,4 +10,4 @@ echo $tz->getOffset($dt);
echo $tz->getOffset(1);
--EXPECTF--
3600
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, integer given in %s
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given in %s

View File

@ -112,22 +112,22 @@ fclose( $file_handle );
-- int 0 --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 1 --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -118,16 +118,16 @@ fclose( $file_handle);
*** Testing new DateTime() : usage variation - unexpected values to second argument $timezone***
-- int 0 --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, int given
-- int 1 --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, int given
-- int 12345 --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, int given
-- int -12345 --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, integer given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, int given
-- float 10.5 --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, float given

View File

@ -3,14 +3,14 @@ Test DateTime::setDate() function : usage variation - Passing unexpected values
--FILE--
<?php
/* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day )
* Description: Resets the current date of the DateTime object to a different date.
* Description: Resets the current date of the DateTime object to a different date.
* Source code: ext/date/php_date.c
* Alias to functions: date_date_set
*/
echo "*** Testing DateTime::setDate() : usage variation - unexpected values to first argument \$year***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
//get an unset variable
@ -90,8 +90,8 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
// resource
// resource
'resource' => $file_handle
);
@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setDate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setDate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setDate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setDate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setDate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setDate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setDate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setDate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setDate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setDate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setDate() expects parameter 1 to be integer, object given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setDate() expects parameter 1 to be integer, object given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setDate() expects parameter 1 to be integer, resource given in %s on line %d
Warning: DateTime::setDate() expects parameter 1 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -3,14 +3,14 @@ Test DateTime::setDate() function : usage variation - Passing unexpected values
--FILE--
<?php
/* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day )
* Description: Resets the current date of the DateTime object to a different date.
* Description: Resets the current date of the DateTime object to a different date.
* Source code: ext/date/php_date.c
* Alias to functions: date_date_set
*/
echo "*** Testing DateTime::setDate() : usage variation - unexpected values to second argument \$month***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
//get an unset variable
@ -90,8 +90,8 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
// resource
// resource
'resource' => $file_handle
);
@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setDate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setDate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setDate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setDate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setDate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setDate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setDate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setDate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setDate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setDate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setDate() expects parameter 2 to be integer, object given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setDate() expects parameter 2 to be integer, object given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setDate() expects parameter 2 to be integer, resource given in %s on line %d
Warning: DateTime::setDate() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -3,14 +3,14 @@ Test DateTime::setDate() function : usage variation - Passing unexpected values
--FILE--
<?php
/* Prototype : public DateTime DateTime::setDate ( int $year , int $month , int $day )
* Description: Resets the current date of the DateTime object to a different date.
* Description: Resets the current date of the DateTime object to a different date.
* Source code: ext/date/php_date.c
* Alias to functions: date_date_set
*/
echo "*** Testing DateTime::setDate() : usage variation - unexpected values to third argument \$day***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
//get an unset variable
@ -90,8 +90,8 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
// resource
// resource
'resource' => $file_handle
);
@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setDate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setDate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setDate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setDate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setDate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setDate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setDate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setDate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setDate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setDate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setDate() expects parameter 3 to be integer, object given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setDate() expects parameter 3 to be integer, object given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setDate() expects parameter 3 to be integer, resource given in %s on line %d
Warning: DateTime::setDate() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setISODate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setISODate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setISODate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setISODate() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setISODate() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setISODate() expects parameter 1 to be integer, object given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setISODate() expects parameter 1 to be integer, object given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setISODate() expects parameter 1 to be integer, resource given in %s on line %d
Warning: DateTime::setISODate() expects parameter 1 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setISODate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setISODate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setISODate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setISODate() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setISODate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setISODate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setISODate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setISODate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setISODate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setISODate() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setISODate() expects parameter 2 to be integer, object given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setISODate() expects parameter 2 to be integer, object given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setISODate() expects parameter 2 to be integer, resource given in %s on line %d
Warning: DateTime::setISODate() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setISODate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setISODate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setISODate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setISODate() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setISODate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setISODate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setISODate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setISODate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setISODate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setISODate() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setISODate() expects parameter 3 to be integer, object given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setISODate() expects parameter 3 to be integer, object given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setISODate() expects parameter 3 to be integer, resource given in %s on line %d
Warning: DateTime::setISODate() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setTime() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setTime() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setTime() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setTime() expects parameter 1 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setTime() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setTime() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setTime() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setTime() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setTime() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setTime() expects parameter 1 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setTime() expects parameter 1 to be integer, object given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setTime() expects parameter 1 to be integer, object given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setTime() expects parameter 1 to be integer, resource given in %s on line %d
Warning: DateTime::setTime() expects parameter 1 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setTime() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setTime() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setTime() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setTime() expects parameter 2 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setTime() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setTime() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setTime() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setTime() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setTime() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setTime() expects parameter 2 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setTime() expects parameter 2 to be integer, object given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setTime() expects parameter 2 to be integer, object given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setTime() expects parameter 2 to be integer, resource given in %s on line %d
Warning: DateTime::setTime() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: DateTime::setTime() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: DateTime::setTime() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: DateTime::setTime() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: DateTime::setTime() expects parameter 3 to be integer, array given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: DateTime::setTime() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: DateTime::setTime() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: DateTime::setTime() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: DateTime::setTime() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: DateTime::setTime() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: DateTime::setTime() expects parameter 3 to be integer, string given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: DateTime::setTime() expects parameter 3 to be integer, object given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: DateTime::setTime() expects parameter 3 to be integer, object given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: DateTime::setTime() expects parameter 3 to be integer, resource given in %s on line %d
Warning: DateTime::setTime() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -112,22 +112,22 @@ fclose( $file_handle );
-- int 0 --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, integer given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int 1 --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, integer given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, integer given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, integer given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -9,4 +9,4 @@ $start = microtime(true);
$a = mktime(1, 1, 1, 1, 1, 11111111111);
?>
--EXPECTF--
Warning: mktime() expects parameter 6 to be integer, float given in %s on line %d
Warning: mktime() expects parameter 6 to be int, float given in %s on line %d

View File

@ -25,7 +25,7 @@ string(32) "5138-11-16 09:46:40 100000000000"
bool(false)
string(12) "100000000000"
Warning: DateTime::setTimestamp() expects parameter 1 to be integer, float given in %s on line %d
Warning: DateTime::setTimestamp() expects parameter 1 to be int, float given in %s on line %d
string(32) "5138-11-16 09:46:40 100000000000"
bool(false)
string(10) "1215752192"

View File

@ -6,5 +6,5 @@ $d = new DateTime('2011-01-15 00:00:00');
var_dump(strtotime('-1 month', $d));
?>
--EXPECTF--
Warning: strtotime() expects parameter 2 to be integer, object given in %sbug70245.php on line %d
Warning: strtotime() expects parameter 2 to be int, object given in %sbug70245.php on line %d
bool(false)

View File

@ -112,22 +112,22 @@ bool(false)
-- empty array --
Warning: checkdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: checkdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: checkdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: checkdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -150,42 +150,42 @@ bool(false)
-- empty string DQ --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: checkdate() expects parameter 1 to be integer, object given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: checkdate() expects parameter 1 to be integer, object given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -196,7 +196,7 @@ bool(false)
-- resource --
Warning: checkdate() expects parameter 1 to be integer, resource given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -112,22 +112,22 @@ bool(false)
-- empty array --
Warning: checkdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: checkdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: checkdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: checkdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -150,42 +150,42 @@ bool(false)
-- empty string DQ --
Warning: checkdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: checkdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: checkdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: checkdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: checkdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: checkdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: checkdate() expects parameter 2 to be integer, object given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: checkdate() expects parameter 2 to be integer, object given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -196,7 +196,7 @@ bool(false)
-- resource --
Warning: checkdate() expects parameter 2 to be integer, resource given in %s on line %d
Warning: checkdate() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -112,22 +112,22 @@ bool(false)
-- empty array --
Warning: checkdate() expects parameter 3 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: checkdate() expects parameter 3 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: checkdate() expects parameter 3 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: checkdate() expects parameter 3 to be integer, array given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -150,42 +150,42 @@ bool(false)
-- empty string DQ --
Warning: checkdate() expects parameter 3 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: checkdate() expects parameter 3 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: checkdate() expects parameter 3 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: checkdate() expects parameter 3 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: checkdate() expects parameter 3 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: checkdate() expects parameter 3 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: checkdate() expects parameter 3 to be integer, object given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: checkdate() expects parameter 3 to be integer, object given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -196,6 +196,6 @@ bool(false)
-- resource --
Warning: checkdate() expects parameter 3 to be integer, resource given in %s on line %d
Warning: checkdate() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -112,22 +112,22 @@ fclose( $file_handle);
-- int 0 --
Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_create() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -114,22 +114,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_date_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_date_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_date_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_date_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_date_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_date_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_date_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_date_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_date_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_date_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_date_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_date_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_date_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_date_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_date_set() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_date_set() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_date_set() expects parameter 2 to be integer, resource given in %s on line %d
Warning: date_date_set() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_date_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_date_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_date_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_date_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_date_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_date_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_date_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_date_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_date_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_date_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_date_set() expects parameter 3 to be integer, object given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_date_set() expects parameter 3 to be integer, object given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_date_set() expects parameter 3 to be integer, resource given in %s on line %d
Warning: date_date_set() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -3,14 +3,14 @@ Test date_date_set() function : usage variation - Passing unexpected values to f
--FILE--
<?php
/* Prototype : DateTime date_date_set ( DateTime $object , int $year , int $month , int $day )
* Description: Resets the current date of the DateTime object to a different date.
* Description: Resets the current date of the DateTime object to a different date.
* Source code: ext/date/php_date.c
* Alias to functions: DateTime::setDate
*/
echo "*** Testing date_date_set() : usage variation - unexpected values to forth argument \$day***\n";
//Set the default time zone
//Set the default time zone
date_default_timezone_set("Europe/London");
//get an unset variable
@ -90,8 +90,8 @@ $inputs = array(
// unset data
'unset var' => @$unset_var,
// resource
// resource
'resource' => $file_handle
);
@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_date_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_date_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_date_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_date_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_date_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_date_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_date_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_date_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_date_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_date_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_date_set() expects parameter 4 to be integer, object given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_date_set() expects parameter 4 to be integer, object given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_date_set() expects parameter 4 to be integer, resource given in %s on line %d
Warning: date_date_set() expects parameter 4 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -34,6 +34,6 @@ bool(false)
-- Testing date function with more than expected no. of arguments --
Warning: checkdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: checkdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
===DONE===

View File

@ -59,7 +59,7 @@ bool(false)
Warning: date_format() expects parameter 1 to be DateTimeInterface, object given in %sp on line %d
bool(false)
Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
Warning: date_format() expects parameter 1 to be DateTimeInterface, null given in %s on line %d

View File

@ -112,22 +112,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_format() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -60,7 +60,7 @@ bool(false)
Warning: date_isodate_set() expects parameter 1 to be DateTime, object given in %s on line %d
bool(false)
Warning: date_isodate_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
Warning: date_isodate_set() expects parameter 1 to be DateTime, null given in %s on line %d

View File

@ -114,22 +114,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_isodate_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_isodate_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_isodate_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_isodate_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_isodate_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_isodate_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_isodate_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_isodate_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_isodate_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_isodate_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_isodate_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_isodate_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_isodate_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_isodate_set() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_isodate_set() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_isodate_set() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_isodate_set() expects parameter 2 to be integer, resource given in %s on line %d
Warning: date_isodate_set() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_isodate_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_isodate_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_isodate_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_isodate_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_isodate_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_isodate_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_isodate_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_isodate_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_isodate_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_isodate_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_isodate_set() expects parameter 3 to be integer, object given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_isodate_set() expects parameter 3 to be integer, object given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_isodate_set() expects parameter 3 to be integer, resource given in %s on line %d
Warning: date_isodate_set() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_isodate_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_isodate_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_isodate_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_isodate_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_isodate_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_isodate_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_isodate_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_isodate_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_isodate_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_isodate_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_isodate_set() expects parameter 4 to be integer, object given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_isodate_set() expects parameter 4 to be integer, object given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_isodate_set() expects parameter 4 to be integer, resource given in %s on line %d
Warning: date_isodate_set() expects parameter 4 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -60,7 +60,7 @@ bool(false)
Warning: date_modify() expects parameter 1 to be DateTime, object given in %s on line %d
bool(false)
Warning: date_modify() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
Warning: date_modify() expects parameter 1 to be DateTime, null given in %s on line %d

View File

@ -112,22 +112,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_modify() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_modify() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_modify() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_modify() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -49,7 +49,7 @@ bool(false)
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, object given in %s on line %d
bool(false)
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, null given in %s on line %d

View File

@ -110,22 +110,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -413,32 +413,32 @@ array(9) {
-- Iteration 16 --
Warning: date_sun_info() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 17 --
Warning: date_sun_info() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 18 --
Warning: date_sun_info() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, array given in %s on line %d
bool(false)
-- Iteration 19 --
Warning: date_sun_info() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 20 --
Warning: date_sun_info() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 21 --
Warning: date_sun_info() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, string given in %s on line %d
bool(false)
-- Iteration 22 --
@ -487,6 +487,6 @@ array(9) {
-- Iteration 24 --
Warning: date_sun_info() expects parameter 1 to be integer, resource given in %s on line %d
Warning: date_sun_info() expects parameter 1 to be int, resource given in %s on line %d
bool(false)
===Done===

View File

@ -144,46 +144,46 @@ int(28596)
--empty array--
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -218,90 +218,90 @@ int(28596)
--empty string DQ--
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: date_sunrise() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: date_sunrise() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--undefined var--

View File

@ -116,12 +116,12 @@ bool(false)
--float 12.3456789000e10--
Warning: date_sunrise() expects parameter 2 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, float given in %s on line %d
bool(false)
--float -12.3456789000e10--
Warning: date_sunrise() expects parameter 2 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, float given in %s on line %d
bool(false)
--float .5--
@ -129,22 +129,22 @@ int(1218174468)
--empty array--
Warning: date_sunrise() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: date_sunrise() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: date_sunrise() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: date_sunrise() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -167,42 +167,42 @@ int(1218174468)
--empty string DQ--
Warning: date_sunrise() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: date_sunrise() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: date_sunrise() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: date_sunrise() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: date_sunrise() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: date_sunrise() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: date_sunrise() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: date_sunrise() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_sunrise() expects parameter 2 to be int, object given in %s on line %d
bool(false)
--undefined var--

View File

@ -39,23 +39,23 @@ var_dump( date_sunrise($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $ze
-- Testing date_sunrise() function by passing float 12.3456789000e10 value to time --
Warning: date_sunrise() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, float given in %s on line %d
bool(false)
-- Testing date_sunrise() function by passing float -12.3456789000e10 value to time --
Warning: date_sunrise() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunrise() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunrise() expects parameter 1 to be int, float given in %s on line %d
bool(false)
===DONE===

View File

@ -144,46 +144,46 @@ int(62545)
--empty array--
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -218,90 +218,90 @@ int(62545)
--empty string DQ--
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: date_sunset() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: date_sunset() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, object given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--undefined var--

View File

@ -116,12 +116,12 @@ bool(false)
--float 12.3456789000e10--
Warning: date_sunset() expects parameter 2 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, float given in %s on line %d
bool(false)
--float -12.3456789000e10--
Warning: date_sunset() expects parameter 2 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, float given in %s on line %d
bool(false)
--float .5--
@ -129,22 +129,22 @@ int(1218199264)
--empty array--
Warning: date_sunset() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: date_sunset() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: date_sunset() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: date_sunset() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -167,42 +167,42 @@ int(1218199264)
--empty string DQ--
Warning: date_sunset() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: date_sunset() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: date_sunset() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: date_sunset() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: date_sunset() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: date_sunset() expects parameter 2 to be integer, string given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: date_sunset() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: date_sunset() expects parameter 2 to be integer, object given in %s on line %d
Warning: date_sunset() expects parameter 2 to be int, object given in %s on line %d
bool(false)
--undefined var--

View File

@ -39,23 +39,23 @@ var_dump( date_sunset($time, SUNFUNCS_RET_TIMESTAMP, $latitude, $longitude, $zen
-- Testing date_sunset() function by passing float 12.3456789000e10 value to time --
Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
bool(false)
-- Testing date_sunset() function by passing float -12.3456789000e10 value to time --
Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
bool(false)
Warning: date_sunset() expects parameter 1 to be integer, float given in %s on line %d
Warning: date_sunset() expects parameter 1 to be int, float given in %s on line %d
bool(false)
===DONE===

View File

@ -63,7 +63,7 @@ bool(false)
Warning: date_time_set() expects parameter 1 to be DateTime, object given in %s on line %d
bool(false)
Warning: date_time_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
Warning: date_time_set() expects parameter 1 to be DateTime, null given in %s on line %d

View File

@ -114,22 +114,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_time_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_time_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_time_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_time_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_time_set() expects parameter 2 to be integer, array given in %s
Warning: date_time_set() expects parameter 2 to be int, array given in %s
bool(false)
-- int indexed array --
Warning: date_time_set() expects parameter 2 to be integer, array given in %s
Warning: date_time_set() expects parameter 2 to be int, array given in %s
bool(false)
-- associative array --
Warning: date_time_set() expects parameter 2 to be integer, array given in %s
Warning: date_time_set() expects parameter 2 to be int, array given in %s
bool(false)
-- nested arrays --
Warning: date_time_set() expects parameter 2 to be integer, array given in %s
Warning: date_time_set() expects parameter 2 to be int, array given in %s
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_time_set() expects parameter 2 to be integer, string given in %s
Warning: date_time_set() expects parameter 2 to be int, string given in %s
bool(false)
-- empty string SQ --
Warning: date_time_set() expects parameter 2 to be integer, string given in %s
Warning: date_time_set() expects parameter 2 to be int, string given in %s
bool(false)
-- string DQ --
Warning: date_time_set() expects parameter 2 to be integer, string given in %s
Warning: date_time_set() expects parameter 2 to be int, string given in %s
bool(false)
-- string SQ --
Warning: date_time_set() expects parameter 2 to be integer, string given in %s
Warning: date_time_set() expects parameter 2 to be int, string given in %s
bool(false)
-- mixed case string --
Warning: date_time_set() expects parameter 2 to be integer, string given in %s
Warning: date_time_set() expects parameter 2 to be int, string given in %s
bool(false)
-- heredoc --
Warning: date_time_set() expects parameter 2 to be integer, string given in %s
Warning: date_time_set() expects parameter 2 to be int, string given in %s
bool(false)
-- instance of classWithToString --
Warning: date_time_set() expects parameter 2 to be integer, object given in %s
Warning: date_time_set() expects parameter 2 to be int, object given in %s
bool(false)
-- instance of classWithoutToString --
Warning: date_time_set() expects parameter 2 to be integer, object given in %s
Warning: date_time_set() expects parameter 2 to be int, object given in %s
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_time_set() expects parameter 2 to be integer, resource given in %s
Warning: date_time_set() expects parameter 2 to be int, resource given in %s
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#3 (3) {
-- empty array --
Warning: date_time_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_time_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_time_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_time_set() expects parameter 3 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_time_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_time_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_time_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_time_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_time_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_time_set() expects parameter 3 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_time_set() expects parameter 3 to be integer, object given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_time_set() expects parameter 3 to be integer, object given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_time_set() expects parameter 3 to be integer, resource given in %s on line %d
Warning: date_time_set() expects parameter 3 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -184,22 +184,22 @@ object(DateTime)#%d (3) {
-- empty array --
Warning: date_time_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date_time_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date_time_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date_time_set() expects parameter 4 to be integer, array given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -264,42 +264,42 @@ object(DateTime)#%d (3) {
-- empty string DQ --
Warning: date_time_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date_time_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date_time_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date_time_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date_time_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date_time_set() expects parameter 4 to be integer, string given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date_time_set() expects parameter 4 to be integer, object given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date_time_set() expects parameter 4 to be integer, object given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -324,6 +324,6 @@ object(DateTime)#%d (3) {
-- resource --
Warning: date_time_set() expects parameter 4 to be integer, resource given in %s on line %d
Warning: date_time_set() expects parameter 4 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -17,4 +17,4 @@ bool(true)
Warning: date_timestamp_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_timestamp_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d

View File

@ -12,4 +12,4 @@ $dftz021 = date_default_timezone_get(); //UTC
date_timestamp_set(987654321, 123456789);
?>
--EXPECTF--
Warning: date_timestamp_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_timestamp_set() expects parameter 1 to be DateTime, int given in %s on line %d

View File

@ -16,4 +16,4 @@ $wrong_parameter = array();
date_timestamp_set($dtms021, $wrong_parameter);
?>
--EXPECTF--
Warning: date_timestamp_set() expects parameter 2 to be integer, array given in %s on line %d
Warning: date_timestamp_set() expects parameter 2 to be int, array given in %s on line %d

View File

@ -48,7 +48,7 @@ bool(false)
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, object given in %s on line %d
bool(false)
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, null given in %s on line %d

View File

@ -110,22 +110,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, integer given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -56,7 +56,7 @@ bool(false)
Warning: date_timezone_set() expects parameter 1 to be DateTime, object given in %s on line %d
bool(false)
Warning: date_timezone_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
Warning: date_timezone_set() expects parameter 1 to be DateTime, null given in %s on line %d

View File

@ -113,22 +113,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_timezone_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_timezone_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_timezone_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_timezone_set() expects parameter 1 to be DateTime, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -112,22 +112,22 @@ fclose( $file_handle );
-- int 0 --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int 1 --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int 12345 --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- int -12345 --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, integer given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, int given in %s on line %d
bool(false)
-- float 10.5 --

View File

@ -132,22 +132,22 @@ string(24) "January 1, 1970, 1:00 am"
-- empty array --
Warning: date() expects parameter 2 to be integer, array given in %s on line %d
Warning: date() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- int indexed array --
Warning: date() expects parameter 2 to be integer, array given in %s on line %d
Warning: date() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- associative array --
Warning: date() expects parameter 2 to be integer, array given in %s on line %d
Warning: date() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- nested arrays --
Warning: date() expects parameter 2 to be integer, array given in %s on line %d
Warning: date() expects parameter 2 to be int, array given in %s on line %d
bool(false)
-- uppercase NULL --
@ -170,42 +170,42 @@ string(24) "January 1, 1970, 1:00 am"
-- empty string DQ --
Warning: date() expects parameter 2 to be integer, string given in %s on line %d
Warning: date() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- empty string SQ --
Warning: date() expects parameter 2 to be integer, string given in %s on line %d
Warning: date() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string DQ --
Warning: date() expects parameter 2 to be integer, string given in %s on line %d
Warning: date() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- string SQ --
Warning: date() expects parameter 2 to be integer, string given in %s on line %d
Warning: date() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- mixed case string --
Warning: date() expects parameter 2 to be integer, string given in %s on line %d
Warning: date() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- heredoc --
Warning: date() expects parameter 2 to be integer, string given in %s on line %d
Warning: date() expects parameter 2 to be int, string given in %s on line %d
bool(false)
-- instance of classWithToString --
Warning: date() expects parameter 2 to be integer, object given in %s on line %d
Warning: date() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- instance of classWithoutToString --
Warning: date() expects parameter 2 to be integer, object given in %s on line %d
Warning: date() expects parameter 2 to be int, object given in %s on line %d
bool(false)
-- undefined var --
@ -216,7 +216,7 @@ string(24) "January 1, 1970, 1:00 am"
-- resource --
Warning: date() expects parameter 2 to be integer, resource given in %s on line %d
Warning: date() expects parameter 2 to be int, resource given in %s on line %d
bool(false)
===DONE===

View File

@ -175,22 +175,22 @@ array(11) {
--empty array--
Warning: getdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: getdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: getdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: getdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: getdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: getdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: getdate() expects parameter 1 to be integer, array given in %s on line %d
Warning: getdate() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -351,42 +351,42 @@ array(11) {
--empty string DQ--
Warning: getdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: getdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: getdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: getdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: getdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: getdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: getdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: getdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: getdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: getdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: getdate() expects parameter 1 to be integer, string given in %s on line %d
Warning: getdate() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: getdate() expects parameter 1 to be integer, object given in %s on line %d
Warning: getdate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: getdate() expects parameter 1 to be integer, object given in %s on line %d
Warning: getdate() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--undefined var--

View File

@ -27,11 +27,11 @@ var_dump( getdate($timestamp) );
-- Testing getdate() function by passing float 12.3456789000e10 value to timestamp --
Warning: getdate() expects parameter 1 to be integer, float given in %s on line %d
Warning: getdate() expects parameter 1 to be int, float given in %s on line %d
bool(false)
-- Testing getdate() function by passing float -12.3456789000e10 value to timestamp --
Warning: getdate() expects parameter 1 to be integer, float given in %s on line %d
Warning: getdate() expects parameter 1 to be int, float given in %s on line %d
bool(false)
===DONE===

View File

@ -30,11 +30,11 @@ var_dump( gmdate($format, $timestamp) );
-- Testing gmdate() function with float 12.3456789000e10 to timestamp --
Warning: gmdate() expects parameter 2 to be integer, float given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, float given in %s on line %d
bool(false)
-- Testing gmdate() function with float -12.3456789000e10 to timestamp --
Warning: gmdate() expects parameter 2 to be integer, float given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, float given in %s on line %d
bool(false)
===DONE===

View File

@ -126,22 +126,22 @@ string(24) "1970-01-01T00:00:00+0000"
--empty array--
Warning: gmdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: gmdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: gmdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: gmdate() expects parameter 2 to be integer, array given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -164,42 +164,42 @@ string(24) "1970-01-01T00:00:00+0000"
--empty string DQ--
Warning: gmdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: gmdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: gmdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: gmdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: gmdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: gmdate() expects parameter 2 to be integer, string given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: gmdate() expects parameter 2 to be integer, object given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: gmdate() expects parameter 2 to be integer, object given in %s on line %d
Warning: gmdate() expects parameter 2 to be int, object given in %s on line %d
bool(false)
--undefined var--

View File

@ -110,22 +110,22 @@ int(1218154088)
--empty array--
Warning: gmmktime() expects parameter 1 to be integer, array given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--int indexed array--
Warning: gmmktime() expects parameter 1 to be integer, array given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--associative array--
Warning: gmmktime() expects parameter 1 to be integer, array given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--nested arrays--
Warning: gmmktime() expects parameter 1 to be integer, array given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -148,42 +148,42 @@ int(1218154088)
--empty string DQ--
Warning: gmmktime() expects parameter 1 to be integer, string given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--empty string SQ--
Warning: gmmktime() expects parameter 1 to be integer, string given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string DQ--
Warning: gmmktime() expects parameter 1 to be integer, string given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--string SQ--
Warning: gmmktime() expects parameter 1 to be integer, string given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--mixed case string--
Warning: gmmktime() expects parameter 1 to be integer, string given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--heredoc--
Warning: gmmktime() expects parameter 1 to be integer, string given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, string given in %s on line %d
bool(false)
--instance of classWithToString--
Warning: gmmktime() expects parameter 1 to be integer, object given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: gmmktime() expects parameter 1 to be integer, object given in %s on line %d
Warning: gmmktime() expects parameter 1 to be int, object given in %s on line %d
bool(false)
--undefined var--

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