Dmitry Stogov
d50875c822
Fix type inference
...
Fixes oss-fuzz #49423 and #49474
2022-07-25 15:53:06 +03:00
Dmitry Stogov
e70d282077
JIT: Fix missing type stote
...
Fixes oss-fuzz #49402
2022-07-25 15:24:26 +03:00
Dmitry Stogov
cc465ba0bb
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix memory leak
2022-07-25 12:08:00 +03:00
Dmitry Stogov
44b86aee31
Fix memory leak
...
Fixes oss-fuzz #49272
2022-07-25 12:04:46 +03:00
Derick Rethans
0ae9942801
Merge remote-tracking branch 'derickr/timelib-2021-15-sync' into PHP-8.1
2022-07-22 13:07:28 +01:00
Derick Rethans
7831a1cae6
Add test case for GH-8964
2022-07-22 13:06:32 +01:00
Derick Rethans
0d3061d225
Import timelib 2021.15
2022-07-22 13:06:32 +01:00
Ilija Tovilo
5c10aa43c2
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix spl test cleanup
2022-07-21 17:21:18 +02:00
Ilija Tovilo
3962f00b01
Fix spl test cleanup
2022-07-21 17:20:30 +02:00
George Peter Banyard
c7a0439d60
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix memory leak in LMDB driver
2022-07-21 14:08:40 +01:00
George Peter Banyard
5b83b3a933
Fix memory leak in LMDB driver
2022-07-21 14:05:48 +01:00
Derick Rethans
557e02bf9f
Merge timelib 2021.14
2022-07-21 12:11:42 +01:00
Derick Rethans
355995735b
Fixed diff, again
2022-07-21 12:11:42 +01:00
Derick Rethans
37d460b64a
Fixed #81263 : Wrong result from DateTimeImmutable::diff
2022-07-21 12:11:42 +01:00
Derick Rethans
cc9c57722a
Fixed GH-8730: DateTime::diff miscalculation is same time zone of different type
2022-07-21 12:11:42 +01:00
Derick Rethans
eea2283693
Merge timelib 2021.13
2022-07-21 11:42:35 +01:00
Christoph M. Becker
c2bdaa48e1
Fix GH-9008: mb_detect_encoding(): wrong results with null $encodings
...
Passing `null` to `$encodings` is supposed to behave like passing the
result of `mb_detect_order()`. Therefore, we need to remove the non-
encodings from the `elist` in this case as well. Thus, we duplicate
the global `elist`, so we can modify it.
Closes GH-9063.
2022-07-20 16:58:55 +02:00
Christoph M. Becker
32d55f7422
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-9017: php_stream_sock_open_from_socket could return NULL
2022-07-19 17:07:27 +02:00
Heiko Weber
3b7babf9b3
Fix GH-9017: php_stream_sock_open_from_socket could return NULL
...
Closes GH-9020.
2022-07-19 17:06:02 +02:00
Dmitry Stogov
82d3ad64df
Fix type inference
...
Fixes oss-fuzz #48908
2022-07-18 14:20:06 +03:00
Arnaud Le Blanc
f2381ae4ba
Fix JIT crash with large number of match/switch arms ( #8961 )
...
Switch statements may generate a large number of exit points. Once the max
number of exit points is reached, get_exit_addr() returns NULL. This was not
checked, and this resulted in a jump table with some 0 addresses.
2022-07-18 12:34:20 +02:00
Dmitry Stogov
b734d45626
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix type inference for FETCH_DI_UNSET
2022-07-18 13:15:03 +03:00
Dmitry Stogov
bd30eff5de
Fix type inference for FETCH_DI_UNSET
...
Fixes oss-fuzz #48507
2022-07-18 13:14:15 +03:00
David Carlier
f15cfba39b
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-15 12:48:09 +01:00
David CARLIER
d830a1f6f0
random extension macOs handling update.
...
Not such as fix but taking more precautions.
Indeed, the arc4random has two little flaws in this platform,
one already caught upfront by the extension (ie size 0), also
internal use of ccrng_generate which can silently fail in few rare
cases.
Closes #7824 .
2022-07-15 12:43:43 +01:00
David Carlier
5e0b2e537d
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-08 17:39:05 +01:00
David Carlier
7c3dfbb845
intl extension, build fix for icu >= 69.x release. ubrk/ucnv_safeClone had been deprecated in favor of ubrk/ucnv_clone which does not use user provided stacks but remain thread safe.
2022-07-08 17:38:31 +01:00
Pierrick Charron
c650e67c90
Fixed bug GH-8943 Reflection::getModifiersNames() with readonly modifier
2022-07-07 16:59:54 -04:00
George Peter Banyard
e67336f46a
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Revert "Fix GH-8563 Different results for seek() on SplFileObject and SplTempFileObject"
2022-07-05 21:33:47 +01:00
George Peter Banyard
79a283240e
Revert "Fix GH-8563 Different results for seek() on SplFileObject and SplTempFileObject"
...
Although the fix is partially correct it also breaks long standing behaviour which has been produced since PHP 5.3.
This reverts commit 6f87a5c633 .
2022-07-05 21:28:59 +01:00
Christoph M. Becker
ca6d511fa5
Fix #81723 : Memory corruption in finfo_buffer()
...
We need to use the same memory allocator throughout.
2022-07-05 00:44:00 -06:00
Derick Rethans
d8ebfdc506
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-04 10:50:32 +01:00
George Peter Banyard
8fce70ae7b
Abort LMDB transaction whe trying to delete non-existing key
2022-07-01 17:26:27 +01:00
Ilija Tovilo
110573726b
Disallow assigning reference to unset readonly property
...
Closes GH-7942
Closes GH-8188
2022-07-01 12:16:32 +02:00
David Carlier
26d63c74be
Merge branch 'PHP-8.0' into PHP-8.1
2022-07-01 05:34:05 +01:00
David Carlier
b3569865b3
Fix the crypt sha apis build (with recent clang versions).
...
Removing the said subtraction by casting instead.
While at it fixing werror level on phpdbg too.
Closes #8897 .
2022-07-01 05:33:12 +01:00
Dmitry Stogov
af75eab0ef
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix incorrect condition introdused in 7cf6f17383
2022-06-29 13:09:14 +03:00
Dmitry Stogov
d66d477d6f
Fix incorrect condition introdused in 7cf6f17383
2022-06-29 13:08:18 +03:00
Dmitry Stogov
b7693360cb
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fixed bug GH-8847 (PHP hanging infinitly at 100% cpu when check php syntaxe of a valid file)
2022-06-29 12:13:03 +03:00
Dmitry Stogov
7cf6f17383
Fixed bug GH-8847 (PHP hanging infinitly at 100% cpu when check php syntaxe of a valid file)
2022-06-29 12:10:46 +03:00
Dmitry Stogov
7e23c838e2
Fixed Bug GH-8863: RW operation on readonly property doesn't throw with JIT
2022-06-27 16:41:53 +03:00
Derick Rethans
49a3cc63dd
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-25 17:53:26 +01:00
Derick Rethans
973c3f6e24
Fixed #80047 : DatePeriod doesn't warn with custom DateTimeImmutable
2022-06-25 17:52:14 +01:00
David Carlier
af6325f68e
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-25 07:39:55 +01:00
Grégoire Paris
13f55d5c1b
Use proper grammar in error message
...
Drop period in error messages
2 reasons:
- These error messages are not regular sentences.
- Having the offending value between parenthesis after the period looks weird.
Closes GH-8858.
2022-06-25 07:39:31 +01:00
Christoph M. Becker
bc8e52f651
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8848: imagecopyresized() error refers to the wrong argument
2022-06-23 15:22:09 +02:00
Christoph M. Becker
9405f43ba9
Fix GH-8848: imagecopyresized() error refers to the wrong argument
...
Closes GH-8849.
2022-06-23 15:20:49 +02:00
Christoph M. Becker
7e8ad578ab
Fix bad merge ( b8dee9b3fc)
2022-06-20 18:46:17 +02:00
Christoph M. Becker
b8dee9b3fc
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8827: Intentionally closing std handles no longer possible
2022-06-20 18:04:34 +02:00
Christoph M. Becker
a8437d08a8
Fix GH-8827: Intentionally closing std handles no longer possible
...
We revert the commits which caused this regression from the PHP-8.0 and
PHP-8.1 branches for now. We keep it in "master" because of PR #8833
which may offer a proper fix without BC break.
2022-06-20 18:01:02 +02:00