Skip to content

Commit e3f29b4

Browse files
authored
Merge pull request #1 from php/master
sync master
2 parents af3142d + 7484b8f commit e3f29b4

File tree

7,314 files changed

+279470
-213717
lines changed

Some content is hidden

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

7,314 files changed

+279470
-213717
lines changed

.gitignore

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,25 +80,15 @@ include/
8080
libs/
8181
modules/
8282

83-
# Used by scripts/dev/gen_stub.php
84-
scripts/dev/PHP-Parser-*
83+
# Used by build/gen_stub.php
84+
build/PHP-Parser-*
8585

8686
# ------------------------------------------------------------------------------
8787
# Configuration headers generated by the PHP build system
8888
# ------------------------------------------------------------------------------
8989
config.h
9090
config.h.in
9191
/ext/date/lib/timelib_config.h
92-
/ext/iconv/php_have_bsd_iconv.h
93-
/ext/iconv/php_have_glibc_iconv.h
94-
/ext/iconv/php_have_ibm_iconv.h
95-
/ext/iconv/php_have_iconv.h
96-
/ext/iconv/php_have_libiconv.h
97-
/ext/iconv/php_iconv_aliased_libiconv.h
98-
/ext/iconv/php_iconv_broken_ignore.h
99-
/ext/iconv/php_iconv_supports_errno.h
100-
/ext/iconv/php_php_iconv_h_path.h
101-
/ext/iconv/php_php_iconv_impl.h
10292
/main/build-defs.h
10393
/main/php_config.h.in
10494
/main/php_config.h

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
arch: amd64
7575
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
7676
arch: arm64
77+
#- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 S390X=1
78+
# arch: s390x
7779

7880
before_script:
7981
- ccache --version
@@ -89,7 +91,9 @@ before_script:
8991

9092
# Run PHPs run-tests.php
9193
script:
92-
- ./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)
94+
# ARM64 CI reports nproc=32, which is excessive.
95+
- if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
96+
- ./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$JOBS
9397
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'
9498

9599
after_success:

CODING_STANDARDS.md

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -272,44 +272,23 @@ use these rules.
272272
1. Extensions should be well tested using `*.phpt` tests. Read about that at
273273
[qa.php.net](https://qa.php.net/write-test.php) documentation.
274274

275-
## Documentation and folding hooks
275+
## Folding hooks
276276

277-
In order to make sure that the online documentation stays in line with the code,
278-
each user-level function should have its user-level function prototype before it
279-
along with a brief one-line description of what the function does. It would look
280-
like this:
277+
Use `{{{` symbols for the folding mode in Emacs and vim (`set fdm=marker`).
278+
Folding is very useful when dealing with large files because you can scroll
279+
through the file quickly and just unfold the function you wish to work on.
280+
The `}}}` at the end of each function marks the end of the fold, and should
281+
be on a separate line.
281282

282283
```c
283-
/* {{{ proto int abs(int number)
284-
Returns the absolute value of the number */
284+
/* {{{ Returns the absolute value of the number */
285285
PHP_FUNCTION(abs)
286286
{
287287
...
288288
}
289289
/* }}} */
290290
```
291291

292-
The `{{{` symbols are the default folding symbols for the folding mode in Emacs
293-
and vim (`set fdm=marker`). Folding is very useful when dealing with large files
294-
because you can scroll through the file quickly and just unfold the function you
295-
wish to work on. The `}}}` at the end of each function marks the end of the
296-
fold, and should be on a separate line.
297-
298-
The `proto` keyword there is just a helper for the `doc/genfuncsummary` script
299-
which generates a full function summary. Having this keyword in front of the
300-
function prototypes allows us to put folds elsewhere in the code without
301-
messing up the function summary.
302-
303-
Optional arguments are written like this:
304-
305-
```c
306-
/* {{{ proto object imap_header(int stream_id, int msg_no [, int from_length [, int subject_length [, string default_host]]])
307-
Returns a header object with the defined parameters */
308-
```
309-
310-
And yes, please keep the prototype on a single line, even if that line is
311-
massive.
312-
313292
## New and experimental functions
314293

315294
To reduce the problems normally associated with the first public implementation
@@ -334,8 +313,7 @@ purposes, these will only be documented by the most current name, with the
334313
aliases listed in the documentation for the parent function. For ease of
335314
reference, user-functions with completely different names, that alias to the
336315
same function (such as `highlight_file` and `show_source`), will be separately
337-
documented. The proto should still be included, describing which function is
338-
aliased.
316+
documented.
339317

340318
Backwards compatible functions and names should be maintained as long as the
341319
code can be reasonably be kept as part of the codebase. See the `README` in the

CONTRIBUTING.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ locations.
197197
└─ tokenizer/
198198
├─ tokenizer_data.c # Generated by `ext/tokenizer/tokenizer_data_gen.sh`
199199
└─ ...
200-
└─ xmlrpc/
201-
├─ libxmlrpc/ # Forked and maintained in php-src
202-
└─ ...
203200
└─ zend_test # For testing internal APIs. Not needed for regular builds.
204201
└─ ...
205202
└─ zip/ # Bundled https://github.com/pierrejoye/php_zip

EXTENSIONS

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,6 @@ PRIMARY MAINTAINER: Rob Richards <[email protected]> (2004 - 2010)
214214
MAINTENANCE: Maintained
215215
STATUS: Working
216216
-------------------------------------------------------------------------------
217-
EXTENSION: xmlrpc
218-
PRIMARY MAINTAINER: Unknown
219-
MAINTENANCE: Orphaned
220-
STATUS: Experimental
221-
-------------------------------------------------------------------------------
222217
EXTENSION: xmlwriter
223218
PRIMARY MAINTAINER: Rob Richards <[email protected]> (2004 - 2010)
224219
Pierre-Alain Joye <[email protected]> (2005-2009)
@@ -298,7 +293,7 @@ SINCE: 7.4.0
298293
-------------------------------------------------------------------------------
299294
EXTENSION: fileinfo
300295
PRIMARY MAINTAINER: Derick Rethans <[email protected]> (2004 - 2008)
301-
Anatol Belski <[email protected]> (2012 - 2019)
296+
Anatol Belski <[email protected]> (2012 - 2020)
302297
MAINTENANCE: Maintained
303298
STATUS: Working
304299
SINCE: 5.3

0 commit comments

Comments
 (0)