Niels Dossche
889f308e01
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-14215: Cannot use FFI::load on CRLF header file with apache2handler
2024-05-14 19:56:05 +02:00
Niels Dossche
0e98a05a3d
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-14215: Cannot use FFI::load on CRLF header file with apache2handler
2024-05-14 19:52:19 +02:00
Niels Dossche
ebd1a36670
Fix GH-14215: Cannot use FFI::load on CRLF header file with apache2handler
...
Some modules may reset _fmode, which causes mangling of line endings.
Always be explicit like we do in other places where the native open call
is used.
Closes GH-14218.
2024-05-14 19:49:22 +02:00
David Carlier
250b160886
Merge branch 'PHP-8.3'
2024-03-14 18:59:57 +00:00
David Carlier
c24f621f57
Merge branch 'PHP-8.2' into PHP-8.3
2024-03-14 18:59:44 +00:00
David Carlier
db1f7b1286
zend_test fix copy_file_range test for linux 32 bits
...
close GH-13708
2024-03-14 18:59:26 +00:00
David Carlier
c2d20f48c5
Merge branch 'PHP-8.3'
2024-03-13 19:35:50 +00:00
David Carlier
bbb6ffa545
Merge branch 'PHP-8.2' into PHP-8.3
2024-03-13 19:35:36 +00:00
David Carlier
334419e157
zend test fix copy_file_range for musl.
...
normally should no longer need off64_t with glibc anyway.
2024-03-13 19:35:23 +00:00
Florian Engelhardt
14873dd286
Drop zend_mm_set_custom_debug_handlers() ( #13457 )
...
Simplifies zend_mm_set_custom_debug_handlers to just use zend_mm_set_custom_handlers(), saving some conditionals when the Zend allocator is not used.
2024-02-26 14:04:33 +01:00
Máté Kocsis
f2e199e878
Implement "support doc comments for internal classes and functions" ( #13266 )
...
Fixes #13130
2024-02-25 08:41:31 +01:00
Peter Kokot
9628ca7bd2
Fix zend_test extension name ( #13321 )
...
The zend_test extension was renamed from zend-test to zend_test in
dbe5725ff3
. This only syncs few minor
remainings.
2024-02-04 19:27:58 +01:00
Niels Dossche
6f460fd272
Use diagnostic macros for the warning
2023-12-07 00:05:36 +01:00
Niels Dossche
f8d50647ea
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Silence deprecations in zend-test
2023-12-06 23:49:34 +01:00
Niels Dossche
f6268b87c7
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Silence deprecations in zend-test
2023-12-06 23:49:25 +01:00
Niels Dossche
de3c5c0bc8
Silence deprecations in zend-test
...
Forgot it here...
2023-12-06 23:49:08 +01:00
Ilija Tovilo
30acbba2ca
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix leak of call->extra_named_params on internal __call
2023-12-01 16:50:56 +01:00
Ilija Tovilo
b7a468cd06
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix leak of call->extra_named_params on internal __call
2023-12-01 16:50:49 +01:00
Ilija Tovilo
f203edd3c5
Fix leak of call->extra_named_params on internal __call
...
Fixes GH-12835
Closes GH-12836
2023-12-01 16:49:16 +01:00
Bob Weinand
78364ef97e
Merge branch 'PHP-8.3'
2023-11-25 01:02:52 +01:00
Bob Weinand
88537c55b5
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-25 01:01:56 +01:00
Bob Weinand
50ccea31f2
Merge branch 'PHP-8.1' into PHP-8.2
2023-11-25 00:59:26 +01:00
Florian Engelhardt
8d2df86b06
Fix invalid opline in OOM handlers within ZEND_FUNC_GET_ARGS and ZEND_BIND_STATIC ( #12768 )
...
* fix segfault in `ZEND_BIND_STATIC`
In case a `ZEND_BIND_STATIC` is being executed, while the current chunk is full,
the `zend_array_dup()` call will trigger a OOM in ZendMM which will crash, as
the opline might be a dangling pointer.
* add missing test
* `assert()`ing seems easier than trying to make the compiler to not optimize
* moved from function call to INI setting, so we can use this in other places as well
* make `assert()` work no NDEBUG builds
* document magic number
* fix segfault in `ZEND_FUNC_GET_ARGS`
In case a `ZEND_FUNC_GET_ARGS` is being executed, while the current chunk is
full, the `zend_new_array()` call will trigger a OOM in ZendMM which will crash,
as the opline might be a dangling pointer.
---------
Co-authored-by: Florian Engelhardt <florian@engelhardt.tc>
2023-11-25 00:54:02 +01:00
Niels Dossche
490b80858d
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-12633: sqlite3_defensive.phpt fails with sqlite 3.44.0
Fix GH-12628: The gh11374 test fails on Alpinelinux
2023-11-10 00:13:15 +01:00
Niels Dossche
e6fef2944b
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12633: sqlite3_defensive.phpt fails with sqlite 3.44.0
Fix GH-12628: The gh11374 test fails on Alpinelinux
2023-11-10 00:12:47 +01:00
Niels Dossche
fbda6b50a3
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-12633: sqlite3_defensive.phpt fails with sqlite 3.44.0
Fix GH-12628: The gh11374 test fails on Alpinelinux
2023-11-10 00:08:09 +01:00
Niels Dossche
78fba9cb80
Fix GH-12628: The gh11374 test fails on Alpinelinux
...
Closes GH-12636.
2023-11-10 00:01:22 +01:00
Máté Kocsis
500490ddd5
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-12558 Escape \N in generated stubs
2023-10-31 10:11:27 +01:00
Máté Kocsis
98e8e277b5
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12558 Escape \N in generated stubs
2023-10-31 10:09:22 +01:00
Máté Kocsis
d4e40dc0e1
Fix GH-12558 Escape \N in generated stubs ( #12562 )
2023-10-31 10:06:56 +01:00
Dmitry Stogov
8f8b5ba082
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix possible NULL dereference (crash on Zend/tests/arginfo_zpp_mismatch.phpt)
2023-10-23 10:24:15 +03:00
Dmitry Stogov
25cb2a40d6
Fix possible NULL dereference (crash on Zend/tests/arginfo_zpp_mismatch.phpt)
2023-10-23 10:23:36 +03:00
Ilija Tovilo
692cea5cbc
Use zend_error_noreturn for E_ERROR consistently
...
To be clear, these already don't return. zend_error_noreturn just hints at this
fact through the ZEND_NORETURN attribute.
Closes GH-12204
2023-09-14 11:44:55 +02:00
George Peter Banyard
d7273c5963
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Prevents double call to internal iterator rewind handler
adds failing test case for #12060
2023-09-05 10:36:16 +01:00
George Peter Banyard
c672a06954
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Prevents double call to internal iterator rewind handler
adds failing test case for #12060
2023-09-05 10:27:33 +01:00
ju1ius
9658d9ada4
adds failing test case for #12060
...
Signed-off-by: George Peter Banyard <girgias@php.net>
2023-09-05 10:23:22 +01:00
Niels Dossche
0b9702c9ed
Implement GH-11934: Allow to pass CData into struct and/or union fields
...
Co-authored-by: KapitanOczywisty <44417092+KapitanOczywisty@users.noreply.github.com>
Closes GH-11935.
2023-08-29 17:01:10 +02:00
Máté Kocsis
c934e24197
Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs
2023-08-26 21:35:31 +02:00
ju1ius
3e0e7e3f90
releases property attributes of internal classes ( #11980 )
...
* adds test case for internal class property attribute
* releases property attributes of internal classes
2023-08-24 16:07:00 +02:00
ju1ius
7f1c3bf09b
Adds support for DNF types in internal functions and properties ( #11969 )
...
Note that this does not add support for items generated by gen_stubs,
only for items registered dynamically via the Zend API.
Closes GH-10120
2023-08-19 00:11:06 +01:00
George Peter Banyard
65a02f482f
ext/zend_test: Move object handler test objects to their own file ( #11852 )
2023-08-02 18:52:55 +01:00
Ben Ramsey
3d5f239474
Merge branch 'PHP-8.2'
2023-07-31 20:15:51 -05:00
Ben Ramsey
7ecb284926
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-31 20:06:37 -05:00
Ben Ramsey
ebbccb3dc6
Merge branch 'PHP-8.0' into PHP-8.1
2023-07-31 20:01:03 -05:00
Niels Dossche
62228a2568
Disable global state test on Windows
...
It looks like the config.w32 uses CHECK_HEADER_ADD_INCLUDE to add the include
path to libxml into the search path.
That doesn't happen in zend-test.
To add to the Windows trouble, libxml is statically linked in, ext/libxml can
only be built statically but ext/zend-test can be built both statically and
dynamically.
So the regression tests won't work in all possible configurations anyway on Windows.
All of this is no problem on Linux because it just uses dynamic linking
and pkg-config, without any magic.
Signed-off-by: Ben Ramsey <ramsey@php.net>
2023-07-31 19:55:10 -05:00
Derick Rethans
797bd9f384
Merge branch 'PHP-8.2'
2023-07-31 20:05:28 +01:00
Derick Rethans
47a347e8b0
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-31 20:05:20 +01:00
Derick Rethans
93b43ac238
Fix broken merge
2023-07-31 20:05:12 +01:00
Derick Rethans
86afbe10e2
Merge branch 'PHP-8.2'
2023-07-31 19:57:02 +01:00
Derick Rethans
deddf4692a
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-31 19:54:44 +01:00