Skip to content

Commit 6e5ef96

Browse files
author
David Carlier
committed
Merge branch 'master' of https://github.com/php/php-src into safe_bcmp_intro
2 parents b7106eb + 98bfad7 commit 6e5ef96

File tree

5,666 files changed

+54341
-53883
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,666 files changed

+54341
-53883
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: "{branch}.build.{build}"
22

3-
image: Visual Studio 2017
3+
image: Visual Studio 2019
44

55
branches:
66
except:
@@ -24,7 +24,7 @@ environment:
2424
PHP_BUILD_OBJ_DIR: c:\obj
2525
PHP_BUILD_CACHE_SDK_DIR: c:\build-cache\sdk
2626
PHP_BUILD_SDK_BRANCH: php-sdk-2.2.0
27-
PHP_BUILD_CRT: vc15
27+
PHP_BUILD_CRT: vs16
2828
# ext and env setup for tests
2929
#MYSQL_TEST_PASSWD: Password12!
3030
#MYSQL_TEST_USER: root

.gdbinit

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -252,16 +252,13 @@ define ____printzv_contents
252252
____printzv &$zvalue->value.ref->val $arg1
253253
end
254254
if $type == 11
255-
printf "const: %s", $zvalue->value.str->val
256-
end
257-
if $type == 12
258255
printf "CONSTANT_AST"
259256
end
260-
if $type == 13
257+
if $type == 12
261258
printf "indirect: "
262259
____printzv $zvalue->value.zv $arg1
263260
end
264-
if $type == 14
261+
if $type == 13
265262
printf "pointer: %p", $zvalue->value.ptr
266263
end
267264
if $type == 15
@@ -271,18 +268,9 @@ define ____printzv_contents
271268
printf "_BOOL"
272269
end
273270
if $type == 17
274-
printf "CALLABLE"
275-
end
276-
if $type == 18
277-
printf "ITERABLE"
278-
end
279-
if $type == 19
280-
printf "VOID"
281-
end
282-
if $type == 20
283271
printf "_NUMBER"
284272
end
285-
if $type > 20
273+
if $type > 17
286274
printf "unknown type %d", $type
287275
end
288276
printf "\n"

.gitignore

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ config.h.in
119119
# ------------------------------------------------------------------------------
120120
# SAPIs specific ignores
121121
# ------------------------------------------------------------------------------
122-
/sapi/apache2handler/libphp7.module
122+
/sapi/apache2handler/libphp.module
123123
/sapi/fpm/fpm/php-cgi
124124
/sapi/fpm/init.d.php-fpm
125125
/sapi/fpm/php-fpm.conf
@@ -191,7 +191,7 @@ php
191191
/configure.bat
192192
/configure.js
193193

194-
# Generated by `/configure.(bat|js)` (architecture dependend)
194+
# Generated by `/configure.(bat|js)` (architecture dependent)
195195
/config.nice.bat
196196

197197
# NTS debug build x86
@@ -209,7 +209,7 @@ php
209209
# Generated by x64 compiler, includes Debug, Debug_TS, Release, Release_TS
210210
/x64/
211211

212-
# Miscellaneous files generated by Windows build sytem
212+
# Miscellaneous files generated by Windows build system
213213
/main/config.w32.h
214214
/win32/build/deplister.exe
215215
/win32/build/deplister.obj
@@ -247,6 +247,9 @@ php
247247
# Test results generated by `./run-tests.php`
248248
php_test_results_*.txt
249249

250+
# Temporary test information generated by `./run-tests.php`
251+
/run-test-info.php
252+
250253
# Temporary POST data placeholder files generated by `./run-tests.php`
251254
phpt.*
252255

@@ -258,7 +261,8 @@ tmp-php.ini
258261
# ------------------------------------------------------------------------------
259262
*.gcda
260263
*.gcno
261-
/lcov_data/
264+
/gcovr.xml
265+
/gcovr_html/
262266
/lcov_html/
263267
/php_lcov.info
264268

