Dmitry Stogov
ad40fffd36
Fixed Bug GH-8863: RW operation on readonly property doesn't throw with JIT
2022-06-27 14:25:30 +03:00
David CARLIER
bf29ee6917
Add reallocarray implementation.
...
In a similar model as _safe_*alloc api but for the `userland` it guards
against overflow before (re)allocation, usage concealed in fpm for now.
Modern Linux and most of BSD already have it.
Closes #8871 .
2022-06-26 13:10:13 +01:00
Ilija Tovilo
3b92a96610
Convert return type of various object handlers from int to zend_result ( #8755 )
2022-06-26 01:00:19 +02:00
Derick Rethans
30cc0c1742
Merge branch 'PHP-8.1'
2022-06-25 17:53:33 +01:00
Derick Rethans
49a3cc63dd
Merge branch 'PHP-8.0' into PHP-8.1
2022-06-25 17:53:26 +01:00
Derick Rethans
7166932bab
Merge remote-tracking branch 'derickr/bug80047' into PHP-8.0
2022-06-25 17:52:56 +01:00
Derick Rethans
973c3f6e24
Fixed #80047 : DatePeriod doesn't warn with custom DateTimeImmutable
2022-06-25 17:52:14 +01:00
Ilija Tovilo
76fcd70c13
Fix enum preloading again ( #8859 )
2022-06-25 14:55:46 +02:00
David Carlier
42c57123e9
Merge branch 'PHP-8.1'
2022-06-25 07:40:19 +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
Ilija Tovilo
982d8fd19b
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Add test coverage job
2022-06-24 15:11:56 +02:00
Ilija Tovilo
fa6953d307
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Add test coverage job
2022-06-24 15:11:33 +02:00
George Peter Banyard
20638dba3f
Use the passed 'this' pointer instead of ZEND_THIS ( #8854 )
...
Removes the horrible hack usage of defining execute_data to be able to use ZEND_THING
2022-06-24 03:38:29 +01:00
Ilija Tovilo
b7f0950ffe
Add test coverage job
2022-06-24 00:19:35 +02:00
Ilija Tovilo
bc03deec27
Fix magic constants in backed enum values
...
Fix GH-8777
2022-06-23 19:17:44 +02:00
Ilija Tovilo
d9e1871c85
Fix leak of backed_enum_table with preloading
2022-06-23 19:17:44 +02:00
Ilija Tovilo
912c22cca0
Fix segfault when using preloaded enums
2022-06-23 19:17:44 +02:00
Ilija Tovilo
45210b4729
Fix segfault when calling from/tryFrom on empty enum
2022-06-23 19:17:44 +02:00
Ilija Tovilo
50a3cb7cea
Get rid of duplicated rotr3 implementation ( #8853 )
2022-06-23 19:09:48 +02:00
Ilija Tovilo
1453dde423
Remove zend_shared_alloc_pages declaration that was never implemented ( #8852 )
2022-06-23 19:08:44 +02:00
Máté Kocsis
56137cd26e
Declare ext/mbstring constants in stubs ( #8798 )
2022-06-23 17:34:08 +02:00
Ilija Tovilo
cda7e8f1ec
Replace another hard-coded line number
2022-06-23 16:48:17 +02:00
Ilija Tovilo
9bfdfcac8f
Replace more hard-coded line numbers
2022-06-23 16:28:42 +02:00
Ilija Tovilo
44cd74b624
Fix lineno in backtrace of multi-line function calls
...
Closes GH-8810
Closes GH-8818
2022-06-23 16:10:32 +02:00
George Peter Banyard
7cd8879d77
Refactor spl_filesystem_object_get_path() to return zend_string*
2022-06-23 14:41:24 +01:00
George Peter Banyard
623fbfe748
Remove Z_SPLFILESYSTEM_P macro
...
Remove one level of macro expansion hell
2022-06-23 14:41:24 +01:00
George Peter Banyard
4d43241e96
Move some private SPL Directory elements out of the header
2022-06-23 14:41:24 +01:00
Christoph M. Becker
365537fd6d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-8848: imagecopyresized() error refers to the wrong argument
2022-06-23 15:22:28 +02: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
a98ad8630d
[ci skip] Merge branch 'PHP-8.1'
...
* PHP-8.1:
Prepare for 8.0.22
2022-06-23 15:18:18 +02:00
Christoph M. Becker
53265f56e7
[ci skip] Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Prepare for 8.0.22
2022-06-23 15:17:03 +02:00
Ilija Tovilo
0429159775
Fully convert accel_remap_huge_pages to use zend_result
...
Changes were lost during rebase...
2022-06-22 18:10:05 +02:00
Ilija Tovilo
1380b65d26
Remove reundant address comparison in accel_remap_huge_pages
...
Closes GH-8830
MAP_FIXED guarantees mmap will return that exact address or fail so the
address comparison is redundant.
The return value of this function is unused but I kept it because it
improves readability.
2022-06-22 18:01:53 +02:00
Derick Rethans
2ca4116e0a
Merged pull request #8845
2022-06-22 12:28:42 +01:00
Derick Rethans
5bfc160817
Don't shortcut empty oparray executions if zend_execute_ex has been overridden
2022-06-22 12:28:36 +01:00
Pierrick Charron
6b6e5f3748
Add AllowDynamicProperties on OCILob and OCICollection
...
Fix GH-8756 : oci_new_descriptor() triggers dynamic property
deprecation.
This fix should be temporary. At some point we should either define
those properties or just hide them since they should probably not be
used.
Better fix is here : https://github.com/php/php-src/pull/8758 but
waiting feedback from Oracle team before going ahead.
2022-06-22 06:40:41 -04:00
Ben Ramsey
c8f9555a05
[ci skip] fix gen_verify_stub example command
2022-06-21 11:26:23 -05:00
Ben Ramsey
19d8440099
Merge branch 'PHP-8.1'
2022-06-21 11:22:30 -05:00
Ben Ramsey
f3b45e74f5
PHP-8.1 is now for PHP 8.1.9-dev
2022-06-21 11:03:50 -05:00
Pierrick Charron
dc322821a4
Update NEWS for PHP 8.2.0 alpha3
2022-06-21 11:22:34 -04:00
George Peter Banyard
280b3db054
Use same type error wording for alias iterable in ZPP ( #8838 )
...
Follow-up from #7309 as I didn't change the ZPP TypeError wording.
2022-06-21 15:19:23 +01:00
jcm
804c708023
Add test for iconv_strpos() internal encoding error
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
Closes GH-8816.
2022-06-21 14:14:55 +02:00
Christoph M. Becker
1a3d836fa1
Fix CS (missing space)
2022-06-21 13:43:13 +02:00
Ilija Tovilo
cd363a9b1b
Specify unit in out of memory error ( #8820 )
...
Closes GH-8808
2022-06-21 12:37:38 +01:00
Christoph M. Becker
a1b05a3a40
Tweak $count range check of array_fill()
...
We fix the `UNEXPECTED(EXPECTED(…))`, which does not make sense, and
replace the magic number with the respective macro. We also add a
test case to verify the expected behavior for an `array_fill()` edge
case.
Closes GH-8804.
2022-06-21 11:39:05 +02:00
Gabriel Caruso
fcd69a4e2b
Prepare for 8.0.22
2022-06-21 11:33:20 +02:00
Tim Düsterhus
ff472ce6fc
Support the #[\AllowDynamicProperties] attribute in stubs ( #8776 )
...
* Support the `#[\AllowDynamicProperties]` attribute in stubs
* Use `#[\AllowDynamicProperties]` attribute in stubs
* Disallow applying both `@strict-properties` and `#[\AllowDynamicProperties]`
2022-06-21 09:28:57 +02:00
Christoph M. Becker
68c234332c
[ci skip] Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix bad merge (b8dee9b3fc )
2022-06-20 18:47:21 +02:00