Use bool instead of boolean while throwing a type error

PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".

This a followup to ce1d69a1f6, which
implements the same change for integer->int.
This commit is contained in:
Gabriel Caruso 2018-02-04 16:42:36 -02:00 committed by Nikita Popov
parent ce1d69a1f6
commit fef879a2d6
233 changed files with 882 additions and 882 deletions

View file

@ -30,7 +30,7 @@ Warning: define() expects at least 2 parameters, 1 given in %s on line %d
NULL
bool(true)
Warning: define() expects parameter 3 to be boolean, array given in %s on line %d
Warning: define() expects parameter 3 to be bool, array given in %s on line %d
NULL
Warning: define() expects parameter 1 to be string, array given in %s on line %d

View file

@ -257,21 +257,21 @@ bool(true)
bool(false)
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
*** Trying array(0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
*** Trying object(stdClass)#%s (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
*** Trying object(Stringable)#%s (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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 boolean, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
Done

View file

@ -43,7 +43,7 @@ Testing float:
Testing string:
*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
Testing bool:
*** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
Testing int nullable:
NULL
Testing float nullable:

View file

@ -200,17 +200,17 @@ bool(true)
*** Trying bool(false)
bool(false)
*** Trying NULL
*** Caught Return value of {closure}() must be of the type boolean, null returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, null returned in %s on line %d
*** Trying array(0) {
}
*** Caught Return value of {closure}() must be of the type boolean, array returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Return value of {closure}() must be of the type boolean, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Return value of {closure}() must be of the type boolean, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
*** Trying resource(5) of type (stream)
*** Caught Return value of {closure}() must be of the type boolean, resource returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, resource returned in %s on line %d
Done

View file

@ -200,17 +200,17 @@ bool(true)
*** Trying bool(false)
bool(false)
*** Trying NULL
*** Caught Return value of {closure}() must be of the type boolean, null returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, null returned in %s on line %d
*** Trying array(0) {
}
*** Caught Return value of {closure}() must be of the type boolean, array returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, array returned in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Return value of {closure}() must be of the type boolean, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Return value of {closure}() must be of the type boolean, object returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, object returned in %s on line %d
*** Trying resource(5) of type (stream)
*** Caught Return value of {closure}() must be of the type boolean, resource returned in %s on line %d
*** Caught Return value of {closure}() must be of the type bool, resource returned in %s on line %d
Done

View file

@ -94,10 +94,10 @@ int(2147483647)
*** 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 int, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
@ -147,10 +147,10 @@ float(2147483647)
float(NAN)
*** Trying bool(true)
*** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
@ -200,10 +200,10 @@ string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
*** Trying bool(true)
*** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
@ -226,31 +226,31 @@ string(0) ""
Testing 'bool' type:
*** Trying int(1)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying float(1)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying float(1.5)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying string(2) "1a"
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying string(1) "a"
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying int(2147483647)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying bool(true)
bool(true)
@ -259,21 +259,21 @@ bool(true)
bool(false)
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
*** Trying array(0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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 boolean, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
Done

View file

@ -94,10 +94,10 @@ int(9223372036854775807)
*** 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 int, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
@ -147,10 +147,10 @@ float(9.2233720368548E+18)
float(NAN)
*** Trying bool(true)
*** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
@ -200,10 +200,10 @@ string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type string, float given, called in %s on line %d
*** Trying bool(true)
*** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
*** Trying bool(false)
*** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
@ -226,31 +226,31 @@ string(0) ""
Testing 'bool' type:
*** Trying int(1)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying float(1)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying float(1.5)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, float given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying string(2) "1a"
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying string(1) "a"
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying string(0) ""
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying int(9223372036854775807)
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying bool(true)
bool(true)
@ -259,21 +259,21 @@ bool(true)
bool(false)
*** Trying NULL
*** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
*** Trying array(0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
*** Trying object(stdClass)#6 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
*** Trying object(Stringable)#7 (0) {
}
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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 boolean, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
Done

View file

@ -74,10 +74,10 @@ int(1)
*** 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 int, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
*** Trying false value
*** Caught Argument 1 passed to {closure}() must be of the type int, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type int, bool given, called in %s on line %d
*** Trying null value
*** Caught Argument 1 passed to {closure}() must be of the type int, null given, called in %s on line %d
@ -103,10 +103,10 @@ float(1)
*** Caught Argument 1 passed to {closure}() must be of the type float, string given, called in %s on line %d
*** Trying true value
*** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
*** Trying false value
*** Caught Argument 1 passed to {closure}() must be of the type float, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type float, bool given, called in %s on line %d
*** Trying null value
*** Caught Argument 1 passed to {closure}() must be of the type float, null given, called in %s on line %d
@ -132,10 +132,10 @@ Testing 'string' type:
string(1) "1"
*** Trying true value
*** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
*** Trying false value
*** Caught Argument 1 passed to {closure}() must be of the type string, boolean given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type string, bool given, called in %s on line %d
*** Trying null value
*** Caught Argument 1 passed to {closure}() must be of the type string, null given, called in %s on line %d
@ -152,13 +152,13 @@ string(1) "1"
Testing 'bool' type:
*** Trying integer value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, int given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, 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
*** Caught Argument 1 passed to {closure}() must be of the type bool, float given, called in %s on line %d
*** Trying string value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, string given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, string given, called in %s on line %d
*** Trying true value
bool(true)
@ -167,15 +167,15 @@ bool(true)
bool(false)
*** Trying null value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, null given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, null given, called in %s on line %d
*** Trying array value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, array given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, array given, called in %s on line %d
*** Trying object value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, object given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, object given, called in %s on line %d
*** Trying resource value
*** Caught Argument 1 passed to {closure}() must be of the type boolean, resource given, called in %s on line %d
*** Caught Argument 1 passed to {closure}() must be of the type bool, resource given, called in %s on line %d
Done

View file

@ -105,7 +105,7 @@ ZEND_API char *zend_get_type_by_const(int type) /* {{{ */
case IS_FALSE:
case IS_TRUE:
case _IS_BOOL:
return "boolean";
return "bool";
case IS_LONG:
return "int";
case IS_DOUBLE:
@ -565,7 +565,7 @@ static const char *zend_parse_arg_impl(int arg_num, zval *arg, va_list *va, cons
}
if (!zend_parse_arg_bool(arg, p, is_null, check_null)) {
return "boolean";
return "bool";
}
}
break;

View file

@ -691,7 +691,7 @@ END_EXTERN_C()
#define Z_EXPECTED_TYPES(_) \
_(Z_EXPECTED_LONG, "int") \
_(Z_EXPECTED_BOOL, "boolean") \
_(Z_EXPECTED_BOOL, "bool") \
_(Z_EXPECTED_STRING, "string") \
_(Z_EXPECTED_ARRAY, "array") \
_(Z_EXPECTED_FUNC, "valid callback") \

View file

@ -38,7 +38,7 @@ Warning: curl_setopt() expects exactly 3 parameters, 2 given in %s on line %d
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 1 to be resource, bool given in %s on line %d
Warning: curl_setopt() expects parameter 2 to be int, string given in %s on line %d

View file

@ -7,10 +7,10 @@ Test DateTimeZone::getOffset() function : usage variation - Passing unexpected v
* Source code: ext/date/php_date.c
* Alias to functions: timezone_offset_get()
*/
echo "*** Testing DateTimeZone::getOffset() : usage variation - unexpected values to first argument \$datetime***\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
);
@ -177,22 +177,22 @@ bool(false)
-- lowercase true --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: DateTimeZone::getOffset() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -171,16 +171,16 @@ object(DateTime)#%d (3) {
}
-- lowercase true --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, boolean given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, bool given
-- lowercase false --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, boolean given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, bool given
-- uppercase TRUE --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, boolean given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, bool given
-- uppercase FALSE --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, boolean given
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, bool given
-- empty string DQ --
FAILED: DateTime::__construct() expects parameter 2 to be DateTimeZone, string given

