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
Máté Kocsis
10957e498c
Do not generate frameless info items when func info generation is disabled
...
While here, I fixed newlines around arginfo and function entry generation. Previously, newlines were repeated.
2024-02-18 11:39:00 +01:00
Ilija Tovilo
631bc81607
Implement stackless internal function calls
...
Co-authored-by: Dmitry Stogov <dmitry@zend.com>
Closes GH-12461
2024-02-06 17:42:28 +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
Peter Kokot
085da2725f
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Use EXTENSIONS instead of SKIPIF sections in *.phpt
2024-01-31 11:20:56 +01:00
Peter Kokot
8d5fc8d23f
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Use EXTENSIONS instead of SKIPIF sections in *.phpt
2024-01-31 11:20:44 +01:00
Peter Kokot
218a93b898
Use EXTENSIONS instead of SKIPIF sections in *.phpt
...
This also fixes skipped tests due to different naming "zend-test"
instead of "zend_test" and "PDO" instead of "pdo":
- ext/dom/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/simplexml/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/zend_test/tests/observer_sqlite_create_function.phpt
EXTENSIONS section is used for the Windows build to load the non-static
extensions.
Closes GH-13276
2024-01-31 11:18:21 +01:00
Gina Peter Banyard
a479ed7cc5
Zend: Add tests for offsets and containers ( #12723 )
...
Add various tests showcasing the behavioural variations of different offset types used on various container types in all possible operations:
- Read
- Write
- Read Write
- Appending
- Unsetting
- Existence checks with isset()/empty/null coalesce operator
- Behaviour of nesting dimensions (e.g. $container[$offset1][$offset2])
Add a test to ensure compile time and runtime behaviour is identical for offsets.
Add an internal class that overloads the dimension object handlers to zend_test
2024-01-25 15:06:59 +00:00
David CARLIER
9726721560
general signatures discrepencies fixes ( #13122 )
2024-01-10 22:19:23 +00: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
ed431065fd
Merge branch 'PHP-8.3'
2023-11-25 18:49:40 +01:00
Bob Weinand
4774dc167e
Merge branch 'PHP-8.2' into PHP-8.3
2023-11-25 18:49:22 +01:00
Bob Weinand
c572613596
Merge branch 'PHP-8.1' into PHP-8.2
2023-11-25 18:48:57 +01:00
Bob Weinand
d404e1d1ee
USE_ZEND_ALLOC=1 in tests with zend_test.observe_opline_in_zendmm=1
2023-11-25 18:44:45 +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
f39b5c4c25
Close PHP tags in tests
...
Closes GH-12422
2023-10-18 17:34:10 +02: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
Remi Collet
13d3564a51
Fix #12063 convert PHP single-quote to C double-quote string
2023-08-28 14:48:49 +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
82972f448f
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix various bugs related to DNF types
2023-08-15 17:01:51 +01:00
George Peter Banyard
02a80c5b82
Fix various bugs related to DNF types
...
- GH-11958: DNF types in trait properties do not get bound properly
- GH-11883: Memory leak in zend_type_release() for non-arena allocated DNF types
- Internal trait bound to userland class would not be arena allocated
- Property DNF types were not properly deep copied during lazy loading
Co-authored-by: Ilija Tovilo <ilija.tovilo@me.com>
Co-authored-by: ju1ius <jules.bernable@gmail.com>
2023-08-15 15:34:33 +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
Ilija Tovilo
dc368d3983
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix zend/test arginfo stub hash
2023-08-01 11:42:04 +02:00
Ilija Tovilo
e14421cd73
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix zend/test arginfo stub hash
2023-08-01 11:41:46 +02:00
Ilija Tovilo
e61dbe54e9
Fix zend/test arginfo stub hash
2023-08-01 11:41:13 +02:00