Skip to content

Commit 206fed9

Browse files
author
rjhdby
committed
Merge remote-tracking branch 'remotes/upstream/master' into array_values
2 parents 1bf39a0 + 7803cb3 commit 206fed9

File tree

541 files changed

+463
-19730
lines changed

Some content is hidden

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

541 files changed

+463
-19730
lines changed

.editorconfig

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
# http://editorconfig.org/
1+
# https://editorconfig.org/
22

33
root = true
44

5-
[*.{c,h,awk,w32,bat,mk,frag}]
5+
[*]
6+
tab_width = 4
7+
8+
[*.{c,h,y,awk,w32,bat,mk,frag,cpp}]
69
charset = utf-8
710
end_of_line = lf
811
indent_size = 4
912
indent_style = tab
10-
tab_width = 4
1113
trim_trailing_whitespace = true
1214
insert_final_newline = true
1315

14-
[*.{php,phpt}]
16+
[*.{php,phpt,inc}]
1517
charset = utf-8
1618
end_of_line = lf
1719
indent_size = 4
@@ -31,5 +33,15 @@ insert_final_newline = true
3133
charset = utf-8
3234
end_of_line = lf
3335
indent_style = space
34-
trim_trailing_whitespace = false
36+
trim_trailing_whitespace = true
37+
insert_final_newline = true
38+
max_line_length = 80
39+
40+
[COMMIT_EDITMSG]
41+
charset = utf-8
42+
end_of_line = lf
43+
indent_size = 4
44+
indent_style = space
45+
trim_trailing_whitespace = true
3546
insert_final_newline = true
47+
max_line_length = 80

EXTENSIONS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ COMMENT: Use PostgreSQL 7.0.x or later. PostgreSQL 6.5.3 or less hav
171171
-------------------------------------------------------------------------------
172172
EXTENSION: sqlite3
173173
PRIMARY MAINTAINER: Scott MacVicar <[email protected]> (2008 - 2011)
174-
Christoph M. Becker <[email protected]> (2016 - 2018)
174+
Christoph M. Becker <[email protected]> (2016 - 2019)
175175
MAINTENANCE: Maintained
176176
STATUS: Working
177177
SINCE: 5.3
@@ -327,7 +327,7 @@ STATUS: Working
327327
-------------------------------------------------------------------------------
328328
EXTENSION: gd
329329
PRIMARY MAINTAINER: Pierre-Alain Joye <[email protected]> (2002 - 2016)
330-
Christoph M. Becker <[email protected]> (2015 - 2018)
330+
Christoph M. Becker <[email protected]> (2015 - 2019)
331331
MAINTENANCE: Maintained
332332
STATUS: Working
333333
-------------------------------------------------------------------------------
@@ -337,7 +337,7 @@ MAINTENANCE: Unknown
337337
STATUS: Working
338338
-------------------------------------------------------------------------------
339339
EXTENSION: gmp
340-
PRIMARY MAINTAINER: Stanislav Malyshev <[email protected]> (2000 - 2018)
340+
PRIMARY MAINTAINER: Stanislav Malyshev <[email protected]> (2000 - 2019)
341341
Antony Dovgal <[email protected]> (2005 - 2010)
342342
MAINTENANCE: Maintained
343343
STATUS: Working
@@ -357,7 +357,7 @@ MAINTENANCE: Maintained
357357
STATUS: Working
358358
-------------------------------------------------------------------------------
359359
EXTENSION: intl
360-
PRIMARY MAINTAINER: Stanislav Malyshev <[email protected]> (2008 - 2018)
360+
PRIMARY MAINTAINER: Stanislav Malyshev <[email protected]> (2008 - 2019)
361361
Anatol Belski <[email protected]> (2017 - 2018)
362362
MAINTENANCE: Maintained
363363
STATUS: Working

INSTALL

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.WIN32-BUILD-SYSTEM

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.md

