Sara Golemon
67f8e938fd
Update versions for PHP 8.0.0beta4
php-8.0.0beta4
2020-09-15 18:30:24 +00:00
Sara Golemon
a4a5cddd77
Update NEWS for PHP 8.0.0beta4
2020-09-15 18:30:23 +00:00
Bob Weinand
6d538e83aa
Fix OSS Fuzz issue: yielding from an aborted generator
2020-09-15 20:07:33 +02:00
George Peter Banyard
7a95e943d6
Promote warnings to Error in MySQLi extension
...
Closes GH-5803
2020-09-15 19:12:02 +02:00
Nikita Popov
7e61c2edd8
Fix uninitialized run-time cache when resolving named param defaults
...
Fixes oss-fuzz #25676 .
2020-09-15 16:51:56 +02:00
Nikita Popov
3c53732332
Fix undef var exception handling in JMP_NULL
...
We need to initialize the result variable in the exceptional
case as well.
Fixes oss-fuzz #25526 .
2020-09-15 15:44:01 +02:00
Nikita Popov
a009d370e9
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix assumption about property guard hash value
2020-09-15 15:27:17 +02:00
Nikita Popov
2bbf2a91aa
Fix assumption about property guard hash value
...
The "member" string here does not necessarily have a pre-calculated
hash value. In particular this is not the case if the class has no
properties.
Fixes oss-fuzz #25546 .
2020-09-15 15:26:41 +02:00
Remi Collet
b1c5532ad1
fix mbfl function prototypes
...
re-add mbfl_convert_filter_feed API
re-add pointer cast
2020-09-15 15:15:06 +02:00
Nikita Popov
16b9f19678
Fix compile-time/run-time discrepancies with unary operators
...
This addresses two issues:
* ~ throws for a number of types, and we should not compile-time
evaluate in that case. Add a check similar to what we do for
binary ops.
* Unary +/- may produce a different error message due to
canonicalization of the constant operand to the RHS. To avoid
this, put the constant operand on the RHS right away.
Fixes oss-fuzz #25649 .
2020-09-15 15:08:55 +02:00
Dmitry Stogov
f5bbb0480e
Tracing JIT for INIT_DYNAMIC_CALL (closure only)
2020-09-15 15:57:57 +03:00
Máté Kocsis
2408991fc5
Remove unintendedly committed test
2020-09-15 14:49:30 +02:00
Máté Kocsis
fa5a25b8bb
Adjust ext/openssl parameter names
...
Closes GH-6121
2020-09-15 14:27:54 +02:00
Máté Kocsis
c37a1cd650
Promote a few remaining errors in ext/standard
...
Closes GH-6110
2020-09-15 14:26:16 +02:00
George Peter Banyard
62c20c662a
Promote warnings to Error in SNMP extension
2020-09-15 13:08:07 +02:00
Gabriel Caruso
1a8936cde3
Check ReflectionReference::fromArrayElement with union types
...
ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference
is going to be its official signature for PHP 8.0.
Closes GH-5651
2020-09-15 12:56:10 +02:00
George Peter Banyard
c1823c6c8a
Promote warning to Error in ODBC extension
...
Closes GH-6123
2020-09-15 12:50:00 +02:00
George Peter Banyard
063fdd9422
Use ValueError instead of exceptions in SPL extension
2020-09-15 12:49:59 +02:00
George Peter Banyard
b6207338e8
Use normal error in SPL for uninitialized objects
2020-09-15 12:49:59 +02:00
George Peter Banyard
9affbef0e6
Use normal error in SPL for 'An iterator cannot be used with foreach by reference'
2020-09-15 12:49:59 +02:00
George Peter Banyard
4fc7026630
Convert warning to assetion in MySQL PDO driver
...
Closes GH-6120
2020-09-15 12:49:59 +02:00
Máté Kocsis
6082fd33a7
Add missing param type to pcre reflection test
2020-09-15 12:47:07 +02:00
Nikita Popov
d81ea5e928
Fix preg_replace_callback_array() with array subject
...
Apparently this "feature" was completely untested...
2020-09-15 12:03:18 +02:00
Nikita Popov
da0663a337
Add GC_TRY_ADDREF macro
...
That adds a ref if not immutable. Also audit uses of GC_IMMUTABLE
to either use GC_TRY_ADDREF or GC_TRY_PROTECT_RECURSION.
2020-09-15 11:41:09 +02:00
Christoph M. Becker
1bffe6b05c
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
7.3.24 is next
2020-09-15 10:59:24 +02:00
Christoph M. Becker
e97aed4ddb
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
7.3.24 is next
2020-09-15 10:57:39 +02:00
Christoph M. Becker
edddddcea8
7.3.24 is next
2020-09-15 10:51:41 +02:00
Nikita Popov
ec3f3002cd
Fix observer leak
...
Make sure to startup observer infrastructure before we register
the first observer...
2020-09-15 10:41:19 +02:00
Derick Rethans
e413b4c7ba
Merge branch 'PHP-7.4' into master
2020-09-15 09:37:16 +01:00
Derick Rethans
4e794b7935
The next release here will be 7.4.12
2020-09-15 09:36:57 +01:00
Dmitry Stogov
8f93709d7d
micro-optimization
2020-09-15 09:39:41 +03:00
Dmitry Stogov
3228d685e2
Renumber ZEND_ACC_... constants
2020-09-15 09:39:27 +03:00
George Peter Banyard and Christopher Jones
824a2bf149
Promote some warnings to ValueError in OCI8
...
Closes GH-6116
Co-authored-by: Christopher Jones <sixd@php.net >
2020-09-15 02:54:12 +02:00
Bob Weinand
452f7b0d41
Fix use-after-free with yield from in yield_from_multi_tree_single_nodes.phpt
...
Prevent release of generator children during destruction
2020-09-14 23:07:01 +02:00
Christoph M. Becker
f51bbcc2b2
Merge branch 'PHP-7.4' into master
...
* PHP-7.4:
Avoid segfault if module/extension version is not defined
2020-09-14 22:36:00 +02:00
Christoph M. Becker
15236fb83e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Avoid segfault if module/extension version is not defined
2020-09-14 22:34:58 +02:00
Christoph M. Becker
4e198c0064
Avoid segfault if module/extension version is not defined
2020-09-14 22:34:10 +02:00
Dmitry Stogov
a4c3aee5b2
Support for reference
2020-09-14 23:30:49 +03:00
Dmitry Stogov
a351da55bf
Simplify zend_jit_pre/post_inc/dec_typed_ref() helpers
2020-09-14 22:26:34 +03:00
Bob Weinand
ad61e141dd
Fix crashes with unproper cleaning of repeated yield from
...
Closes GH-6130
2020-09-14 20:49:24 +02:00
Benjamin Eberlei
1359a52d5b
Rename zend_error_notify APIs to zend_observer_error*
2020-09-14 19:29:14 +02:00
Dmitry Stogov
8f342ad4d2
JIT for PRE/POST_INC/DEC_OBJ
2020-09-14 19:36:15 +03:00
George Peter Banyard
d0111d785d
Promote warnings to Errors in PostgreSQL extension
...
Do some drive by indentation fixes
Also fix pg_select() in regards to the $result_type arg which was missing from ZPP
Closes GH-6129
2020-09-14 17:01:35 +02:00
Larry Garfield
96f2f3174b
Update array parameter names for named parameters
...
* The array "subject" of a function gets called $array.
* Further parameters should be self-descriptive if used
as a named parameter, and a full word, not an abbreviation.
* If there is a "bunch more arrays" variadic, it gets
called $arrays (because that's what was already there).
* A few functions have a variadic "a bunch more arrays,
and then a callable", and were already called $rest.
I left those as is and died a little inside.
* Any callable provided to an array function that acts
on the array is called $callback. (Nearly all were already,
I just fixed the one or two outliers.)
* array_multisort() is beyond help so I ran screaming.
2020-09-14 14:56:49 +00:00
Nikita Popov
57a4a2c5a8
Fixed bug #80096
...
We shouldn't assume that call->prev_execute_data is NULL here. The
value needs to be preserved for call chains.
2020-09-14 15:49:49 +02:00
George Peter Banyard
48368a6bf3
Promote Warnings to Error in PostgreSQL PDO driver
...
Closes GH-6119
2020-09-14 13:41:10 +02:00
George Peter Banyard
31ef94cd42
Convert Division by 0 warnings to Error per the Engine Warning RFC
...
Closes GH-6125
2020-09-14 13:40:07 +02:00
Dmitry Stogov
bf515649ff
JIT for ASSIGN_OBJ_OP
2020-09-14 13:31:41 +03:00
Nikita Popov
950ea89fb0
Convert E_ERROR to Error exception in mysqli_result iterator
...
The same condition uses Error exceptions in lots of other classes.
2020-09-14 12:15:24 +02:00
Nikita Popov
9d3c6665ab
Drop some dead code
2020-09-14 12:03:07 +02:00