Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 8 additions & 78 deletions Zend/tests/backtrace/debug_backtrace_options.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ function doit($a, $b, $how)
{
echo "==default\n";
$how();
echo "==true\n";
$how(true);
echo "==false\n";
$how(false);
echo "==0\n";
$how(0);
echo "==DEBUG_BACKTRACE_PROVIDE_OBJECT\n";
$how(DEBUG_BACKTRACE_PROVIDE_OBJECT);
echo "==DEBUG_BACKTRACE_IGNORE_ARGS\n";
Expand Down Expand Up @@ -48,11 +46,7 @@ foo::statCall("doit", "backtrace_print");
#0 %sdebug_backtrace_options.php(%d): doit('a', 'b', 'debug_print_bac...')
#1 %sdebug_backtrace_options.php(%d): foo->doCall('doit', 'debug_print_bac...')
#2 %sdebug_backtrace_options.php(%d): foo::statCall('doit', 'debug_print_bac...')
==true
#0 %sdebug_backtrace_options.php(%d): doit('a', 'b', 'debug_print_bac...')
#1 %sdebug_backtrace_options.php(%d): foo->doCall('doit', 'debug_print_bac...')
#2 %sdebug_backtrace_options.php(%d): foo::statCall('doit', 'debug_print_bac...')
==false
==0
#0 %sdebug_backtrace_options.php(%d): doit('a', 'b', 'debug_print_bac...')
#1 %sdebug_backtrace_options.php(%d): foo->doCall('doit', 'debug_print_bac...')
#2 %sdebug_backtrace_options.php(%d): foo::statCall('doit', 'debug_print_bac...')
Expand Down Expand Up @@ -131,7 +125,7 @@ Array
)

)
==true
==0
Array
(
[0] => Array
Expand All @@ -141,71 +135,7 @@ Array
[function] => backtrace_print
[args] => Array
(
[0] => 1
)

)

[1] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => %d
[function] => doit
[args] => Array
(
[0] => a
[1] => b
[2] => backtrace_print
)

)

[2] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => %d
[function] => doCall
[class] => foo
[object] => foo Object
(
)

[type] => ->
[args] => Array
(
[0] => doit
[1] => backtrace_print
)

)

[3] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => %d
[function] => statCall
[class] => foo
[type] => ::
[args] => Array
(
[0] => doit
[1] => backtrace_print
)

)

)
==false
Array
(
[0] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => 19
[function] => backtrace_print
[args] => Array
(
[0] =>
[0] => 0
)

)
Expand Down Expand Up @@ -261,7 +191,7 @@ Array
[0] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => 21
[line] => 19
[function] => backtrace_print
[args] => Array
(
Expand Down Expand Up @@ -325,7 +255,7 @@ Array
[0] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => 23
[line] => 21
[function] => backtrace_print
)

Expand Down Expand Up @@ -361,7 +291,7 @@ Array
[0] => Array
(
[file] => %sdebug_backtrace_options.php
[line] => 25
[line] => 23
[function] => backtrace_print
)

Expand Down
2 changes: 1 addition & 1 deletion Zend/tests/builtin_functions/builtin_functions_basic.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var_dump(count(get_defined_functions()));
var_dump(gettype(get_declared_interfaces()));
var_dump(count(get_declared_interfaces()));

