History log of /PHP-8.2/ext/zend_test/observer.c (Results 1 – 15 of 15)
Revision Date Author Comments
# 69bcbdc3 21-Oct-2024 Ilija Tovilo

Fix handling of nested generator in zend_test observer

This is the counterpart of GH-15952.

Fixes GH-16514
Closes GH-16530


# 5c798415 08-Oct-2024 Ilija Tovilo

Fix segfault in zend_test_execute_internal()

zend_pass_function also has no name, so we might also be referring to an
internal function here. In this case, ZEND_NEW uses the zend_pass_fu

Fix segfault in zend_test_execute_internal()

zend_pass_function also has no name, so we might also be referring to an
internal function here. In this case, ZEND_NEW uses the zend_pass_function when
there is no constructor.

Fixes GH-16294
Closes GH-16301

show more ...


# af098acd 21-Mar-2024 Bob Weinand

Always load EX(opline) into the current frame in JIT when observers are enabled

Fixes #13772.
Closes #13776.


# d5c649b3 23-Feb-2023 Max Kellermann

zend_compiler, ...: use `uint8_t` instead of `zend_uchar` (#10621)

`zend_uchar` suggests that the value is an ASCII character, but here,
it's about very small integers. This is misleadi

zend_compiler, ...: use `uint8_t` instead of `zend_uchar` (#10621)

`zend_uchar` suggests that the value is an ASCII character, but here,
it's about very small integers. This is misleading, so let's use a
C99 integer instead.

On all architectures currently supported by PHP, `zend_uchar` and
`uint8_t` are identical. This change is only about code readability.

show more ...


# 1015f1ff 13-Mar-2023 Bob Weinand

Add test, fix x86 JIT

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>


# bf427b73 11-Jul-2022 Bob Weinand

Add an API to observe functions and classes being linked

To observe when the functions and classes start being officially available to the user

Signed-off-by: Bob Weinand <bobwei9@h

Add an API to observe functions and classes being linked

To observe when the functions and classes start being officially available to the user

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>

show more ...


# b3b21ed5 31-Jul-2022 Bob Weinand

Fix ZEND_RC_DEBUG build in zend_test observer tests


# 50a3fa49 31-Jul-2022 Bob Weinand

Fix observer test


# 625f1649 20-Jul-2022 Bob Weinand

Include internal functions in the observer API

There are two main motivations to this:
a) The logic for handling internal and userland observation can be unified.
b) Unwinding of obs

Include internal functions in the observer API

There are two main motivations to this:
a) The logic for handling internal and userland observation can be unified.
b) Unwinding of observed functions on a bailout does notably not include observers. Even if users of observers were to ensure such handling themselves, it would be impossible to retain the relative ordering - either the user has to unwind all internal observed frames before the automatic unwinding (zend_observer_fcall_end_all) or afterwards, but not properly interleaved.

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>

show more ...


# ac31e2e6 30-Jul-2022 Bob Weinand

Fix memory_leak in zend_test

Properly use globals init/shutdown to allocate the observer_observe_function_names hashtable instead of attempting to do everything in the ini changed handler


# 9e2de4c2 11-Jul-2022 Bob Weinand

Add an API to manipulate observers at runtime

Signed-off-by: Bob Weinand <bobwei9@hotmail.com>


# 59ae6482 16-Sep-2021 Nikita Popov

Release observed function name table


# 848b5458 21-Jul-2021 Joe Watkins

more fiber notifications (#7293)


# c5f9cded 18-Jun-2021 Martin Schröder <53789145+kooldev@users.noreply.github.com>

Flexible fiber bailout handling (#7163)


# d0c43e10 11-Jun-2021 Aaron Piotrowski

Reorganize zend_test and add custom fiber implementation tests (#7137)