View file

@ -177,22 +177,22 @@ bool(false)
-- lowercase true --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -187,22 +187,22 @@ object(DateTime)#%d (3) {
-- lowercase true --
Warning: date_create() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_create() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_create() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_create() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_create() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -179,22 +179,22 @@ bool(false)
-- lowercase true --
Warning: date_date_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_date_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_date_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_date_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_date_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -177,22 +177,22 @@ bool(false)
-- lowercase true --
Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_format() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_format() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -179,22 +179,22 @@ bool(false)
-- lowercase true --
Warning: date_isodate_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_isodate_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_isodate_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_isodate_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_isodate_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -177,22 +177,22 @@ bool(false)
-- lowercase true --
Warning: date_modify() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_modify() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_modify() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_modify() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_modify() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -175,22 +175,22 @@ bool(false)
-- lowercase true --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_offset_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -179,22 +179,22 @@ bool(false)
-- lowercase true --
Warning: date_time_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_time_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_time_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_time_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_time_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -175,22 +175,22 @@ bool(false)
-- lowercase true --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, boolean given in %s on line %d
Warning: date_timezone_get() expects parameter 1 to be DateTimeInterface, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -178,22 +178,22 @@ bool(false)
-- lowercase true --
Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_timezone_set() expects parameter 1 to be DateTime, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 1 to be DateTime, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -177,22 +177,22 @@ bool(false)
-- lowercase true --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, boolean given in %s on line %d
Warning: date_timezone_set() expects parameter 2 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -3,9 +3,9 @@ Test gettimeofday() function : usage variation - Passing unexpected values to ge
--FILE--
<?php
/* Prototype : array gettimeofday([bool get_as_float])
* Description: Returns the current time as array
* Description: Returns the current time as array
* Source code: ext/standard/microtime.c
* Alias to functions:
* Alias to functions:
*/
echo "*** Testing gettimeofday() : usage variation ***\n";
@ -140,22 +140,22 @@ float(%f)
--empty array--
Warning: gettimeofday() expects parameter 1 to be boolean, array given in %s on line %d
Warning: gettimeofday() expects parameter 1 to be bool, array given in %s on line %d
NULL
--int indexed array--
Warning: gettimeofday() expects parameter 1 to be boolean, array given in %s on line %d
Warning: gettimeofday() expects parameter 1 to be bool, array given in %s on line %d
NULL
--associative array--
Warning: gettimeofday() expects parameter 1 to be boolean, array given in %s on line %d
Warning: gettimeofday() expects parameter 1 to be bool, array given in %s on line %d
NULL
--nested arrays--
Warning: gettimeofday() expects parameter 1 to be boolean, array given in %s on line %d
Warning: gettimeofday() expects parameter 1 to be bool, array given in %s on line %d
NULL
--uppercase NULL--
@ -250,12 +250,12 @@ float(%f)
--instance of classWithToString--
Warning: gettimeofday() expects parameter 1 to be boolean, object given in %s on line %d
Warning: gettimeofday() expects parameter 1 to be bool, object given in %s on line %d
NULL
--instance of classWithoutToString--
Warning: gettimeofday() expects parameter 1 to be boolean, object given in %s on line %d
Warning: gettimeofday() expects parameter 1 to be bool, object given in %s on line %d
NULL
--undefined var--

View file