var_dump(get_extension_funcs(true));
var_dump(get_extension_funcs("1"));
var_dump(gettype(get_extension_funcs("standard")));
var_dump(count(get_extension_funcs("standard")));
var_dump(gettype(get_extension_funcs("zend")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ declare(strict_types=1);
namespace Foo;

// strlen() will be called with strict_types=0, so this is legal.
var_dump(call_user_func('strlen', false));
var_dump(call_user_func('strlen', 25));

?>
--EXPECT--
int(0)
int(2)
21 changes: 0 additions & 21 deletions ext/gd/tests/imageantialias_error2.phpt

This file was deleted.

8 changes: 0 additions & 8 deletions ext/json/tests/bug69187.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@
Bug #69187 json_last_error return BC in PHP7
--FILE--
<?php
var_dump(json_decode(FALSE));
var_dump(json_last_error());
var_dump(json_decode(""));
var_dump(json_last_error());

var_dump(json_decode(0));
var_dump(json_last_error());
var_dump(json_decode(1));
var_dump(json_last_error());
var_dump(json_decode(TRUE));
var_dump(json_last_error());

json_decode("\xED\xA0\xB4");
var_dump(json_last_error());
Expand All @@ -29,11 +25,7 @@ var_dump(json_last_error());
--EXPECT--
NULL
int(4)
NULL
int(4)
int(0)
int(0)
int(1)
int(0)
int(1)
int(0)
Expand Down
10 changes: 0 additions & 10 deletions ext/mysqli/tests/mysqli_prepare_no_object.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ require_once 'skipifconnectfailure.inc';
<?php
require 'table.inc';

if (false !== ($tmp = mysqli_prepare($link, false)))
printf("[001] Expecting boolean/false, got %s/%s\n", gettype($tmp), var_export($tmp, true));
printf("a) [%d] %s\n", mysqli_errno($link), mysqli_error($link));

if (false !== ($tmp = mysqli_prepare($link, '')))
printf("[002] Expecting boolean/false, got %s/%s\n", gettype($tmp), var_export($tmp, true));
printf("b) [%d] %s\n", mysqli_errno($link), mysqli_error($link));
Expand All @@ -22,10 +18,6 @@ require_once 'skipifconnectfailure.inc';

$mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);

if (false !== ($tmp = $mysqli->prepare(false)))
printf("[004] Expecting boolean/false, got %s/%s\n", gettype($tmp), var_export($tmp, true));
printf("c) [%d] %s\n", $mysqli->errno, $mysqli->error);

if (false !== ($tmp = $mysqli->prepare('')))
printf("[005] Expecting boolean/false, got %s/%s\n", gettype($tmp), var_export($tmp, true));
printf("c) [%d] %s\n", $mysqli->errno, $mysqli->error);
Expand All @@ -37,8 +29,6 @@ require_once 'skipifconnectfailure.inc';
require_once 'clean_table.inc';
?>
--EXPECT--
a) [1065] Query was empty
b) [1065] Query was empty
c) [1065] Query was empty
c) [1065] Query was empty
done!
2 changes: 1 addition & 1 deletion ext/openssl/tests/bug38261.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ openssl key from zval leaks
openssl
--FILE--
<?php
$cert = false;
$cert = '';
class test {
function __toString() {
return "test object";
Expand Down
7 changes: 0 additions & 7 deletions ext/reflection/tests/ReflectionClass_constructor_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ try {
echo $e->getMessage() . "\n";
}

try {
var_dump(new ReflectionClass(true));
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}

try {
var_dump(new ReflectionClass(1));
} catch (Exception $e) {
Expand Down Expand Up @@ -51,7 +45,6 @@ ReflectionClass::__construct() expects exactly 1 argument, 0 given
Deprecated: ReflectionClass::__construct(): Passing null to parameter #1 ($objectOrClass) of type object|string is deprecated in %s on line %d
Class "" does not exist
Class "1" does not exist
Class "1" does not exist
ReflectionClass::__construct(): Argument #1 ($objectOrClass) must be of type object|string, array given
ReflectionClass::__construct() expects exactly 1 argument, 2 given
Class "X" does not exist
25 changes: 0 additions & 25 deletions ext/reflection/tests/ReflectionClass_getConstant_error.phpt

This file was deleted.

6 changes: 0 additions & 6 deletions ext/reflection/tests/ReflectionClass_getMethod_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ try {
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
try {
var_dump($rc->getMethod(true));
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
try {
var_dump($rc->getMethod(array(1,2,3)));
} catch (TypeError $e) {
Expand All @@ -63,6 +58,5 @@ Deprecated: ReflectionClass::getMethod(): Passing null to parameter #1 ($name) o
Method C::() does not exist
Method C::1() does not exist
Method C::1.5() does not exist
Method C::1() does not exist
ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, array given
ReflectionClass::getMethod(): Argument #1 ($name) must be of type string, C given
6 changes: 0 additions & 6 deletions ext/reflection/tests/ReflectionClass_getProperty_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ try {
} catch (exception $e) {
echo $e->getMessage() . "\n";
}
try {
var_dump($rc->getProperty(true));
} catch (exception $e) {
echo $e->getMessage() . "\n";
}
try {
var_dump($rc->getProperty(array(1,2,3)));
} catch (TypeError $e) {
Expand All @@ -61,6 +56,5 @@ Deprecated: ReflectionClass::getProperty(): Passing null to parameter #1 ($name)
Property C::$ does not exist
Property C::$1 does not exist
Property C::$1.5 does not exist
Property C::$1 does not exist
ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, array given
ReflectionClass::getProperty(): Argument #1 ($name) must be of type string, C given
22 changes: 0 additions & 22 deletions ext/reflection/tests/ReflectionClass_hasConstant_002.phpt

This file was deleted.

22 changes: 0 additions & 22 deletions ext/reflection/tests/ReflectionClass_hasMethod_002.phpt

This file was deleted.

Loading
Loading