Lines changed: 95 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,111 @@
1-
The PHP Interpreter
2-
===================
1+
<div align="center">
2+
<a href="https://php.net">
3+
<img
4+
alt="PHP"
5+
src="https://static.php.net/www.php.net/images/logos/new-php-logo.svg"
6+
width="150">
7+
</a>
8+
</div>
39

4-
This is the github mirror of the official PHP repository located at
5-
https://git.php.net.
10+
# The PHP Interpreter
611

7-
[![Build Status](https://secure.travis-ci.org/php/php-src.svg?branch=master)](http://travis-ci.org/php/php-src)
12+
PHP is a popular general-purpose scripting language that is especially suited to
13+
web development. Fast, flexible and pragmatic, PHP powers everything from your
14+
blog to the most popular websites in the world. PHP is distributed under the PHP
15+
License v3.01.
16+
17+
[![Build status](https://travis-ci.org/php/php-src.svg?branch=master)](https://travis-ci.org/php/php-src)
818
[![Build status](https://ci.appveyor.com/api/projects/status/meyur6fviaxgdwdy?svg=true)](https://ci.appveyor.com/project/php/php-src)
919

10-
Pull Requests
11-
=============
12-
PHP accepts pull requests via github. Discussions are done on github, but
13-
depending on the topic can also be relayed to the official PHP developer
14-
mailing list [email protected].
20+
## Documentation
21+
22+
The PHP manual is available at [php.net/docs](https://php.net/docs).
23+
24+
## Installation
25+
26+
### Prebuilt packages and binaries
27+
28+
Prebuilt packages and binaries can be used to get up and running fast with PHP.
29+
30+
For Windows, the PHP binaries can be obtained from
31+
[windows.php.net](https://windows.php.net). After extracting the archive the
32+
`*.exe` files are ready to use.
33+
34+
For other systems, see the [installation chapter](https://php.net/install).
35+
36+
### Building PHP from source
37+
38+
On \*nix systems:
39+
40+
./buildconf
41+
./configure
42+
make
43+
make test
44+
sudo make install
1545

16-
New features require an RFC and must be accepted by the developers.
17-
See https://wiki.php.net/rfc and https://wiki.php.net/rfc/voting for more
18-
information on the process.
46+
See `./configure -h` and `make -h` for configuration options. For example, the
47+
`-j` option allows parallel execution of the build recipes where `N` is the
48+
number of available processor cores:
1949

20-
Bug fixes **do not** require an RFC, but require a bugtracker ticket. Always
21-
open a ticket at https://bugs.php.net and reference the bug id using #NNNNNN.
50+
make -j N
51+
52+
For Windows, see
53+
[Build your own PHP on Windows](https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2).
54+
55+
## PHP extensions
56+
57+
Extensions provide additional functionality on top of PHP. PHP consists of many
58+
essential bundled extensions. Additional extensions can be found in the PHP
59+
Extension Community Library - [PECL](https://pecl.php.net).
60+
61+
## Contributing
62+
63+
The PHP source code is located in the Git repository at
64+
[git.php.net](https://git.php.net). Contributions are most welcome by forking
65+
the [GitHub mirror repository](https://github.com/php/php-src) and sending a
66+
pull request.
67+
68+
Discussions are done on GitHub, but depending on the topic can also be relayed
69+
to the official PHP developer mailing list [email protected].
70+
71+
New features require an RFC and must be accepted by the developers. See
72+
[Request for comments - RFC](https://wiki.php.net/rfc) and
73+
[Voting on PHP features](https://wiki.php.net/rfc/voting) for more information
74+
on the process.
75+
76+
Bug fixes **do not** require an RFC but require a bug tracker ticket. Open a
77+
ticket at [bugs.php.net](https://bugs.php.net) and reference the bug id using
78+
`#NNNNNN`.
2279

2380
Fix #55371: get_magic_quotes_gpc() throws deprecation warning
2481

25-
After removing magic quotes, the get_magic_quotes_gpc function caused
26-
a deprecate warning. get_magic_quotes_gpc can be used to detected
27-
the magic_quotes behavior and therefore should not raise a warning at any
28-
time. The patch removes this warning
82+
After removing magic quotes, the get_magic_quotes_gpc function caused a
83+
deprecated warning. get_magic_quotes_gpc can be used to detect the
84+
magic_quotes behavior and therefore should not raise a warning at any time.
85+
The patch removes this warning.
2986

30-
We do not merge pull requests directly on github. All PRs will be
31-
pulled and pushed through https://git.php.net.
87+
Pull requests are not merged directly on GitHub. All PRs will be pulled and
88+
pushed through [git.php.net](https://git.php.net). See
89+
[Git workflow](https://wiki.php.net/vcs/gitworkflow) for more details.
3290

91+
### Guidelines for contributors
3392

34-
Guidelines for contributors
35-
===========================
36-
- [CODING_STANDARDS](/CODING_STANDARDS)
37-
- [README.GIT-RULES](/README.GIT-RULES)
38-
- [README.MAILINGLIST_RULES](/README.MAILINGLIST_RULES)
39-
- [README.RELEASE_PROCESS](/README.RELEASE_PROCESS)
93+
See further documents in the repository for more information on how to
94+
contribute:
95+
96+
- [Contributing to PHP](/CONTRIBUTING.md)
97+
- [PHP coding standards](/CODING_STANDARDS)
98+
- [Git rules](/README.GIT-RULES)
99+
- [Mailinglist rules](/README.MAILINGLIST_RULES)
100+
- [PHP release process](/README.RELEASE_PROCESS)
40101

41102
## Testing
42103

43-
To run tests the `make test` is used after successful compilation of the sources.
104+
To run tests the `make test` is used after a successful compilation of the
105+
sources. The `-j` option provides faster parallel execution based on the number
106+
of cores (`N`):
107+
108+
make -j N test
44109

45-
See [Creating new test files](https://qa.php.net/write-test.php) chapter for more
46-
information about testing.
110+
The [qa.php.net](https://qa.php.net) site provides more detailed info about
111+
testing and quality assurance.

Zend/Zend.m4

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ _LT_AC_TRY_DLOPEN_SELF([
3939
], [])
4040
])
4141
42-
dnl This is required for QNX and may be some BSD derived systems
43-
AC_CHECK_TYPE( uint, unsigned int )
44-
AC_CHECK_TYPE( ulong, unsigned long )
45-
4642
dnl Checks for library functions.
4743
AC_FUNC_ALLOCA
4844
AC_CHECK_FUNCS(strdup getpid kill strtod strtol finite fpclass sigsetjmp)

Zend/zend_alloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,12 +587,12 @@ static zend_always_inline int zend_mm_bitset_is_set(zend_mm_bitset *bitset, int
587587

588588
static zend_always_inline void zend_mm_bitset_set_bit(zend_mm_bitset *bitset, int bit)
589589
{
590-
bitset[bit / ZEND_MM_BITSET_LEN] |= (Z_L(1) << (bit & (ZEND_MM_BITSET_LEN-1)));
590+
bitset[bit / ZEND_MM_BITSET_LEN] |= (Z_UL(1) << (bit & (ZEND_MM_BITSET_LEN-1)));
591591
}
592592

593593
static zend_always_inline void zend_mm_bitset_reset_bit(zend_mm_bitset *bitset, int bit)
594594
{
595-
bitset[bit / ZEND_MM_BITSET_LEN] &= ~(Z_L(1) << (bit & (ZEND_MM_BITSET_LEN-1)));
595+
bitset[bit / ZEND_MM_BITSET_LEN] &= ~(Z_UL(1) << (bit & (ZEND_MM_BITSET_LEN-1)));
596596
}
597597

598598
static zend_always_inline void zend_mm_bitset_set_range(zend_mm_bitset *bitset, int start, int len)

0 commit comments

Comments
 (0)