@ -305,22 +305,22 @@ array(9) {
--empty array--
Warning: localtime() expects parameter 2 to be boolean, array given in %s on line %d
Warning: localtime() expects parameter 2 to be bool, array given in %s on line %d
bool(false)
--int indexed array--
Warning: localtime() expects parameter 2 to be boolean, array given in %s on line %d
Warning: localtime() expects parameter 2 to be bool, array given in %s on line %d
bool(false)
--associative array--
Warning: localtime() expects parameter 2 to be boolean, array given in %s on line %d
Warning: localtime() expects parameter 2 to be bool, array given in %s on line %d
bool(false)
--nested arrays--
Warning: localtime() expects parameter 2 to be boolean, array given in %s on line %d
Warning: localtime() expects parameter 2 to be bool, array given in %s on line %d
bool(false)
--uppercase NULL--
@ -589,12 +589,12 @@ array(9) {
--instance of classWithToString--
Warning: localtime() expects parameter 2 to be boolean, object given in %s on line %d
Warning: localtime() expects parameter 2 to be bool, object given in %s on line %d
bool(false)
--instance of classWithoutToString--
Warning: localtime() expects parameter 2 to be boolean, object given in %s on line %d
Warning: localtime() expects parameter 2 to be bool, object given in %s on line %d
bool(false)
--undefined var--

View file

@ -58,13 +58,13 @@ float(%s)
}
}
Warning: microtime() expects parameter 1 to be boolean, array given in %s on line 25
Warning: microtime() expects parameter 1 to be bool, array given in %s on line 25
NULL
--> bad arg: object(stdClass)#%d (0) {
}
Warning: microtime() expects parameter 1 to be boolean, object given in %s on line 25
Warning: microtime() expects parameter 1 to be bool, object given in %s on line 25
NULL
--> bad arg: int(1)

View file

@ -162,16 +162,16 @@ Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone,
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, null given
-- lowercase true --
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, boolean given
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, bool given
-- lowercase false --
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, boolean given
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, bool given
-- uppercase TRUE --
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, boolean given
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, bool given
-- uppercase FALSE --
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, boolean given
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, bool given
-- empty string DQ --
Argument 1 passed to timezone_offset_get() must be an instance of DateTimeZone, string given

View file

@ -162,16 +162,16 @@ Argument 2 passed to timezone_offset_get() must implement interface DateTimeInte
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, null given
-- lowercase true --
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, boolean given
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, bool given
-- lowercase false --
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, boolean given
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, bool given
-- uppercase TRUE --
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, boolean given
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, bool given
-- uppercase FALSE --
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, boolean given
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, bool given
-- empty string DQ --
Argument 2 passed to timezone_offset_get() must implement interface DateTimeInterface, string given

View file

@ -175,22 +175,22 @@ bool(false)
-- lowercase true --
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- lowercase false --
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase TRUE --
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- uppercase FALSE --
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, boolean given in %s on line %d
Warning: timezone_transitions_get() expects parameter 1 to be DateTimeZone, bool given in %s on line %d
bool(false)
-- empty string DQ --

View file

@ -15,5 +15,5 @@ USE_ZEND_ALLOC=0
--EXPECTF--
Warning: finfo_open(): Failed to load magic database at '%sbug71527私はガラスを食べられます.magic'. in %sbug71527-mb.php on line %d
Warning: finfo_file() expects parameter 1 to be resource, boolean given in %sbug71527-mb.php on line %d
Warning: finfo_file() expects parameter 1 to be resource, bool given in %sbug71527-mb.php on line %d
bool(false)

View file

@ -15,5 +15,5 @@ USE_ZEND_ALLOC=0
--EXPECTF--
Warning: finfo_open(): Failed to load magic database at '%sbug71527.magic'. in %sbug71527.php on line %d
Warning: finfo_file() expects parameter 1 to be resource, boolean given in %sbug71527.php on line %d
Warning: finfo_file() expects parameter 1 to be resource, bool given in %sbug71527.php on line %d
bool(false)

View file

@ -192,22 +192,22 @@ NULL
-- lowercase true --
Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imagecolorallocate() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- lowercase false --
Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imagecolorallocate() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- uppercase TRUE --
Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imagecolorallocate() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- uppercase FALSE --
Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imagecolorallocate() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- empty string DQ --

View file

@ -17,6 +17,6 @@ imagetruecolortopalette($image, array(), 2);
?>
--EXPECTF--
Warning: imagetruecolortopalette() expects parameter 2 to be boolean, resource given in %s on line %d
Warning: imagetruecolortopalette() expects parameter 2 to be bool, resource given in %s on line %d
Warning: imagetruecolortopalette() expects parameter 2 to be boolean, array given in %s on line %d
Warning: imagetruecolortopalette() expects parameter 2 to be bool, array given in %s on line %d

View file

@ -149,22 +149,22 @@ NULL
-- Iteration 12 --
Warning: imap_close() expects parameter 1 to be resource, boolean given in %simap_close_variation1.php on line 80
Warning: imap_close() expects parameter 1 to be resource, bool given in %simap_close_variation1.php on line 80
NULL
-- Iteration 13 --
Warning: imap_close() expects parameter 1 to be resource, boolean given in %simap_close_variation1.php on line 80
Warning: imap_close() expects parameter 1 to be resource, bool given in %simap_close_variation1.php on line 80
NULL
-- Iteration 14 --
Warning: imap_close() expects parameter 1 to be resource, boolean given in %simap_close_variation1.php on line 80
Warning: imap_close() expects parameter 1 to be resource, bool given in %simap_close_variation1.php on line 80
NULL
-- Iteration 15 --
Warning: imap_close() expects parameter 1 to be resource, boolean given in %simap_close_variation1.php on line 80
Warning: imap_close() expects parameter 1 to be resource, bool given in %simap_close_variation1.php on line 80
NULL
-- Iteration 16 --