.travis.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,29 @@ addons:
1010
- locales
1111
- language-pack-de
1212
- re2c
13+
- ccache
14+
- mysql-server
15+
- libaspell-dev
16+
- libbz2-dev
17+
- libcurl4-gnutls-dev
18+
- libenchant-dev
19+
- libfreetype6-dev
1320
- libgmp-dev
1421
- libicu-dev
15-
- libtidy-dev
16-
- libenchant-dev
17-
- libaspell-dev
22+
- libjpeg-dev
23+
- libkrb5-dev
24+
- libonig-dev
25+
- libpng-dev
26+
- libpq-dev
1827
- libpspell-dev
1928
- libsasl2-dev
20-
- libxpm-dev
21-
- libzip-dev
2229
- libsqlite3-dev
30+
- libtidy-dev
2331
- libwebp-dev
24-
- libonig-dev
32+
- libxml2-dev
33+
- libxpm-dev
34+
- libxslt1-dev
35+
- libzip-dev
2536

2637

2738
services:
@@ -51,10 +62,17 @@ env:
5162
- PDO_MYSQL_TEST_USER=travis
5263
- PDO_MYSQL_TEST_PASS=
5364
- PDO_MYSQL_TEST_HOST=127.0.0.1
65+
- PDO_PGSQL_TEST_DSN="pgsql:host=localhost port=5432 dbname=test user=postgres password="
5466
- REPORT_EXIT_STATUS=1
55-
matrix:
56-
- ENABLE_ZTS=0 ENABLE_DEBUG=0
57-
- ENABLE_ZTS=1 ENABLE_DEBUG=1
67+
68+
jobs:
69+
include:
70+
- env: ENABLE_ZTS=0 ENABLE_DEBUG=0
71+
arch: amd64
72+
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1
73+
arch: amd64
74+
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
75+
arch: arm64
5876

5977
before_script:
6078
- ccache --version
@@ -65,15 +83,12 @@ before_script:
6583
# Compile PHP
6684
- travis_wait ./travis/compile.sh
6785
# Setup Extensions
68-
- . ./travis/ext/mysql/setup.sh
69-
- . ./travis/ext/mysqli/setup.sh
70-
- . ./travis/ext/pdo_mysql/setup.sh
71-
- . ./travis/ext/pgsql/setup.sh
72-
- . ./travis/ext/pdo_pgsql/setup.sh
86+
- ./travis/setup-mysql.sh
87+
- ./travis/setup-pgsql.sh
7388

7489
# Run PHPs run-tests.php
7590
script:
76-
- ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=16M -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120 -j2
91+
- ./sapi/cli/php run-tests.php -P -d extension=`pwd`/modules/zend_test.so $(if [ $ENABLE_DEBUG == 0 ]; then echo "-d opcache.enable_cli=1 -d opcache.protect_memory=1 -d opcache.jit_buffer_size=16M -d zend_extension=`pwd`/modules/opcache.so"; fi) -g "FAIL,XFAIL,BORK,WARN,LEAK,SKIP" --offline --show-diff --show-slow 1000 --set-timeout 120 -j$(nproc)
7792
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
7893

7994
after_success:

CODING_STANDARDS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use these rules.
3333

3434
4. Use definitions and macros whenever possible, so that constants have
3535
meaningful names and can be easily manipulated. The only exceptions to this
36-
rule are 1 and 2, when used as `false` and `true` (respectively). Any other
36+
rule are 0 and 1, when used as `false` and `true` (respectively). Any other
3737
use of a numeric constant to specify different behavior or actions should be
3838
done through a `#define`.
3939

