Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6829 commits
Select commit Hold shift + click to select a range
158d308
Throw Value/TypeError for invalid $bodies in imap_mail_compose()
Girgias Oct 22, 2020
77582ec
Merge branch 'PHP-8.0'
Girgias Oct 23, 2020
5609701
Define config var PHP_JSON
cmb69 Oct 24, 2020
a9f6572
Merge branch 'PHP-8.0' into master
cmb69 Oct 24, 2020
fab76e3
[ci skip] Fix typos in UPGRADING
cmb69 Oct 25, 2020
1554e90
Merge branch 'PHP-8.0'
cmb69 Oct 25, 2020
ef6adb4
Make ReflectionUnionType final
kocsismate Oct 25, 2020
f46c881
Merge branch 'PHP-8.0'
kocsismate Oct 25, 2020
7f462c9
Revert "Make ReflectionUnionType final"
nikic Oct 26, 2020
927ab74
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
9c28dc0
Document breaking change in strspn/strcspn
thiemowmde Oct 24, 2020
4060055
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
1c868b1
Fix parameter stats generation
nikic Oct 26, 2020
99d6e44
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
0535872
Use separate directory in dit_004.phpt
nikic Oct 26, 2020
8e74374
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
50d75ae
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 26, 2020
09b2cbf
Merge branch 'PHP-8.0'
cmb69 Oct 26, 2020
b678df5
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 26, 2020
02632a5
Merge branch 'PHP-8.0'
cmb69 Oct 26, 2020
0abcb9f
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 26, 2020
ed64d1b
Merge branch 'PHP-8.0'
cmb69 Oct 26, 2020
f4b0b32
Raise E_WARNING on PHP related errors
cmb69 Oct 20, 2020
2da00fa
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 26, 2020
820ac06
Merge branch 'PHP-8.0'
cmb69 Oct 26, 2020
e0ea3e8
Remove dated results from ext/hash/bench.php
nikic Oct 26, 2020
26bd857
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 26, 2020
18c4408
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
f17b2a7
Don't set xdebug.default_enable in run-tests
Oct 12, 2020
3fb6e3a
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
e71036c
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 26, 2020
838671d
Merge branch 'PHP-8.0'
cmb69 Oct 26, 2020
0fa154a
Fixed incorrect register allocation in ext/gd/tests/imagecopyresample…
dstogov Oct 26, 2020
55c5763
Merge branch 'PHP-8.0'
dstogov Oct 26, 2020
8aead9e
Re-enable laravel tests
nikic Oct 19, 2020
fa5f083
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
c6784ca
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 26, 2020
0768ccf
Merge branch 'PHP-8.0'
cmb69 Oct 26, 2020
7e6b840
Consistent error handling in mysqli_poll
kamil-tekiela Oct 14, 2020
3489e98
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
70388cc
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 26, 2020
4485f10
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
6d3695a
Deny serialization of finfo objects
nikic Oct 26, 2020
94b0204
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
7b9519a
Fix inconsistency in PDO transaction state
nikic Oct 20, 2020
18d373e
Merge branch 'PHP-8.0'
nikic Oct 26, 2020
9d3cc22
Better JIT support for aliases
dstogov Oct 26, 2020
f663546
Merge branch 'PHP-8.0'
dstogov Oct 26, 2020
b7df636
Fixed MAY_BE_INDIRECT inference.
dstogov Oct 26, 2020
ba525a6
Fixed register allocation
dstogov Oct 26, 2020
9fd5851
Merge branch 'PHP-8.0'
dstogov Oct 26, 2020
4a6932c
Add missing observer tests
SammyK Oct 23, 2020
6cd0ec7
Merge branch 'PHP-8.0'
SammyK Oct 26, 2020
a17cec4
Fixed memory leak
dstogov Oct 26, 2020
990bac4
Merge branch 'PHP-8.0'
dstogov Oct 26, 2020
b8a6717
Fixed tracing JIT for tests/classes/unset_properties.phpt
dstogov Oct 27, 2020
9bfb158
Merge branch 'PHP-8.0'
dstogov Oct 27, 2020
d9ddeb6
UTF-16 text conversion handles truncated characters as illegal
alexdowad Oct 13, 2020
d8895cd
Improve error handling for UTF-16{,BE,LE}
alexdowad Oct 14, 2020
7047e5d
Add identify filter for UTF-32{,BE,LE}
alexdowad Sep 6, 2020
e26234a
UTF-32 conversion treats truncated characters as illegal
alexdowad Oct 14, 2020
682357c
Skip bug46024.phpt under asan
nikic Oct 27, 2020
2e09709
Merge branch 'PHP-8.0'
nikic Oct 27, 2020
45e2b9a
Fixed support for typed references
dstogov Oct 27, 2020
b961b7f
Merge branch 'PHP-8.0'
dstogov Oct 27, 2020
76e4bf3
Parameter type and name fixes in ext/standard
kocsismate Oct 24, 2020
543bcd8
Merge branch 'PHP-8.0'
kocsismate Oct 27, 2020
d776d25
Don't throw for out of bounds offsets in strspn()
nikic Oct 27, 2020
5b46bde
Merge branch 'PHP-8.0'
nikic Oct 27, 2020
d68334c
Update NEWS for PHP 8.0.0RC3
carusogabriel Oct 27, 2020
e86b2b9
Update NEWS for 8.0.0RC4
carusogabriel Oct 27, 2020
43e4938
Fixed support for named parameters (Zend/tests/named_params/reference…
dstogov Oct 27, 2020
1f1dbd7
Merge branch 'PHP-8.0'
dstogov Oct 27, 2020
c80cb79
Fix conflict
dstogov Oct 27, 2020
e6b51cc
Fixed tracing JIT support for aliasses (Zend/tests/bug75420.13.phpt a…
dstogov Oct 27, 2020
a73b2dd
Merge branch 'PHP-8.0'
dstogov Oct 27, 2020
47a5620
Fixed memory leak in Zend/tests/bug78999.phpt
dstogov Oct 28, 2020
a49200a
Merge branch 'PHP-8.0'
dstogov Oct 28, 2020
ab0ec3f
Check for null dbh methods in get_gc
nikic Oct 28, 2020
2693f79
Don't force rebuild of symbol table, when populating $http_response_h…
dstogov Oct 28, 2020
94fd97e
Merge branch 'PHP-8.0'
dstogov Oct 28, 2020
793bf12
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 28, 2020
dc03e62
Merge branch 'PHP-8.0'
nikic Oct 28, 2020
d928c58
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 28, 2020
67598af
Merge branch 'PHP-8.0'
nikic Oct 28, 2020
6beb080
Merge branch 'PHP-7.4' into PHP-8.0
dstogov Oct 28, 2020
84a0d48
Merge branch 'PHP-8.0'
dstogov Oct 28, 2020
39be0df
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 28, 2020
bd555b6
Merge branch 'PHP-8.0'
nikic Oct 28, 2020
d07f675
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 28, 2020
9238186
Merge branch 'PHP-8.0'
cmb69 Oct 28, 2020
246b8b2
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 28, 2020
f3c9597
Merge branch 'PHP-8.0'
nikic Oct 28, 2020
d784c65
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 29, 2020
5e69534
Merge branch 'PHP-8.0'
nikic Oct 29, 2020
9838eff
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 29, 2020
3d11a0f
Merge branch 'PHP-8.0'
cmb69 Oct 29, 2020
9fdbc2a
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 29, 2020
4273ec8
Merge branch 'PHP-8.0'
cmb69 Oct 29, 2020
ce7c2cc
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 29, 2020
60ab7a3
Merge branch 'PHP-8.0'
nikic Oct 29, 2020
489b532
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 29, 2020
278ee58
Merge branch 'PHP-8.0'
cmb69 Oct 29, 2020
1a7bcd9
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 29, 2020
39532f9
Merge branch 'PHP-8.0'
nikic Oct 29, 2020
8957260
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 29, 2020
dd008fd
Merge branch 'PHP-8.0'
nikic Oct 29, 2020
6c71d34
Use constant size string in hash bench.php
divinity76 Oct 27, 2020
b133183
Create TSSA loops for recursive call/return traces and move invariant…
dstogov Oct 30, 2020
fab8ef6
Merge branch 'PHP-8.0'
dstogov Oct 30, 2020
3bd3651
Fixed bug #80290
nikic Oct 30, 2020
da4d5e9
Merge branch 'PHP-8.0'
nikic Oct 30, 2020
085e16c
Fix signed integer overflow
nikic Oct 30, 2020
b32a48f
Merge branch 'PHP-8.0'
nikic Oct 30, 2020
72d9d9b
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Oct 30, 2020
fdbfb41
Merge branch 'PHP-8.0'
cmb69 Oct 30, 2020
5958137
Merge branch 'PHP-7.4' into PHP-8.0
nikic Oct 30, 2020
3e2b127
Merge branch 'PHP-8.0'
nikic Oct 30, 2020
904c1b6
FIxed bug #80299
nikic Oct 30, 2020
ada2a55
Merge branch 'PHP-8.0'
nikic Oct 30, 2020
1b3b430
Add --repeat testing mode
nikic Oct 21, 2020
d44235a
Convert numeric string array keys to integers correctly in JITted code
alexdowad Oct 29, 2020
e2dc80b
Merge branch 'PHP-8.0'
alexdowad Oct 30, 2020
526c624
Fix test added in d44235acaeb4
alexdowad Oct 30, 2020
2ce15d9
Merge branch 'PHP-8.0'
alexdowad Oct 30, 2020
b5ff87c
Fix mbstring support for CP1252 encoding
alexdowad Oct 18, 2020
831abe2
Add test suite for CP1252 encoding
alexdowad Oct 18, 2020
72e91e9
hash: Add MurmurHash3 with streaming support
weltling Aug 30, 2020
5e16209
NEWS: Add murmurhash info [ci skip]
weltling Oct 31, 2020
347a3f8
UPGRADING: Add murmurhash note [ci skip]
weltling Oct 31, 2020
c3a6deb
Bump minimal OpenSSL version to 1.0.2
bukka Oct 10, 2020
58e71ef
hash: murmur: Suppress sanitize warnings under GCC
weltling Nov 1, 2020
0659d44
hash: murmur: Fix GCC support version for no_sanitize
weltling Nov 1, 2020
cf38a6f
Fix tests for MariaDB
kamil-tekiela Oct 28, 2020
bcdb54d
Merge branch 'PHP-8.0'
nikic Nov 2, 2020
6fc2cab
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Nov 2, 2020
4fa02d5
Merge branch 'PHP-8.0'
cmb69 Nov 2, 2020
0571f09
Rename opcache.jit_max_loops_unroll to opcache.jit_max_loop_unrolls
nikic Nov 2, 2020
d5dff02
Merge branch 'PHP-8.0'
nikic Nov 2, 2020
94938e4
[ci skip] Fix small typo
drbyte Nov 2, 2020
a1dcbb2
Merge branch 'PHP-8.0'
cmb69 Nov 2, 2020
b18b9c9
Test cases for mbstring encodings are less repetitive
alexdowad Nov 2, 2020
44bd580
Fix mbstring support for CP1251 encoding
alexdowad Oct 18, 2020
eb4151e
Add test suite for CP1251 encoding
alexdowad Oct 18, 2020
e6d17cf
Fix mbstring support for CP1254 encoding
alexdowad Oct 18, 2020
0b13305
Add test suite for CP1254 encoding
alexdowad Oct 18, 2020
bc04e0c
All bytes are valid in CP866 encoding
alexdowad Oct 18, 2020
20a404f
Remove dead code from mbfilter_cp866.c (and do general code cleanup)
alexdowad Oct 18, 2020
0485bed
Add test suite for CP866 encoding
alexdowad Oct 18, 2020
8926252
All bytes are valid in CP850 encoding
alexdowad Oct 18, 2020
b6e7526
Remove dead code from mbfilter_cp850.c (and do general code cleanup)
alexdowad Oct 18, 2020
9980534
Add test suite for CP850 encoding
alexdowad Oct 18, 2020
7b97789
All bytes are valid in KOI8-R encoding
alexdowad Oct 18, 2020
0a8ebb3
Remove dead code from mbfilter_koi8r.c
alexdowad Oct 18, 2020
fde7794
Remove dead code from mbfilter_iso8859_{2,4,5,9,10,13,14,15,16}.c
alexdowad Oct 18, 2020
9db4387
Add test suite for KOI8-R encoding
alexdowad Oct 18, 2020
f9826fb
All bytes are valid in KOI8-U encoding
alexdowad Oct 18, 2020
e814588
Remove dead code from mbfilter_koi8u.c (and do general code cleanup)
alexdowad Oct 18, 2020
335c1b9
Add test suite for KOI8-U encoding
alexdowad Oct 18, 2020
be1a215
Optimize (AND FIX) mb_check_encoding (cut execution time by 50%+)
alexdowad Aug 29, 2020
9f5a4b3
Fix mbstring support for ARMSCII-8
alexdowad Oct 18, 2020
ff953f2
Add test suite for ARMSCII-8 encoding
alexdowad Oct 18, 2020
6d6fade
Improved error message for typed class properties with null as defaul…
BogdanUngureanu Nov 2, 2020
4d16d3c
Fix typo in UPGRADING
drbyte Nov 2, 2020
6e30a40
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
53c417d
Merge branch 'PHP-7.4' into PHP-8.0
nikic Nov 3, 2020
e1cbfb3
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
06ddda2
Modernize IMAP tests
Girgias Nov 3, 2020
6f24318
Preserve trait method alias name during preloading
nikic Nov 3, 2020
ac5486b
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
14c42c6
Fix persisting property info table with internal parent
nikic Nov 3, 2020
a600443
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
51b5f7d
Don't ignore internal classes during preloading
nikic Nov 3, 2020
fa15f03
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
ee934f8
Fix variance checks on resolved union types
nikic Nov 3, 2020
b4b91a8
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
7e55317
Allow unlinked classes when performing in_compilation variance check
nikic Nov 3, 2020
fa72727
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
9fd8e00
Fix use of type copy ctor when importing trait properties
nikic Nov 3, 2020
8d43896
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
b009573
Report parse errors during preloading
nikic Nov 3, 2020
d0a07cd
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
54668a4
Don't disable early binding during preloading script
nikic Nov 3, 2020
b43c455
Merge branch 'PHP-8.0'
nikic Nov 3, 2020
4b3438d
hash: murmur: Initialize final hash explicitly
weltling Nov 3, 2020
28eb23c
Make all IMAP fetch*() tests conflict with the default mailbox
Girgias Nov 3, 2020
c6563dd
Merge branch 'PHP-7.4' into PHP-8.0
nikic Nov 4, 2020
6457043
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
9ed2f48
Don't disable opcache for generic tests
nikic Nov 4, 2020
bae3a35
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
57b0e5a
Don't xfail method_static_var.phpt
nikic Nov 4, 2020
3f400a7
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
d17fae8
Fix parallel testing for IMAP
Girgias Nov 4, 2020
7794925
Assert that references are not persisted
nikic Nov 4, 2020
80e063c
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
b8f2531
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Nov 4, 2020
bceab5b
Merge branch 'PHP-8.0'
cmb69 Nov 4, 2020
670fe59
Fix static variable in methods inheritance during preloading
nikic Nov 4, 2020
c380812
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
73321bc
getlastmod() can return false
nikic Nov 4, 2020
bb1dd83
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
7c7c6b0
End output handlers in preload shutdown
nikic Nov 4, 2020
313a56a
Merge branch 'PHP-8.0'
nikic Nov 4, 2020
33969c2
Fix multiple trait fixup
nikic Nov 5, 2020
1fea175
Merge branch 'PHP-8.0'
nikic Nov 5, 2020
2effbfd
Fixup trait methods even if no traits are used
nikic Nov 5, 2020
0461438
Merge branch 'PHP-8.0'
nikic Nov 5, 2020
ff91800
Fixed incorrect invariant guard motion
dstogov Nov 5, 2020
5cd88cc
Merge branch 'PHP-8.0'
dstogov Nov 5, 2020
2d89491
Merge branch 'PHP-7.4' into PHP-8.0
nikic Nov 5, 2020
9bdf221
Merge branch 'PHP-8.0'
nikic Nov 5, 2020
8d7ca47
only display libzip both headers/library versions if they differ
remicollet Nov 5, 2020
e2509cf
report about ZSTD compression availability
remicollet Nov 5, 2020
ca5c8c3
Merge branch 'PHP-8.0'
remicollet Nov 6, 2020
98e4f94
Move stack overflow checks out of the loops
dstogov Nov 6, 2020
668ac03
Merge branch 'PHP-8.0'
dstogov Nov 6, 2020
d65a520
Raise E_WARNING on PHP related errors
cmb69 Oct 20, 2020
21594ed
Merge branch 'PHP-8.0'
remicollet Nov 6, 2020
c464637
Stabalize IMAP parallel testing, again
Girgias Nov 6, 2020
49ca191
Merge branch 'PHP-7.4' into PHP-8.0
cmb69 Nov 6, 2020
6768f47
Merge branch 'PHP-8.0'
cmb69 Nov 6, 2020
fe2cbca
Merge branch 'PHP-7.4' into PHP-8.0
derickr Nov 7, 2020
b0b4a59
Merge branch 'PHP-8.0'
derickr Nov 7, 2020
b1019f4
Rename PhpToken::getAll() to PhpToken::tokenize()
nikic Nov 9, 2020
e09ad4a
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
5df461b
Skip preload test under asan
nikic Nov 9, 2020
6033c77
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
4bbe55b
Fixed missaligned access
dstogov Nov 9, 2020
13a8f3b
Merge branch 'PHP-8.0'
dstogov Nov 9, 2020
6fb3d92
Fixed bug #80334
nikic Nov 9, 2020
31d975a
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
114613d
Remove embedded property from mysqli_driver
kamil-tekiela Nov 6, 2020
12ab4cb
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
3eb8828
Fix issues with mbstring encoding tests
alexdowad Nov 5, 2020
cc03c54
Remove useless byte{2,4}{be,le} encodings from mbstring
alexdowad Nov 4, 2020
ad7e0f1
Fix mbstring support for Shift-JIS
alexdowad Oct 19, 2020
8f6889b
Fix mbstring support for EUC-JP text encoding
alexdowad Oct 1, 2020
a416f93
Treat non-ASCII characters as erroneous when converting ASCII text
alexdowad Nov 5, 2020
3e7acf9
Remove mbstring identify filters
alexdowad Nov 4, 2020
4cd3934
Merge branch 'PHP-7.4' into PHP-8.0
nikic Nov 9, 2020
5143b4d
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
975735c
Use true/false instead of TRUE/FALSE in intl
nikic Nov 9, 2020
b6a93c3
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
523dd9a
Merge branch 'PHP-7.4' into PHP-8.0
nikic Nov 9, 2020
4945bc2
Merge branch 'PHP-8.0'
nikic Nov 9, 2020
67911e3
Fix #80344: mysqlnd support for SASL SCRAM-SHA-1 and SCRAM-SHA-256 au…
Nov 10, 2020
b1f3a17
Fix: #80344: Cleanups after the first review round
Nov 23, 2020
accfd7f
Fix: #80344: Adding missing ifdef around some includes
Nov 23, 2020
7bc261c
Fix: #80344: Cleaning up whitespaces and substituting with tabs
Nov 23, 2020
5f78917
Merge remote-tracking branch 'origin/master' into issue-80344
Nov 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "{branch}.build.{build}"

image: Visual Studio 2017
image: Visual Studio 2019

branches:
except:
Expand All @@ -24,7 +24,7 @@ environment:
PHP_BUILD_OBJ_DIR: c:\obj
PHP_BUILD_CACHE_SDK_DIR: c:\build-cache\sdk
PHP_BUILD_SDK_BRANCH: php-sdk-2.2.0
PHP_BUILD_CRT: vc15
PHP_BUILD_CRT: vs16
# ext and env setup for tests
#MYSQL_TEST_PASSWD: Password12!
#MYSQL_TEST_USER: root
Expand Down
18 changes: 3 additions & 15 deletions .gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,13 @@ define ____printzv_contents
____printzv &$zvalue->value.ref->val $arg1
end
if $type == 11
printf "const: %s", $zvalue->value.str->val
end
if $type == 12
printf "CONSTANT_AST"
end
if $type == 13
if $type == 12
printf "indirect: "
____printzv $zvalue->value.zv $arg1
end
if $type == 14
if $type == 13
printf "pointer: %p", $zvalue->value.ptr
end
if $type == 15
Expand All @@ -271,18 +268,9 @@ define ____printzv_contents
printf "_BOOL"
end
if $type == 17
printf "CALLABLE"
end
if $type == 18
printf "ITERABLE"
end
if $type == 19
printf "VOID"
end
if $type == 20
printf "_NUMBER"
end
if $type > 20
if $type > 17
printf "unknown type %d", $type
end
printf "\n"
Expand Down
30 changes: 16 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,15 @@ include/
libs/
modules/

# Used by build/gen_stub.php
build/PHP-Parser-*

# ------------------------------------------------------------------------------
# Configuration headers generated by the PHP build system
# ------------------------------------------------------------------------------
config.h
config.h.in
/ext/date/lib/timelib_config.h
/ext/iconv/php_have_bsd_iconv.h
/ext/iconv/php_have_glibc_iconv.h
/ext/iconv/php_have_ibm_iconv.h
/ext/iconv/php_have_iconv.h
/ext/iconv/php_have_libiconv.h
/ext/iconv/php_iconv_aliased_libiconv.h
/ext/iconv/php_iconv_broken_ignore.h
/ext/iconv/php_iconv_supports_errno.h
/ext/iconv/php_php_iconv_h_path.h
/ext/iconv/php_php_iconv_impl.h
/main/build-defs.h
/main/php_config.h.in
/main/php_config.h
Expand All @@ -116,7 +109,7 @@ config.h.in
# ------------------------------------------------------------------------------
# SAPIs specific ignores
# ------------------------------------------------------------------------------
/sapi/apache2handler/libphp7.module
/sapi/apache2handler/libphp.module
/sapi/fpm/fpm/php-cgi
/sapi/fpm/init.d.php-fpm
/sapi/fpm/php-fpm.conf
Expand Down Expand Up @@ -168,8 +161,14 @@ php
/Zend/zend_language_parser.output

# ------------------------------------------------------------------------------
# Extensions files additionally generated by `cd ext/name && phpize && ./configure`
# Extensions files
# ------------------------------------------------------------------------------

# Miscellaneous extensions files
/ext/opcache/jit/zend_jit_x86.c
/ext/opcache/minilua

# Generated by `cd ext/name && phpize && ./configure`
/ext/*/build/
/ext/*/configure.ac
/ext/*/run-tests.php
Expand All @@ -182,7 +181,7 @@ php
/configure.bat
/configure.js

# Generated by `/configure.(bat|js)` (architecture dependend)
# Generated by `/configure.(bat|js)` (architecture dependent)
/config.nice.bat

# NTS debug build x86
Expand All @@ -200,7 +199,7 @@ php
# Generated by x64 compiler, includes Debug, Debug_TS, Release, Release_TS
/x64/

# Miscellaneous files generated by Windows build sytem
# Miscellaneous files generated by Windows build system
/main/config.w32.h
/win32/build/deplister.exe
/win32/build/deplister.obj
Expand Down Expand Up @@ -238,6 +237,9 @@ php
# Test results generated by `./run-tests.php`
php_test_results_*.txt

# Temporary test information generated by `./run-tests.php`
/run-test-info.php

# Temporary POST data placeholder files generated by `./run-tests.php`
phpt.*

Expand Down
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
git:
quiet: true

dist: xenial
dist: bionic
language: c
sudo: required
os: linux
addons:
apt:
packages:
Expand Down Expand Up @@ -68,12 +68,16 @@ env:

jobs:
include:
- env: ENABLE_MAINTAINER_ZTS=0 ENABLE_DEBUG=0
- env: ENABLE_ZTS=0 ENABLE_DEBUG=0
arch: amd64
- env: ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1
arch: amd64
- env: ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 ARM64=1
arch: arm64
if: type = cron
- env: ENABLE_ZTS=1 ENABLE_DEBUG=1 SKIP_IO_CAPTURE_TESTS=1 S390X=1
arch: s390x
if: type = cron

before_script:
- ccache --version
Expand All @@ -91,7 +95,7 @@ before_script:
script:
# ARM64 CI reports nproc=32, which is excessive.
- if [ -z "$ARM64" ]; then export JOBS=$(nproc); else export JOBS=16; fi
- ./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 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
- ./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
- sapi/cli/php -d extension_dir=`pwd`/modules -r 'dl("zend_test");'

after_success:
Expand Down
38 changes: 8 additions & 30 deletions CODING_STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,44 +272,23 @@ use these rules.
1. Extensions should be well tested using `*.phpt` tests. Read about that at
[qa.php.net](https://qa.php.net/write-test.php) documentation.

## Documentation and folding hooks
## Folding hooks

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

```c
/* {{{ proto int abs(int number)
Returns the absolute value of the number */
/* {{{ Returns the absolute value of the number */
PHP_FUNCTION(abs)
{
...
}
/* }}} */
```

The `{{{` symbols are the default folding symbols for the folding mode in Emacs
and vim (`set fdm=marker`). Folding is very useful when dealing with large files
because you can scroll through the file quickly and just unfold the function you
wish to work on. The `}}}` at the end of each function marks the end of the
fold, and should be on a separate line.

The `proto` keyword there is just a helper for the `doc/genfuncsummary` script
which generates a full function summary. Having this keyword in front of the
function prototypes allows us to put folds elsewhere in the code without
messing up the function summary.

Optional arguments are written like this:

```c
/* {{{ proto object imap_header(int stream_id, int msg_no [, int from_length [, int subject_length [, string default_host]]])
Returns a header object with the defined parameters */
```

And yes, please keep the prototype on a single line, even if that line is
massive.

## New and experimental functions

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

Backwards compatible functions and names should be maintained as long as the
code can be reasonably be kept as part of the codebase. See the `README` in the
Expand Down
16 changes: 6 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ locations.
└─ tokenizer/
├─ tokenizer_data.c # Generated by `ext/tokenizer/tokenizer_data_gen.sh`
└─ ...
└─ xmlrpc/
├─ libxmlrpc/ # Forked and maintained in php-src
└─ ...
└─ zend_test # For testing internal APIs. Not needed for regular builds.
└─ ...
└─ zip/ # Bundled https://github.com/pierrejoye/php_zip
Expand Down Expand Up @@ -262,8 +259,8 @@ included.
- Run `make test` to check your change doesn't break other features.
- Rebuild PHP with `--enable-debug` which will show some kinds of memory errors
and check the PHP and web server error logs after running your PHP tests.
- Rebuild PHP with `--enable-maintainer-zts` to check your change compiles on
multi-threaded web servers.
- Rebuild PHP with `--enable-zts` to check your change compiles and operates
correctly in a thread safe PHP.
- Review the change once more just before submitting it.

## What happens after submitting contribution?
Expand Down Expand Up @@ -323,14 +320,15 @@ Having said that, here are the organizational rules:
`make test`.

7. For development use the `--enable-debug` switch to avoid memory leaks and the
`--enable-maintainer-zts` switch to ensure your code handles TSRM correctly
and doesn't break for those who need that.
`--enable-zts` switch to ensure your code handles TSRM correctly and doesn't
break for those who need that.

Currently we have the following branches in use:

| Branch | |
| --------- | --------- |
| master | Active development branch for PHP 8.0, which is open for backwards incompatible changes and major internal API changes. |
| master | Active development branch for PHP 8.1, which is open for backwards incompatible changes and major internal API changes. |
| PHP-8.0 | Is used to release the PHP 8.0.x series. This is a current stable version and is open for bugfixes only. |
| 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. |
| 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. |
| 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. |
Expand Down Expand Up @@ -409,8 +407,6 @@ New source code files should include the following header block:

```c
/*
+----------------------------------------------------------------------+
| PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
Expand Down
Loading