View file

@ -24,4 +24,4 @@ Checking with incorrect parameter type
Warning: imap_num_recent() expects parameter 1 to be resource, string given in %s on line %d
Warning: imap_num_recent() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_num_recent() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -154,22 +154,22 @@ NULL
-- Testing with first argument value: bool(true)
Warning: imap_fetch_overview() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetch_overview() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Testing with first argument value: bool(false)
Warning: imap_fetch_overview() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetch_overview() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Testing with first argument value: bool(true)
Warning: imap_fetch_overview() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetch_overview() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Testing with first argument value: bool(false)
Warning: imap_fetch_overview() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetch_overview() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Testing with first argument value: %string|unicode%(0) ""

View file

@ -154,22 +154,22 @@ NULL
-- Iteration 12 --
Warning: imap_fetchbody() expects parameter 1 to be resource, boolean given in %s on line 85
Warning: imap_fetchbody() expects parameter 1 to be resource, bool given in %s on line 85
NULL
-- Iteration 13 --
Warning: imap_fetchbody() expects parameter 1 to be resource, boolean given in %s on line 85
Warning: imap_fetchbody() expects parameter 1 to be resource, bool given in %s on line 85
NULL
-- Iteration 14 --
Warning: imap_fetchbody() expects parameter 1 to be resource, boolean given in %s on line 85
Warning: imap_fetchbody() expects parameter 1 to be resource, bool given in %s on line 85
NULL
-- Iteration 15 --
Warning: imap_fetchbody() expects parameter 1 to be resource, boolean given in %s on line 85
Warning: imap_fetchbody() expects parameter 1 to be resource, bool given in %s on line 85
NULL
-- Iteration 16 --

View file

@ -165,22 +165,22 @@ NULL
-- Iteration 12 --
Warning: imap_fetchheader() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetchheader() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Iteration 13 --
Warning: imap_fetchheader() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetchheader() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Iteration 14 --
Warning: imap_fetchheader() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetchheader() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Iteration 15 --
Warning: imap_fetchheader() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_fetchheader() expects parameter 1 to be resource, bool given in %s on line %d
NULL
-- Iteration 16 --

View file

@ -30,6 +30,6 @@ Checking with incorrect parameter type
Warning: imap_gc() expects parameter 1 to be resource, string given in %s on line %d
Warning: imap_gc() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_gc() expects parameter 1 to be resource, bool given in %s on line %d
Warning: imap_gc(): invalid value for the flags parameter in %s on line %d

View file