CONTRIBUTING.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If you are fixing a bug, then please submit your PR against the lowest actively
3535
supported branch of PHP that the bug affects (only green branches on
3636
[the supported version page](https://www.php.net/supported-versions.php) are
3737
supported). For example, at the time of writing, the lowest supported version is
38-
PHP 7.2, which corresponds to the `PHP-7.2` branch in Git. Please also make sure
38+
PHP 7.3, which corresponds to the `PHP-7.3` branch in Git. Please also make sure
3939
you add a link to the PR in the bug on [the bug tracker](https://bugs.php.net/).
4040

4141
Pull requests implementing RFCs should be submitted against `master`.
@@ -331,10 +331,10 @@ Currently we have the following branches in use:
331331
| Branch | |
332332
| --------- | --------- |
333333
| master | Active development branch for PHP 8.0, which is open for backwards incompatible changes and major internal API changes. |
334-
| PHP-7.4 | Active development branch for PHP 7.4, which is open for new features and minor internal API changes. |
334+
| PHP-7.4 | Is used to release the PHP 7.4.x series. This is a current stable version and is open for bugfixes only. |
335335
| PHP-7.3 | Is used to release the PHP 7.3.x series. This is a current stable version and is open for bugfixes only. |
336-
| PHP-7.2 | Is used to release the PHP 7.2.x series. This is a current stable version and is open for bugfixes only. |
337-
| PHP-7.1 | Is used to release the PHP 7.1.x series. This is an old stable version and is open for security fixes only. |
336+
| PHP-7.2 | Is used to release the PHP 7.2.x series. This is an old stable version and is open for security fixes only. |
337+
| PHP-7.1 | This branch is closed. |
338338
| PHP-7.0 | This branch is closed. |
339339
| PHP-5.6 | This branch is closed. |
340340
| PHP-5.5 | This branch is closed. |
@@ -348,8 +348,8 @@ Currently we have the following branches in use:
348348
The next few rules are more of a technical nature:
349349

350350
1. All non-security bugfix changes should first go to the lowest bugfix branch
351-
(i.e. 7.2) and then get merged up to all other branches. All security fixes
352-
should go to the lowest security fixes branch (i.e 7.1). If a change is not
351+
(i.e. 7.3) and then get merged up to all other branches. All security fixes
352+
should go to the lowest security fixes branch (i.e 7.2). If a change is not
353353
needed for later branches (i.e. fixes for features which were dropped from
354354
later branches) an empty merge should be done.
355355

@@ -409,8 +409,6 @@ New source code files should include the following header block:
409409

410410
```c
411411
/*
412-
+----------------------------------------------------------------------+
413-
| PHP Version 7 |
414412
+----------------------------------------------------------------------+
415413
| Copyright (c) The PHP Group |
416414
+----------------------------------------------------------------------+

EXTENSIONS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ SINCE: 5.3
6060
-------------------------------------------------------------------------------
6161
EXTENSION: phpdbg
6262
PRIMARY MAINTAINER: Joe Watkins <[email protected]>, Bob Weinand <[email protected]>
63-
MAINTENANCE: Unkown
63+
MAINTENANCE: Unknown
6464
STATUS: 5.6
6565
-------------------------------------------------------------------------------
6666

@@ -359,7 +359,7 @@ EXTENSION: imap
359359
PRIMARY MAINTAINER: Chuck Hagenbuch <[email protected]> (1999 - 2004)
360360
Ilia Alshanetsky <[email protected]> (2002 - 2010)
361361
Pierre-Alain Joye <[email protected]> (2008 - 2010)
362-
Bishop Bettini (2018 - 2019)
362+
Bishop Bettini <[email protected]> (2018 - 2019)
363363
MAINTENANCE: Maintained
364364
STATUS: Working
365365
-------------------------------------------------------------------------------
@@ -414,7 +414,7 @@ EXTENSION: phar
414414
PRIMARY MAINTAINER: Greg Beaver <[email protected]> (2008 - 2009)
415415
Marcus Börger <[email protected]> (2008 - 2008)
416416
Steph Fox <[email protected]> (2008 - 2008)
417-
Bishop Bettini (2018 - 2019)
417+
Bishop Bettini <[email protected]> (2018 - 2019)
418418
MAINTENANCE: Maintained
419419
STATUS: Working
420420
SINCE: 5.3
@@ -431,7 +431,7 @@ STATUS: Working
431431
SINCE: 4.0.2
432432
-------------------------------------------------------------------------------
433433
EXTENSION: readline
434-
PRIMARY MAINTAINER: Unkown
434+
PRIMARY MAINTAINER: Unknown
435435
MAINTENANCE: Unknown
436436
STATUS: Working
437437
-------------------------------------------------------------------------------
@@ -480,17 +480,17 @@ STATUS: Working
480480
SINCE: 5.0.0
481481
-------------------------------------------------------------------------------
482482
EXTENSION: sysvmsg
483-
PRIMARY MAINTAINER: Unkown
483+
PRIMARY MAINTAINER: Unknown
484484
MAINTENANCE: Unknown
485485
STATUS: Working
486486
-------------------------------------------------------------------------------
487487
EXTENSION: sysvsem
488-
PRIMARY MAINTAINER: Unkown
488+
PRIMARY MAINTAINER: Unknown
489489
MAINTENANCE: Unknown
490490
STATUS: Working
491491
-------------------------------------------------------------------------------
492492
EXTENSION: sysvshm
493-
PRIMARY MAINTAINER: Unkown
493+
PRIMARY MAINTAINER: Unknown
494494
MAINTENANCE: Unknown
495495
STATUS: Working
496496
-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)