Sara Golemon
f4f03ae115
Update versions for PHP 8.0.0beta2
php-8.0.0beta2
2020-08-18 13:44:29 +00:00
Sara Golemon
9b4abd0cff
Update NEWS for PHP 8.0.0beta2
2020-08-18 13:44:29 +00:00
Christoph M. Becker
4514afc187
Fix #79988 : new reserved keyword match is a backward incompatible change
2020-08-18 12:39:18 +02:00
Dmitry Stogov
6f36b20abf
Don't add guard for empty()
2020-08-18 13:13:58 +03:00
Dmitry Stogov
8c90002201
Fixed bug #79987 (Memory leak in SplFileInfo because of missing zend_restore_error_handling())
2020-08-18 11:08:04 +03:00
Christoph M. Becker
2d32ddb273
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
7.3.23 is next
2020-08-18 10:03:17 +02:00
Christoph M. Becker
48d712565c
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
7.3.23 is next
2020-08-18 10:00:46 +02:00
Christoph M. Becker
ff14b7adad
7.3.23 is next
2020-08-18 09:55:37 +02:00
Derick Rethans
ac97e4be12
Merge branch 'PHP-7.4' into master
2020-08-18 08:06:35 +01:00
Derick Rethans
499bf91cd0
Prepare for 7.4.11
2020-08-18 08:06:20 +01:00
Christoph M. Becker
c8e6f05e70
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Fix HTTP response status code
2020-08-18 08:37:36 +02:00
Christoph M. Becker
3e8172d27b
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix HTTP response status code
2020-08-18 08:35:56 +02:00
Christoph M. Becker
1ae80f8c92
Fix HTTP response status code
2020-08-18 08:33:45 +02:00
Dmitry Stogov
5d94ff8a00
JIT extension may be NULL
2020-08-18 09:28:13 +03:00
Dmitry Stogov
fd0b57d48b
Fixed support for named arguments
2020-08-18 00:12:05 +03:00
Dmitry Stogov
3343eb64d7
Fixed trace type inference for FE_FETCH_R/RW
2020-08-17 22:55:25 +03:00
Dmitry Stogov
32052e7470
Fixed support for possible indirect variable modification (ext/standard/tests/array/bug77135.phpt failure).
2020-08-17 22:31:03 +03:00
Dmitry Stogov
afc93e44e5
JIT for ZEND_ISSET_ISEMPTY_CV
2020-08-17 20:48:48 +03:00
Dmitry Stogov
28e24e7acc
Fixed JIT for indirectly recursive traces
2020-08-17 20:47:06 +03:00
George Peter Banyard
72383ccabb
Promote warnings in ext/zip
2020-08-17 15:52:20 +02:00
Dmitry Stogov
a02237d2a9
Removed outdated/duplicated code
2020-08-17 15:24:33 +03:00
Dmitry Stogov
8202b4ed09
Properly patch jmp tables
2020-08-17 13:50:03 +03:00
George Peter Banyard
4522cbb789
Promote various OpenSSL warnings into Errors
...
Closes GH-5111
2020-08-16 18:59:52 +02:00
Tyson Andre
0461c1574a
Add run-tests.php --context [n] option.
...
Mentioned in https://github.com/php/php-src/pull/5965#discussion_r467621123
This PR proposes 3 lines of context so the impact can be seen in tests.
Other `diff` programs show around 3 lines of context.
(This helps indicate exactly which position a test should be updated
to add a new expected line at)
Use the mapping for choosing order to display diffs
Properly include context in cases where the expected output had more lines than
the actual output, e.g.
```
--FILE--
A
A1
A
C
NEARBY
--EXPECTF--
A
B
A1
B
A
B
A
B
NEARBY
```
Closes GH-5968
2020-08-16 09:31:38 -04:00
Máté Kocsis
517c9938af
Promote warnings to exceptions in ext/curl
...
Closes GH-5963
2020-08-14 17:40:35 +02:00
Nikita Popov
124260c165
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Null terminate the sodium_crypto_kx_keypair() result
2020-08-14 15:52:31 +02:00
Nikita Popov
5885eecf23
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Null terminate the sodium_crypto_kx_keypair() result
2020-08-14 15:52:15 +02:00
Nikita Popov
f6d7af21a3
Null terminate the sodium_crypto_kx_keypair() result
2020-08-14 15:51:31 +02:00
Nikita Popov
86072d60de
Reduce cost factors in sodium password_hash tests
...
Drop the 4x factors to make these tests a bit less obscenely
slow.
2020-08-14 15:39:42 +02:00
Christoph M. Becker
5072321c55
Improve test portability
...
We have to ensure that the attempted connection to the MySQL server
fails, and do that by passing an unknown host instead of falling back
to localhost.
2020-08-14 15:33:02 +02:00
Nikita Popov
2ca5d663f3
Avoid fatal error in session handler
2020-08-14 15:19:18 +02:00
Nikita Popov
cfaa270da5
Use variadic signature for PDOStatement::fetchAll()
...
The current signature is incorrect, because the $ctor_args parameter
is not required to be an array (it can at least also be null, and
isn't enforced by an exception anyway).
I'm going for the variadic signature here, because we already use
the same variadic signature in PDO::query() and
PDOStatement::setFetchMode(), all of them accepting essentially the
same arguments.
2020-08-14 15:19:18 +02:00
Nikita Popov
ca20f36b2a
Fix types in openssl stub
...
These two $recipcert parameters don't use proper union types
right now. They are a bit tricky due to the $recipkey -> $recipcert
fallback.
2020-08-14 15:19:18 +02:00
Christoph M. Becker
64368f4786
Fix newly introduced test for Windows
...
The warning message is rather different there, but since that is
irrelevant for this test case, we just suppress the warning.
2020-08-14 14:36:32 +02:00
Máté Kocsis
d72161505c
Add a few callable method parameter types to ext/sqlite3
...
Closes GH-5988
2020-08-14 13:43:11 +02:00
Nikita Popov
ce38d3a919
Don't assert mysql->mysql is non-null
...
There is an edge case in constructor behavior where we can end up
with mysql->mysql being NULL (rather than mysql itself already being
NULL). I think that ultimately that's a bug in the constructor code,
and we should probably be destroying the outer structure on
construction failure as well. However it's pretty hard to unravel
with when considering all the construction permutations.
2020-08-14 12:44:13 +02:00
Nikita Popov
196671a2b2
Simplify mysqli_stmt_bind_param() implementation
...
By using zpp.
2020-08-14 11:45:08 +02:00
Nikita Popov
179bc21f5f
Use normal zpp in mysqli_result::__construct()
...
This method doesn't need any special handling...
2020-08-14 11:15:36 +02:00
Nikita Popov
6570fc2cf8
Remove dummy aliases for mysqli constructors
...
These are only available as methods. Directly declare them as
such instead of aliasing to functions that don't actually exist.
2020-08-14 11:12:41 +02:00
Nikita Popov
07539685b9
Return empty string from SplFileInfo::getPathname()
...
Instead of false. This is consistent with how other methods like
SplFileInfo::getPath() behave. It's also a requirement before
SplFileInfo::__toString() calls SplFileInfo::getPathname() and
needs to return a string.
2020-08-14 11:09:30 +02:00
Nikita Popov
0a439fa932
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Add missing initialization check to RegexIterator::getRegex()
2020-08-14 10:42:14 +02:00
Nikita Popov
a0c231c0f5
Add missing initialization check to RegexIterator::getRegex()
2020-08-14 10:41:36 +02:00
Nikita Popov
964f66942c
Fix test after is_callable change
2020-08-14 10:40:20 +02:00
Nikita Popov
befe10fd21
Fix bug #78770
...
Refactor the zend_is_callable implementation to check callability
at a particular frame (this is an implementation detail for now,
but could be exposed in the API if useful). Pick the first parent
user frame as the one to check.
2020-08-14 10:24:06 +02:00
Máté Kocsis
f83368c6d9
Fix ZPP for mhash()
...
Closes GH-5985
2020-08-14 10:02:45 +02:00
George Peter Banyard
96c7d42a3c
Use ZPP callable check for ldap_set_rebind_proc()
2020-08-13 21:14:51 +02:00
George Peter Banyard
dae83cd7cb
Use ZPP callable check for Windows specific functions
2020-08-13 21:14:50 +02:00
George Peter Banyard
9cb522166c
Allow number_format to be only passed 3 arguments
...
Closes GH-5977
2020-08-13 18:07:17 +02:00
Tyson Andre
7be61bec80
Colorize --show-diff, only on stdout
...
Don't add colors to the saved `.diff` file.
Related to a41cf3e1d2
2020-08-13 11:27:32 -04:00
Nikita Popov
c3ddda4e3c
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fixed bug #79724
2020-08-13 17:26:20 +02:00