@ -24,5 +24,5 @@ Checking with incorrect parameter type
Warning: imap_headers() expects parameter 1 to be resource, string given in %s on line %d
Warning: imap_headers() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_headers() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -24,5 +24,5 @@ Checking with incorrect parameter type
Warning: imap_num_msg() expects parameter 1 to be resource, string given in %s on line %d
Warning: imap_num_msg() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_num_msg() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -24,4 +24,4 @@ Checking with incorrect parameter type
Warning: imap_expunge() expects parameter 1 to be resource, string given in %s on line %d
Warning: imap_expunge() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_expunge() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -24,4 +24,4 @@ Checking with incorrect parameter type
Warning: imap_ping() expects parameter 1 to be resource, string given in %s on line %d
Warning: imap_ping() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: imap_ping() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -43,5 +43,5 @@ array(2) {
Warning: ibase_execute(): Statement expects 2 arguments, 1 given in %s on line %d
Warning: ibase_fetch_assoc() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: ibase_fetch_assoc() expects parameter 1 to be resource, bool given in %s on line %d
NULL

View file

@ -28,5 +28,5 @@ NULL
Warning: ibase_prepare(): Dynamic SQL Error SQL error code = -206 %s in %s on line %d
Warning: ibase_num_params() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: ibase_num_params() expects parameter 1 to be resource, bool given in %s on line %d
NULL

View file

@ -45,6 +45,6 @@ Exception: IntlRuleBasedBreakIterator::__construct() expects at least 1 paramete
Exception: IntlRuleBasedBreakIterator::__construct() expects at most 2 parameters, 3 given in %s on line %d
Exception: IntlRuleBasedBreakIterator::__construct() expects parameter 2 to be boolean, array given in %s on line %d
Exception: IntlRuleBasedBreakIterator::__construct() expects parameter 2 to be bool, array given in %s on line %d
Exception: IntlRuleBasedBreakIterator::__construct(): rbbi_create_instance: unable to create instance from compiled rules in %s on line %d

View file

@ -20,7 +20,7 @@ Warning: intlcal_get_keyword_values_for_locale() expects exactly 3 parameters, 2
Warning: intlcal_get_keyword_values_for_locale(): intlcal_get_keyword_values_for_locale: bad arguments in %s on line %d
bool(false)
Warning: IntlCalendar::getKeywordValuesForLocale() expects parameter 3 to be boolean, array given in %s on line %d
Warning: IntlCalendar::getKeywordValuesForLocale() expects parameter 3 to be bool, array given in %s on line %d
Warning: IntlCalendar::getKeywordValuesForLocale(): intlcal_get_keyword_values_for_locale: bad arguments in %s on line %d
bool(false)

View file

@ -26,7 +26,7 @@ Warning: IntlCalendar::setLenient() expects exactly 1 parameter, 0 given in %s o
Warning: IntlCalendar::setLenient(): intlcal_set_lenient: bad arguments in %s on line %d
bool(false)
Warning: IntlCalendar::setLenient() expects parameter 1 to be boolean, array given in %s on line %d
Warning: IntlCalendar::setLenient() expects parameter 1 to be bool, array given in %s on line %d
Warning: IntlCalendar::setLenient(): intlcal_set_lenient: bad arguments in %s on line %d
bool(false)
@ -36,7 +36,7 @@ Warning: IntlCalendar::setLenient() expects exactly 1 parameter, 2 given in %s o
Warning: IntlCalendar::setLenient(): intlcal_set_lenient: bad arguments in %s on line %d
bool(false)
Warning: intlcal_set_lenient() expects parameter 2 to be boolean, array given in %s on line %d
Warning: intlcal_set_lenient() expects parameter 2 to be bool, array given in %s on line %d
Warning: intlcal_set_lenient(): intlcal_set_lenient: bad arguments in %s on line %d
bool(false)

View file

@ -19,7 +19,7 @@ var_dump(intltz_get_display_name(null, IntlTimeZone::DISPLAY_SHORT, false, 'pt_P
--EXPECTF--
Warning: IntlTimeZone::getDisplayName() expects parameter 1 to be boolean, array given in %s on line %d
Warning: IntlTimeZone::getDisplayName() expects parameter 1 to be bool, array given in %s on line %d
Warning: IntlTimeZone::getDisplayName(): intltz_get_display_name: bad arguments in %s on line %d
bool(false)

View file

@ -22,7 +22,7 @@ bool(false)
bool(false)
bool(true)
Warning: libxml_use_internal_errors() expects parameter 1 to be boolean, object given in %s001.php on line 6
Warning: libxml_use_internal_errors() expects parameter 1 to be bool, object given in %s001.php on line 6
NULL
array(0) {
}

View file

@ -161,19 +161,19 @@ string(12) "737472696e67"
string(12) "737472696e67"
--empty array--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--int indexed array--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--associative array--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--nested arrays--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--uppercase NULL--
@ -213,11 +213,11 @@ string(12) "737472696e67"
string(12) "737472696e67"
--instance of classWithToString--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--instance of classWithoutToString--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--undefined var--
@ -227,6 +227,6 @@ string(8) "5f76616c"
string(8) "5f76616c"
--resource--
Error: 2 - mb_stristr() expects parameter 3 to be boolean, resource given, %s(%d)
Error: 2 - mb_stristr() expects parameter 3 to be bool, resource given, %s(%d)
NULL
===DONE===

View file

@ -161,19 +161,19 @@ string(12) "737472696e67"
string(12) "737472696e67"
--empty array--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--int indexed array--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--associative array--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--nested arrays--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--uppercase NULL--
@ -213,11 +213,11 @@ string(12) "737472696e67"
string(12) "737472696e67"
--instance of classWithToString--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--instance of classWithoutToString--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--undefined var--
@ -227,6 +227,6 @@ string(8) "5f76616c"
string(8) "5f76616c"
--resource--
Error: 2 - mb_strrchr() expects parameter 3 to be boolean, resource given, %s(%d)
Error: 2 - mb_strrchr() expects parameter 3 to be bool, resource given, %s(%d)
NULL
===DONE===

View file

@ -161,19 +161,19 @@ string(12) "737472696e67"
string(12) "737472696e67"
--empty array--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--int indexed array--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--associative array--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--nested arrays--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--uppercase NULL--
@ -213,11 +213,11 @@ string(12) "737472696e67"
string(12) "737472696e67"
--instance of classWithToString--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--instance of classWithoutToString--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--undefined var--
@ -227,6 +227,6 @@ string(8) "5f76616c"
string(8) "5f76616c"
--resource--
Error: 2 - mb_strrichr() expects parameter 3 to be boolean, resource given, %s(%d)
Error: 2 - mb_strrichr() expects parameter 3 to be bool, resource given, %s(%d)
NULL
===DONE===

View file

@ -161,19 +161,19 @@ string(12) "737472696e67"
string(12) "737472696e67"
--empty array--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--int indexed array--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--associative array--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--nested arrays--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, array given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, array given, %s(%d)
NULL
--uppercase NULL--
@ -213,11 +213,11 @@ string(12) "737472696e67"
string(12) "737472696e67"
--instance of classWithToString--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--instance of classWithoutToString--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, object given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, object given, %s(%d)
NULL
--undefined var--
@ -227,6 +227,6 @@ string(8) "5f76616c"
string(8) "5f76616c"
--resource--
Error: 2 - mb_strstr() expects parameter 3 to be boolean, resource given, %s(%d)
Error: 2 - mb_strstr() expects parameter 3 to be bool, resource given, %s(%d)
NULL
===DONE===

View file

@ -103,7 +103,7 @@ bool(true)
bool(false)
string(0) ""
Warning: mysqli_stmt_reset() expects parameter 1 to be mysqli_stmt, boolean given in %s on line %d
Warning: mysqli_stmt_reset() expects parameter 1 to be mysqli_stmt, bool given in %s on line %d
NULL
Rows: 3
array(1) {

View file

@ -26,7 +26,7 @@ $DB->query_single('SELECT DATE()');
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to a member function fetch_row() on boolean in %sbug33491.php:%d
Fatal error: Uncaught Error: Call to a member function fetch_row() on bool in %sbug33491.php:%d
Stack trace:
#0 %s(%d): DB->query_single('SELECT DATE()')
#1 {main}

View file

@ -66,13 +66,13 @@ bool(false)
%s(0) ""
[005]
Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in %s on line %d
Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, bool given in %s on line %d
NULL
d
bool(false)
%s(0) ""
[007]
Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in %s on line %d
Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, bool given in %s on line %d
NULL
done!

View file

@ -54,23 +54,23 @@ Warning: mysqli_%sonnect(): Too many open links (1) in %s on line %d
Warning: mysqli_%sonnect(): Too many open links (1) in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_query() expects parameter 1 to be mysqli, bool given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in %s on line %d
Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in %s on line %d
done!

View file

@ -78,9 +78,9 @@ require_once('skipifconnectfailure.inc');
require_once("clean_table.inc");
?>
--EXPECTF--
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in %s on line %d
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given in %s on line %d
Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, boolean given in %s on line %d
Warning: mysqli_free_result() expects parameter 1 to be mysqli_result, bool given in %s on line %d
Warning: mysqli_num_rows(): Couldn't fetch mysqli_result in %s on line %d
run_tests.php don't fool me with your 'ungreedy' expression '.+?'!

View file

@ -167,7 +167,7 @@ array(4) {
Test 2 - Parse
Warning: oci_error() expects parameter 1 to be resource, boolean given in %sbug51291_1.php on line %d
Warning: oci_error() expects parameter 1 to be resource, bool given in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>
@ -182,7 +182,7 @@ array(4) {
NULL
2nd call
Warning: oci_error() expects parameter 1 to be resource, boolean given in %sbug51291_1.php on line %d
Warning: oci_error() expects parameter 1 to be resource, bool given in %sbug51291_1.php on line %d
bool(false)
array(4) {
["code"]=>

View file

@ -17,9 +17,9 @@ openssl_pkey_get_details(openssl_pkey_new($dh));
?>
--EXPECTF--
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s on line %d
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s on line %d
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -13,4 +13,4 @@ openssl_x509_free(false);
resource(%d) of type (OpenSSL X.509)
resource(%d) of type (Unknown)
Warning: openssl_x509_free() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: openssl_x509_free() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -93,7 +93,7 @@ array(1) {
Warning: PDO::prepare(): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'unknown_column' in 'field list' in %s on line %d
Fatal error: Uncaught Error: Call to a member function execute() on boolean in %s:%d
Fatal error: Uncaught Error: Call to a member function execute() on bool in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -36,7 +36,7 @@ Warning: PDO::prepare(): SQLSTATE[HY093]: Invalid parameter number: mixed named
Warning: PDO::prepare(): SQLSTATE[HY093]: Invalid parameter number in %s on line %d
Fatal error: Uncaught Error: Call to a member function execute() on boolean in %s:%d
Fatal error: Uncaught Error: Call to a member function execute() on bool in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -56,7 +56,7 @@ Testing native PS...
Warning: PDO::prepare(): SQLSTATE[42S02]: Base table or view not found: 1146 Table '%s.ihopeitdoesnotexist' doesn't exist in %s on line %d
Fatal error: Uncaught Error: Call to a member function execute() on boolean in %s:%d
Fatal error: Uncaught Error: Call to a member function execute() on bool in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d

View file

@ -99,7 +99,7 @@ Native Prepared Statements...
Warning: PDO::query(): SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your %s server version for the right syntax to use near '%SSELECT label FROM test ORDER BY id ASC LIMIT 1' at line %d in %s on line %d
Fatal error: Uncaught Error: Call to a member function errorInfo() on boolean in %s:%d
Fatal error: Uncaught Error: Call to a member function errorInfo() on bool in %s:%d
Stack trace:
#0 %s(%d): mysql_stmt_multiquery_wrong_usage(Object(PDO))
#1 {main}

View file

@ -37,8 +37,8 @@ include $pname . '/b/c.php';
Warning: fopen(phar://%sopen_for_write_existing_b.phar.php/b/c.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_existing_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_existing_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_existing_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_existing_b.php on line %d
This is b/c
===DONE===

View file

@ -31,8 +31,8 @@ include $pname . '/b/c.php';
Warning: fopen(phar://%sopen_for_write_existing_c.phar.php/b/c.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %spen_for_write_existing_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %spen_for_write_existing_c.php on line %d
This is b/c
===DONE===

View file

@ -39,9 +39,9 @@ include $pname . '/b/new.php';
Warning: fopen(phar://%sopen_for_write_newfile_b.phar.php/b/new.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_newfile_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_b.php on line %d
This is b/c
Warning: include(phar://%sopen_for_write_newfile_b.phar.php/b/new.php): failed to open stream: phar error: "b/new.php" is not a file in phar "%sopen_for_write_newfile_b.phar.php" in %sopen_for_write_newfile_b.php on line 22

View file

@ -33,9 +33,9 @@ include $pname . '/b/new.php';
Warning: fopen(phar://%sopen_for_write_newfile_c.phar.php/b/new.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_newfile_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_c.php on line %d
This is b/c
Warning: include(phar://%sopen_for_write_newfile_c.phar.php/b/new.php): failed to open stream: phar error: "b/new.php" is not a file in phar "%sopen_for_write_newfile_c.phar.php" in %sopen_for_write_newfile_c.php on line %d

View file

@ -22,7 +22,7 @@ var_dump(Phar::running());
--CLEAN--
<?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
--EXPECTF--
Warning: Phar::running() expects parameter 1 to be boolean, array given in phar://%sphar_running.phar.php/index.php on line 2
Warning: Phar::running() expects parameter 1 to be bool, array given in phar://%sphar_running.phar.php/index.php on line 2
string(%d) "phar://%sphar_running.phar.php"
string(%d) "%sphar_running.phar.php"
string(0) ""

View file

@ -50,9 +50,9 @@ include $alias . '/b/c.php';
Warning: fopen(phar://%sopen_for_write_existing_b.phar.tar/b/c.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_existing_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_existing_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_existing_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_existing_b.php on line %d
This is b/c
===DONE===

View file

@ -44,9 +44,9 @@ include $alias . '/b/c.php';
Warning: fopen(phar://%sopen_for_write_existing_c.phar.tar/b/c.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %spen_for_write_existing_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %spen_for_write_existing_c.php on line %d
This is b/c
===DONE===

View file

@ -51,9 +51,9 @@ include $alias . '/b/new.php';
Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_newfile_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_b.php on line %d
This is b/c
Warning: include(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar error: "b/new.php" is not a file in phar "%sopen_for_write_newfile_b.phar.tar" in %sopen_for_write_newfile_b.php on line %d

View file

@ -44,9 +44,9 @@ include $alias . '/b/new.php';
Warning: fopen(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_newfile_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_c.php on line %d
This is b/c
Warning: include(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): failed to open stream: phar error: "b/new.php" is not a file in phar "%sopen_for_write_newfile_c.phar.tar" in %sopen_for_write_newfile_c.php on line %d

View file

@ -47,8 +47,8 @@ include $alias . '/b/c.php';
Warning: fopen(phar://%sopen_for_write_existing_b.phar.zip/b/c.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %spen_for_write_existing_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %spen_for_write_existing_b.php on line %d
This is b/c
===DONE===

View file

@ -41,8 +41,8 @@ include $alias . '/b/c.php';
Warning: fopen(phar://%sopen_for_write_existing_c.phar.zip/b/c.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_existing_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %spen_for_write_existing_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %spen_for_write_existing_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %spen_for_write_existing_c.php on line %d
This is b/c
===DONE===

View file

@ -50,9 +50,9 @@ include $alias . '/b/new.php';
Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_newfile_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_b.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_b.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_b.php on line %d
This is b/c
Warning: include(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar error: "b/new.php" is not a file in phar "%sopen_for_write_newfile_b.phar.zip" in %sopen_for_write_newfile_b.php on line %d

View file

@ -44,9 +44,9 @@ include $alias . '/b/new.php';
Warning: fopen(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): failed to open stream: phar error: write operations disabled by the php.ini setting phar.readonly in %sopen_for_write_newfile_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_c.php on line %d
Warning: fwrite() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, boolean given in %sopen_for_write_newfile_c.php on line %d
Warning: fclose() expects parameter 1 to be resource, bool given in %sopen_for_write_newfile_c.php on line %d
This is b/c
Warning: include(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): failed to open stream: phar error: "b/new.php" is not a file in phar "%sopen_for_write_newfile_c.phar.zip" in %sopen_for_write_newfile_c.php on line %d

View file

@ -53,13 +53,13 @@ reflectClassConstant($instance, "BAD_CONST");
Reflecting on class constant TestClass::PUB
__toString():
string(38) "Constant [ public boolean PUB ] { 1 }
string(35) "Constant [ public bool PUB ] { 1 }
"
export():
string(38) "Constant [ public boolean PUB ] { 1 }
string(35) "Constant [ public bool PUB ] { 1 }
"
export():
Constant [ public boolean PUB ] { 1 }
Constant [ public bool PUB ] { 1 }
NULL
getName():

View file

@ -29,7 +29,7 @@ NULL
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, float given in %s on line 10
NULL
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 11
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, bool given in %s on line 11
NULL
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, string given in %s on line 12

View file

@ -24,4 +24,4 @@ try {
?>
--EXPECT--
string(92) "Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, boolean given"
string(89) "Argument 2 passed to ReflectionMethod::invokeArgs() must be of the type array, bool given"

View file

@ -93,7 +93,7 @@ string(72) "Given object is not an instance of the class this method was declare
Non-object:
Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, boolean given in %s on line %d
Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, bool given in %s on line %d
NULL
Static method:
@ -104,7 +104,7 @@ NULL
Warning: ReflectionMethod::invokeArgs() expects exactly 2 parameters, 1 given in %s on line %d
NULL
Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, boolean given in %s on line %d
Warning: ReflectionMethod::invokeArgs() expects parameter 1 to be object, bool given in %s on line %d
NULL
Called staticMethod()
Exception: Using $this when not in object context

View file

@ -98,7 +98,7 @@ Static method:
Warning: ReflectionMethod::invoke() expects at least 1 parameter, 0 given in %s on line %d
NULL
Warning: ReflectionMethod::invoke() expects parameter 1 to be object, boolean given in %s on line %d
Warning: ReflectionMethod::invoke() expects parameter 1 to be object, bool given in %s on line %d
NULL
Called staticMethod()
Exception: Using $this when not in object context

View file

@ -60,7 +60,7 @@ try {
--EXPECTF--
invoke() on a non-object:
Warning: ReflectionMethod::invoke() expects parameter 1 to be object, boolean given in %s%eReflectionMethod_invoke_error1.php on line %d
Warning: ReflectionMethod::invoke() expects parameter 1 to be object, bool given in %s%eReflectionMethod_invoke_error1.php on line %d
NULL
invoke() on a non-instance:

View file

@ -28,7 +28,7 @@ NULL
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, float given in %s on line 9
NULL
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, boolean given in %s on line 10
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, bool given in %s on line 10
NULL
Warning: ReflectionClass::isInstance() expects parameter 1 to be object, string given in %s on line 11

View file

@ -63,7 +63,7 @@ NULL
Wrong type of arg:
Warning: ReflectionProperty::getValue() expects parameter 1 to be object, boolean given in %s on line %d
Warning: ReflectionProperty::getValue() expects parameter 1 to be object, bool given in %s on line %d
NULL
Instance without property:

View file

@ -72,7 +72,7 @@ NULL
Wrong type of arg:
Warning: ReflectionProperty::setValue() expects parameter 1 to be object, boolean given in %s on line %d
Warning: ReflectionProperty::setValue() expects parameter 1 to be object, bool given in %s on line %d
NULL
Static property / too many args:

View file

@ -20,7 +20,7 @@ Class [ <user> class just_constants ] {
@@ %s %d-%d
- Constants [5] {
Constant [ public boolean BOOLEAN_CONSTANT ] { 1 }
Constant [ public bool BOOLEAN_CONSTANT ] { 1 }
Constant [ public null NULL_CONSTANT ] { }
Constant [ public string STRING_CONSTANT ] { This is a string }
Constant [ public int INTEGER_CONSTANT ] { 1000 }

View file

@ -197,7 +197,7 @@ bool(false)
-- Iteration 21 --
Warning: session_regenerate_id() expects parameter 1 to be boolean, object given in %s on line %d
Warning: session_regenerate_id() expects parameter 1 to be bool, object given in %s on line %d
NULL
-- Iteration 22 --
@ -212,7 +212,7 @@ bool(false)
-- Iteration 24 --
Warning: session_regenerate_id() expects parameter 1 to be boolean, resource given in %s on line %d
Warning: session_regenerate_id() expects parameter 1 to be bool, resource given in %s on line %d
NULL
Done

View file

@ -268,10 +268,10 @@ bool(true)
bool(true)
bool(true)
Warning: session_set_cookie_params() expects parameter 4 to be boolean, object given in %s on line 84
Warning: session_set_cookie_params() expects parameter 4 to be bool, object given in %s on line 84
NULL
Warning: session_set_cookie_params() expects parameter 5 to be boolean, object given in %s on line 85
Warning: session_set_cookie_params() expects parameter 5 to be bool, object given in %s on line 85
NULL
bool(true)
@ -300,10 +300,10 @@ NULL
Warning: session_set_cookie_params() expects parameter 3 to be string, resource given in %s on line 83
NULL
Warning: session_set_cookie_params() expects parameter 4 to be boolean, resource given in %s on line 84
Warning: session_set_cookie_params() expects parameter 4 to be bool, resource given in %s on line 84
NULL
Warning: session_set_cookie_params() expects parameter 5 to be boolean, resource given in %s on line 85
Warning: session_set_cookie_params() expects parameter 5 to be bool, resource given in %s on line 85
NULL
bool(true)
Done

View file

@ -186,7 +186,7 @@ bool(false)
-- Iteration 12 --
Warning: session_start() expects parameter 1 to be array, boolean given in %s on line %d
Warning: session_start() expects parameter 1 to be array, bool given in %s on line %d
bool(false)
Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
@ -194,7 +194,7 @@ bool(false)
-- Iteration 13 --
Warning: session_start() expects parameter 1 to be array, boolean given in %s on line %d
Warning: session_start() expects parameter 1 to be array, bool given in %s on line %d
bool(false)
Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
@ -202,7 +202,7 @@ bool(false)
-- Iteration 14 --
Warning: session_start() expects parameter 1 to be array, boolean given in %s on line %d
Warning: session_start() expects parameter 1 to be array, bool given in %s on line %d
bool(false)
Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d
@ -210,7 +210,7 @@ bool(false)
-- Iteration 15 --
Warning: session_start() expects parameter 1 to be array, boolean given in %s on line %d
Warning: session_start() expects parameter 1 to be array, bool given in %s on line %d
bool(false)
Warning: session_destroy(): Trying to destroy uninitialized session in %s on line %d

View file

@ -27,4 +27,4 @@ resource(%i) of type (Socket)
Warning: socket_create_listen(): unable to bind to given address [%i]: %a in %s on line %d
bool(false)
Warning: socket_close() expects parameter 1 to be resource, boolean given in %s on line %d
Warning: socket_close() expects parameter 1 to be resource, bool given in %s on line %d

View file

@ -7,4 +7,4 @@ Philip Norton philipnorton42@gmail.com
$array = SplFixedArray::fromArray(true);
?>
--EXPECTF--
Warning: SplFixedArray::fromArray() expects parameter 1 to be array, boolean given in %s on line %d
Warning: SplFixedArray::fromArray() expects parameter 1 to be array, bool given in %s on line %d

View file

@ -26,7 +26,7 @@ foreach($data_provider as $input) {
Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, array given in %s on line %d
NULL
Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, boolean given in %s on line %d
Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, bool given in %s on line %d
NULL
Warning: SplObjectStorage::addAll() expects parameter 1 to be SplObjectStorage, string given in %s on line %d

View file

@ -12,7 +12,7 @@ var_dump($s->attach(new stdClass, true, true));
?>
--EXPECTF--
Warning: SplObjectStorage::attach() expects parameter 1 to be object, boolean given in %s on line %d
Warning: SplObjectStorage::attach() expects parameter 1 to be object, bool given in %s on line %d
NULL
Warning: SplObjectStorage::attach() expects at most 2 parameters, 3 given in %s on line %d

View file

@ -26,7 +26,7 @@ foreach($data_provider as $input) {
Warning: SplObjectStorage::contains() expects parameter 1 to be object, array given in %s on line %d
NULL
Warning: SplObjectStorage::contains() expects parameter 1 to be object, boolean given in %s on line %d
Warning: SplObjectStorage::contains() expects parameter 1 to be object, bool given in %s on line %d
NULL
Warning: SplObjectStorage::contains() expects parameter 1 to be object, string given in %s on line %d

View file

@ -26,7 +26,7 @@ foreach($data_provider as $input) {
Warning: SplObjectStorage::detach() expects parameter 1 to be object, array given in %s on line %d
NULL
Warning: SplObjectStorage::detach() expects parameter 1 to be object, boolean given in %s on line %d
Warning: SplObjectStorage::detach() expects parameter 1 to be object, bool given in %s on line %d
NULL
Warning: SplObjectStorage::detach() expects parameter 1 to be object, string given in %s on line %d

View file

@ -28,7 +28,7 @@ foreach($data_provider as $input) {
Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, array given in %s on line %d
NULL
Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, boolean given in %s on line %d
Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, bool given in %s on line %d
NULL
Warning: SplObjectStorage::offsetGet() expects parameter 1 to be object, string given in %s on line %d

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