We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b74c04 commit 6de6199Copy full SHA for 6de6199
agent/php_observer.c
@@ -166,8 +166,8 @@ bool nr_php_observer_is_registered(zend_function* func) {
166
}
167
begin_handler = (zend_observer_fcall_begin_handler *)&ZEND_OP_ARRAY_EXTENSION((&(func)->common), zend_observer_fcall_op_array_extension);
168
// begin_handler will be NULL if the observer hasn't been installed yet.
169
- // *begin_Handler will be NULL if the function has not yet been called.
170
- return (begin_handler && *begin_handler);
+ // *begin_Handler will be (void*)2 if the function has not yet been called.
+ return (begin_handler && *begin_handler != (void*)2);
171
172
173
bool nr_php_observer_remove_begin_handler(zend_function* func, nruserfn_t* wraprec) {
0 commit comments