mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
This commit is contained in:
commit
0146bab449
29 changed files with 18 additions and 42 deletions
|
@ -6,36 +6,36 @@ class MyIterator extends ArrayIterator {
|
|||
|
||||
function __construct() {
|
||||
$args = func_get_args();
|
||||
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
}
|
||||
|
||||
function rewind() {
|
||||
$args = func_get_args();
|
||||
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
return parent::rewind();
|
||||
}
|
||||
|
||||
function valid() {
|
||||
$args = func_get_args();
|
||||
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
return parent::valid();
|
||||
}
|
||||
|
||||
function current() {
|
||||
$args = func_get_args();
|
||||
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
return parent::current();
|
||||
}
|
||||
|
||||
function next() {
|
||||
$args = func_get_args();
|
||||
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
return parent::next();
|
||||
}
|
||||
|
||||
function key() {
|
||||
$args = func_get_args();
|
||||
echo " In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo " In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
return parent::key();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,19 +16,19 @@ class UsesMagic extends ArrayObject {
|
|||
|
||||
function __get($name) {
|
||||
$args = func_get_args();
|
||||
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
}
|
||||
function __set($name, $value) {
|
||||
$args = func_get_args();
|
||||
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
}
|
||||
function __isset($name) {
|
||||
$args = func_get_args();
|
||||
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
}
|
||||
function __unset($name) {
|
||||
$args = func_get_args();
|
||||
echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n";
|
||||
echo "In " . __METHOD__ . "(" . implode(',', $args) . ")\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,7 +28,6 @@ $newpath = create_include_path();
|
|||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ $newpath = create_include_path();
|
|||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -29,7 +29,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ Dave Kelsey <d_kelsey@uk.ibm.com>
|
|||
|
||||
set_include_path("rubbish");
|
||||
testme();
|
||||
restore_include_path();
|
||||
|
||||
|
||||
function testme() {
|
||||
|
|
|
@ -21,7 +21,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
|
||||
|
||||
function runtest() {
|
||||
|
|
|
@ -25,7 +25,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
|
|||
foreach($modes as $mode) {
|
||||
test_fopen($mode);
|
||||
}
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
|
|
@ -24,7 +24,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@ $modes = array("r", "r+", "rt");
|
|||
foreach($modes as $mode) {
|
||||
test_fopen($mode);
|
||||
}
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
|
|
@ -25,7 +25,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_relative_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ $newpath = create_include_path();
|
|||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -27,7 +27,6 @@ $newpath = create_include_path();
|
|||
set_include_path($newpath);
|
||||
runtest();
|
||||
teardown_include_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ Bug #60570 (Stream context leaks when http request fails)
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:12342'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -4,7 +4,6 @@ Bug #69337 (Stream context leaks when http request fails)
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22345'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -4,7 +4,6 @@ $http_reponse_header (no redirect)
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22346'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -4,7 +4,6 @@ $http_reponse_header (redirect)
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22347'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -4,7 +4,6 @@ $http_reponse_header (redirect + not found)
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22348'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -4,7 +4,6 @@ $http_reponse_header (header with trailing whitespace)
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22349'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -4,7 +4,6 @@ $http_reponse_header (whitespace-only "header")
|
|||
<?php require 'server.inc'; http_server_skipif('tcp://127.0.0.1:22350'); ?>
|
||||
--INI--
|
||||
allow_url_fopen=1
|
||||
allow_url_include=1
|
||||
--FILE--
|
||||
<?php
|
||||
require 'server.inc';
|
||||
|
|
|
@ -14,7 +14,6 @@ require_once('reading_include_path.inc');
|
|||
//define the files to go into these directories, create one in dir2
|
||||
set_include_path($newIncludePath);
|
||||
test_gzfile();
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
|
|
@ -26,7 +26,6 @@ $modes = array("r", "r+", "rt");
|
|||
foreach($modes as $mode) {
|
||||
test_gzopen($mode);
|
||||
}
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
|
|
@ -29,7 +29,6 @@ set_include_path($newpath);
|
|||
runtest();
|
||||
|
||||
teardown_relative_path();
|
||||
restore_include_path();
|
||||
chdir("..");
|
||||
rmdir($thisTestDir);
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ require_once('reading_include_path.inc');
|
|||
//define the files to go into these directories, create one in dir2
|
||||
set_include_path($newIncludePath);
|
||||
test_readgzfile();
|
||||
restore_include_path();
|
||||
|
||||
// remove the directory structure
|
||||
chdir($baseDir);
|
||||
|
|
|
@ -54,6 +54,7 @@ function normalizeOutput(string $out): string {
|
|||
$out = preg_replace('/^#(\d+) \/.+\(\d+\):/m', '#$1 %s(%d):', $out);
|
||||
$out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
|
||||
$out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
|
||||
$out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
|
||||
return $out;
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ ini_set('serialize_precision', -1);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
|
||||
|
@ -24,7 +24,7 @@ ini_set('serialize_precision', 0);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
|
||||
|
@ -34,7 +34,7 @@ ini_set('serialize_precision', 9);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
|
||||
|
@ -44,7 +44,7 @@ ini_set('serialize_precision', 14);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
|
||||
|
@ -54,7 +54,7 @@ ini_set('serialize_precision', 17);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
|
||||
|
@ -64,7 +64,7 @@ ini_set('serialize_precision', 25);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
|
||||
|
@ -74,7 +74,7 @@ ini_set('serialize_precision', 100);
|
|||
echo ini_get('precision'), PHP_EOL;
|
||||
echo ini_get('serialize_precision'), PHP_EOL;
|
||||
echo "OUTPUTS".PHP_EOL;
|
||||
echo join($v, ' ').PHP_EOL;
|
||||
echo join(' ', $v).PHP_EOL;
|
||||
var_dump(serialize($v));
|
||||
var_export($v);echo PHP_EOL;
|
||||
--EXPECT--
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue