Skip to content

Commit 04db3d0

Browse files
committed
Merge branch 'PHP-7.1' of git.php.net:/php-src into PHP-7.1
2 parents d6e81f0 + 73bf238 commit 04db3d0

29 files changed

+306
-61
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ environment:
2323
PHP_BUILD_CACHE_BASE_DIR: c:\build-cache
2424
PHP_BUILD_OBJ_DIR: c:\obj
2525
PHP_BUILD_CACHE_SDK_DIR: c:\build-cache\sdk
26-
PHP_BUILD_SDK_BRANCH: php-sdk-2.1.3
26+
PHP_BUILD_SDK_BRANCH: php-sdk-2.1.5
2727
# ext and env setup for tests
2828
#MYSQL_TEST_PASSWD: Password12!
2929
#MYSQL_TEST_USER: root

.gdbinit

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ define ____executor_globals
1616
end
1717
set $eg = ((zend_executor_globals*) (*((void ***) $tsrm_ls))[executor_globals_id-1])
1818
set $cg = ((zend_compiler_globals*) (*((void ***) $tsrm_ls))[compiler_globals_id-1])
19+
set $eg_ptr = $eg
1920
else
2021
set $eg = executor_globals
2122
set $cg = compiler_globals
23+
set $eg_ptr = (zend_executor_globals*) &executor_globals
2224
end
2325
end
2426

@@ -289,6 +291,16 @@ define ____printzv
289291
end
290292
end
291293

294+
define print_global_vars
295+
____executor_globals
296+
set $symtable = ((HashTable *)&($eg_ptr->symbol_table))
297+
print_ht $symtable
298+
end
299+
300+
document print_global_vars
301+
Prints the global variables
302+
end
303+
292304
define print_const_table
293305
set $ind = 1
294306
printf "[%p] {\n", $arg0

NEWS

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 7.1.19
44

5+
- CLI Server:
6+
. Fixed bug #76333 (PHP built-in server does not find files if root path
7+
contains special characters). (Anatol)
8+
9+
- OpenSSL:
10+
. Fixed bug #76296 (openssl_pkey_get_public does not respect open_basedir).
11+
(Erik Lax, Jakub Zelenka)
12+
. Fixed bug #76174 (openssl extension fails to build with LibreSSL 2.7).
13+
(Jakub Zelenka)
514

15+
- SPL:
16+
. Fixed bug #76367 (NoRewindIterator segfault 11). (Laruence)
17+
18+
- Standard:
19+
. Fixed bug #76335 ("link(): Bad file descriptor" with non-ASCII path).
20+
(Anatol)
21+
. Fixed bug #76383 (array_map on $GLOBALS returns IS_INDIRECT). (Bob)
622

723
24 May 2018, PHP 7.1.18
824

Zend/tests/bug76383.phpt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--TEST--
2+
Bug #76383: array_map on $GLOBALS returns IS_INDIRECT
3+
--FILE--
4+
<?php
5+
6+
$a = 1;
7+
array_map(function($x) use (&$lastval) { $lastval = $x; }, $GLOBALS);
8+
var_dump(gettype($lastval), $lastval); // will contain $a
9+
10+
?>
11+
--EXPECT--
12+
string(7) "integer"
13+
int(1)

ext/bcmath/tests/bug72093-win32.phpt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ if(!extension_loaded("bcmath")) print "skip";
66
if (substr(PHP_OS, 0, 3) != 'WIN') {
77
die('skip valid only for windows');
88
}
9+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
10+
$req = "10.0.17134";
11+
if (version_compare($cur, $req) >= 0) {
12+
echo "skip Only for Windows systems < $req";
13+
}
914
?>
1015
--FILE--
1116
<?php
@@ -14,5 +19,4 @@ var_dump(bcpowmod(1, 1.2, 1, 1));
1419
?>
1520
--EXPECTF--
1621
string(1) "1"
17-
string(3) "0.0"
18-
bc math warning: non-zero scale in exponent
22+
%Astring(3) "0.0"%A

ext/bcmath/tests/bug72093.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ Bug 72093: bcpowmod accepts negative scale and corrupts _one_ definition
44
<?php
55
if(!extension_loaded("bcmath")) print "skip";
66
if (substr(PHP_OS, 0, 3) == 'WIN') {
7-
die('skip Not valid for windows');
7+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
8+
$req = "10.0.17134";
9+
if (version_compare($cur, $req) < 0) {
10+
echo "skip Compatible on Windows systems >= $req";
11+
}
812
}
913
?>
1014
--FILE--

ext/bcmath/tests/bug75178-win32.phpt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@ if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
66
if (substr(PHP_OS, 0, 3) != 'WIN') {
77
die('skip valid only for windows');
88
}
9+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
10+
$req = "10.0.17134";
11+
if (version_compare($cur, $req) >= 0) {
12+
echo "skip Only for Windows systems < $req";
13+
}
914
?>
1015
--FILE--
1116
<?php
1217
var_dump(bcpowmod('4.1', '4', '3', 3));
1318
var_dump(bcpowmod('4', '4', '3.1', 3));
1419
?>
1520
===DONE===
16-
--EXPECT--
17-
string(5) "1.000"
18-
string(5) "1.000"
19-
===DONE===
20-
bc math warning: non-zero scale in base
21-
bc math warning: non-zero scale in modulus
21+
--EXPECTF--
22+
%Astring(5) "1.000"
23+
%Astring(5) "1.000"
24+
===DONE===%A

ext/bcmath/tests/bug75178.phpt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ Bug #75178 (bcpowmod() misbehaves for non-integer base or modulus)
44
<?php
55
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
66
if (substr(PHP_OS, 0, 3) == 'WIN') {
7-
die('skip Not valid for windows');
7+
$cur = PHP_WINDOWS_VERSION_MAJOR.'.'.PHP_WINDOWS_VERSION_MINOR.'.'.PHP_WINDOWS_VERSION_BUILD;
8+
$req = "10.0.17134";
9+
if (version_compare($cur, $req) < 0) {
10+
echo "skip Compatible on Windows systems >= $req";
11+
}
812
}
913
?>
1014
--FILE--

ext/curl/tests/bug48203-win32.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ echo "Ok\n";
3030
<?php @unlink(dirname(__FILE__) . '/bug48203.tmp'); ?>
3131
--EXPECTF--
3232
Warning: curl_exec(): CURLOPT_STDERR resource has gone away, resetting to stderr in %s on line %d
33-
Hello World!
34-
Hello World!Ok
3533
%A
34+
Hello World!
35+
Hello World!* Closing connection 0
36+
Ok
3637

ext/curl/tests/bug54798-win32.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,3 @@ Hello World!Ok for CURLOPT_FILE
6565

6666
%AOk for CURLOPT_INFILE
6767
===DONE===
68-
%A

0 commit comments

Comments
 (0)