Skip to content

Commit 0146bab

Browse files
committed
Merge branch 'PHP-7.4'
2 parents 319e2bc + 94d37a5 commit 0146bab

29 files changed

+18
-42
lines changed

ext/spl/tests/arrayObject_getIteratorClass_basic1.phpt

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,36 @@ class MyIterator extends ArrayIterator {
66

77
function __construct() {
88
$args = func_get_args();
9-
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
9+
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
1010
}
1111

1212
function rewind() {
1313
$args = func_get_args();
14-
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
14+
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
1515
return parent::rewind();
1616
}
1717

1818
function valid() {
1919
$args = func_get_args();
20-
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
20+
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
2121
return parent::valid();
2222
}
2323

2424
function current() {
2525
$args = func_get_args();
26-
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
26+
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
2727
return parent::current();
2828
}
2929

3030
function next() {
3131
$args = func_get_args();
32-
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
32+
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
3333
return parent::next();
3434
}
3535

3636
function key() {
3737
$args = func_get_args();
38-
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
38+
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
3939
return parent::key();
4040
}
4141
}

ext/spl/tests/arrayObject_magicMethods5.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ class UsesMagic extends ArrayObject {
1616

1717
function __get($name) {
1818
$args = func_get_args();
19-
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
19+
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
2020
}
2121
function __set($name, $value) {
2222
$args = func_get_args();
23-
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
23+
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
2424
}
2525
function __isset($name) {
2626
$args = func_get_args();
27-
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
27+
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
2828
}
2929
function __unset($name) {
3030
$args = func_get_args();
31-
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
31+
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
3232
}
3333

3434
}

ext/standard/tests/file/file_get_contents_variation1.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ $newpath = create_include_path();
2828
set_include_path($newpath);
2929
runtest();
3030
teardown_include_path();
31-
restore_include_path();
3231
chdir("..");
3332
rmdir($thisTestDir);
3433

ext/standard/tests/file/file_get_contents_variation2.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ $newpath = create_include_path();
2929
set_include_path($newpath);
3030
runtest();
3131
teardown_include_path();
32-
restore_include_path();
3332
chdir("..");
3433
rmdir($thisTestDir);
3534

ext/standard/tests/file/file_put_contents_variation4.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ set_include_path($newpath);
2828
runtest();
2929

3030
teardown_include_path();
31-
restore_include_path();
3231
chdir("..");
3332
rmdir($thisTestDir);
3433

ext/standard/tests/file/file_put_contents_variation6.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ set_include_path($newpath);
2929
runtest();
3030

3131
teardown_include_path();
32-
restore_include_path();
3332
chdir("..");
3433
rmdir($thisTestDir);
3534

ext/standard/tests/file/fopen_variation12.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Dave Kelsey <[email protected]>
1212

1313
set_include_path("rubbish");
1414
testme();
15-
restore_include_path();
1615

1716

1817
function testme() {

ext/standard/tests/file/fopen_variation13.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ set_include_path($newpath);
2121
runtest();
2222

2323
teardown_include_path();
24-
restore_include_path();
2524

2625

2726
function runtest() {

ext/standard/tests/file/fopen_variation16.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ set_include_path($newpath);
2525
runtest();
2626

2727
teardown_include_path();
28-
restore_include_path();
2928
chdir("..");
3029
rmdir($thisTestDir);
3130

ext/standard/tests/file/fopen_variation17.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ set_include_path($newpath);
2525
runtest();
2626

2727
teardown_include_path();
28-
restore_include_path();
2928
chdir("..");
3029
rmdir($thisTestDir);
3130

ext/standard/tests/file/fopen_variation5.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
4545
foreach($modes as $mode) {
4646
test_fopen($mode);
4747
}
48-
restore_include_path();
4948

5049
// remove the directory structure
5150
chdir($baseDir);

ext/standard/tests/file/fopen_variation7.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ set_include_path($newpath);
2424
runtest();
2525

2626
teardown_include_path();
27-
restore_include_path();
2827
chdir("..");
2928
rmdir($thisTestDir);
3029

ext/standard/tests/file/fopen_variation8.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
4545
foreach($modes as $mode) {
4646
test_fopen($mode);
4747
}
48-
restore_include_path();
4948

5049
// remove the directory structure
5150
chdir($baseDir);

ext/standard/tests/file/fopen_variation9.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ set_include_path($newpath);
2525
runtest();
2626

2727
teardown_relative_path();
28-
restore_include_path();
2928
chdir("..");
3029
rmdir($thisTestDir);
3130

ext/standard/tests/file/readfile_variation6.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ $newpath = create_include_path();
2727
set_include_path($newpath);
2828
runtest();
2929
teardown_include_path();
30-
restore_include_path();
3130
chdir("..");
3231
rmdir($thisTestDir);
3332

ext/standard/tests/file/readfile_variation7.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ $newpath = create_include_path();
2727
set_include_path($newpath);
2828
runtest();
2929
teardown_include_path();
30-
restore_include_path();
3130
chdir("..");
3231
rmdir($thisTestDir);
3332

ext/standard/tests/http/bug60570.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Bug #60570 (Stream context leaks when http request fails)
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/standard/tests/http/bug69337.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Bug #69337 (Stream context leaks when http request fails)
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22345'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/standard/tests/http/http_response_header_01.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ $http_reponse_header (no redirect)
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22346'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/standard/tests/http/http_response_header_02.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ $http_reponse_header (redirect)
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22347'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/standard/tests/http/http_response_header_03.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ $http_reponse_header (redirect + not found)
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22348'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/standard/tests/http/http_response_header_04.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ $http_reponse_header (header with trailing whitespace)
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22349'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/standard/tests/http/http_response_header_05.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ $http_reponse_header (whitespace-only "header")
44
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22350'); ?>
55
--INI--
66
allow_url_fopen=1
7-
allow_url_include=1
87
--FILE--
98
<?php
109
require 'server.inc';

ext/zlib/tests/gzfile_variation15.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ require_once('reading_include_path.inc');
1414
//define the files to go into these directories, create one in dir2
1515
set_include_path($newIncludePath);
1616
test_gzfile();
17-
restore_include_path();
1817

1918
// remove the directory structure
2019
chdir($baseDir);

ext/zlib/tests/gzopen_variation4.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ $modes = array("r", "r+", "rt");
2626
foreach($modes as $mode) {
2727
test_gzopen($mode);
2828
}
29-
restore_include_path();
3029

3130
// remove the directory structure
3231
chdir($baseDir);

ext/zlib/tests/gzopen_variation5.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ set_include_path($newpath);
2929
runtest();
3030

3131
teardown_relative_path();
32-
restore_include_path();
3332
chdir("..");
3433
rmdir($thisTestDir);
3534

ext/zlib/tests/readgzfile_variation15.phpt

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ require_once('reading_include_path.inc');
1414
//define the files to go into these directories, create one in dir2
1515
set_include_path($newIncludePath);
1616
test_readgzfile();
17-
restore_include_path();
1817

1918
// remove the directory structure
2019
chdir($baseDir);

scripts/dev/bless_tests.php

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function normalizeOutput(string $out): string {
5454
$out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out);
5555
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
5656
$out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
57+
$out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
5758
return $out;
5859
}
5960

tests/basic/precision.phpt

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ini_set('serialize_precision', -1);
1313
echo ini_get('precision'), PHP_EOL;
1414
echo ini_get('serialize_precision'), PHP_EOL;
1515
echo "OUTPUTS".PHP_EOL;
16-
echo join($v, ' ').PHP_EOL;
16+
echo join(' ', $v).PHP_EOL;
1717
var_dump(serialize($v));
1818
var_export($v);echo PHP_EOL;
1919

@@ -24,7 +24,7 @@ ini_set('serialize_precision', 0);
2424
echo ini_get('precision'), PHP_EOL;
2525
echo ini_get('serialize_precision'), PHP_EOL;
2626
echo "OUTPUTS".PHP_EOL;
27-
echo join($v, ' ').PHP_EOL;
27+
echo join(' ', $v).PHP_EOL;
2828
var_dump(serialize($v));
2929
var_export($v);echo PHP_EOL;
3030

@@ -34,7 +34,7 @@ ini_set('serialize_precision', 9);
3434
echo ini_get('precision'), PHP_EOL;
3535
echo ini_get('serialize_precision'), PHP_EOL;
3636
echo "OUTPUTS".PHP_EOL;
37-
echo join($v, ' ').PHP_EOL;
37+
echo join(' ', $v).PHP_EOL;
3838
var_dump(serialize($v));
3939
var_export($v);echo PHP_EOL;
4040

@@ -44,7 +44,7 @@ ini_set('serialize_precision', 14);
4444
echo ini_get('precision'), PHP_EOL;
4545
echo ini_get('serialize_precision'), PHP_EOL;
4646
echo "OUTPUTS".PHP_EOL;
47-
echo join($v, ' ').PHP_EOL;
47+
echo join(' ', $v).PHP_EOL;
4848
var_dump(serialize($v));
4949
var_export($v);echo PHP_EOL;
5050

@@ -54,7 +54,7 @@ ini_set('serialize_precision', 17);
5454
echo ini_get('precision'), PHP_EOL;
5555
echo ini_get('serialize_precision'), PHP_EOL;
5656
echo "OUTPUTS".PHP_EOL;
57-
echo join($v, ' ').PHP_EOL;
57+
echo join(' ', $v).PHP_EOL;
5858
var_dump(serialize($v));
5959
var_export($v);echo PHP_EOL;
6060

@@ -64,7 +64,7 @@ ini_set('serialize_precision', 25);
6464
echo ini_get('precision'), PHP_EOL;
6565
echo ini_get('serialize_precision'), PHP_EOL;
6666
echo "OUTPUTS".PHP_EOL;
67-
echo join($v, ' ').PHP_EOL;
67+
echo join(' ', $v).PHP_EOL;
6868
var_dump(serialize($v));
6969
var_export($v);echo PHP_EOL;
7070

@@ -74,7 +74,7 @@ ini_set('serialize_precision', 100);
7474
echo ini_get('precision'), PHP_EOL;
7575
echo ini_get('serialize_precision'), PHP_EOL;
7676
echo "OUTPUTS".PHP_EOL;
77-
echo join($v, ' ').PHP_EOL;
77+
echo join(' ', $v).PHP_EOL;
7878
var_dump(serialize($v));
7979
var_export($v);echo PHP_EOL;
8080
--EXPECT--

0 commit comments

Comments
 (0)