Coverage Report

Created: 2026-06-02 06:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/php-src/Zend/zend_interfaces.h
Line
Count
Source
1
/*
2
   +----------------------------------------------------------------------+
3
   | Zend Engine                                                          |
4
   +----------------------------------------------------------------------+
5
   | Copyright © Zend Technologies Ltd., a subsidiary company of          |
6
   |     Perforce Software, Inc., and Contributors.                       |
7
   +----------------------------------------------------------------------+
8
   | This source file is subject to the Modified BSD License that is      |
9
   | bundled with this package in the file LICENSE, and is available      |
10
   | through the World Wide Web at <https://www.php.net/license/>.        |
11
   |                                                                      |
12
   | SPDX-License-Identifier: BSD-3-Clause                                |
13
   +----------------------------------------------------------------------+
14
   | Authors: Marcus Boerger <helly@php.net>                              |
15
   +----------------------------------------------------------------------+
16
*/
17
18
#ifndef ZEND_INTERFACES_H
19
#define ZEND_INTERFACES_H
20
21
#include "zend.h"
22
#include "zend_API.h"
23
24
BEGIN_EXTERN_C()
25
26
extern ZEND_API zend_class_entry *zend_ce_traversable;
27
extern ZEND_API zend_class_entry *zend_ce_aggregate;
28
extern ZEND_API zend_class_entry *zend_ce_iterator;
29
extern ZEND_API zend_class_entry *zend_ce_arrayaccess;
30
extern ZEND_API zend_class_entry *zend_ce_serializable;
31
extern ZEND_API zend_class_entry *zend_ce_countable;
32
extern ZEND_API zend_class_entry *zend_ce_stringable;
33
34
typedef struct _zend_user_iterator {
35
  zend_object_iterator     it;
36
  zend_class_entry         *ce;
37
  zval                     value;
38
} zend_user_iterator;
39
40
ZEND_API zval* zend_call_method(zend_object *object, zend_class_entry *obj_ce, zend_function **fn_proxy, const char *function_name, size_t function_name_len, zval *retval, uint32_t param_count, zval* arg1, zval* arg2);
41
42
static zend_always_inline zval* zend_call_method_with_0_params(zend_object *object, zend_class_entry *obj_ce,
43
    zend_function **fn_proxy, const char *function_name, zval *retval)
44
50
{
45
50
  return zend_call_method(object, obj_ce, fn_proxy, function_name, strlen(function_name), retval, 0, NULL, NULL);
46
50
}
Unexecuted instantiation: php_date.c:zend_call_method_with_0_params
Unexecuted instantiation: hash.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_file_cache.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_persist.c:zend_call_method_with_0_params
Unexecuted instantiation: php_reflection.c:zend_call_method_with_0_params
Unexecuted instantiation: php_spl.c:zend_call_method_with_0_params
Unexecuted instantiation: spl_array.c:zend_call_method_with_0_params
Unexecuted instantiation: spl_directory.c:zend_call_method_with_0_params
Unexecuted instantiation: spl_dllist.c:zend_call_method_with_0_params
Unexecuted instantiation: spl_exceptions.c:zend_call_method_with_0_params
Unexecuted instantiation: spl_fixedarray.c:zend_call_method_with_0_params
Unexecuted instantiation: spl_heap.c:zend_call_method_with_0_params
spl_iterators.c:zend_call_method_with_0_params
Line
Count
Source
44
44
{
45
44
  return zend_call_method(object, obj_ce, fn_proxy, function_name, strlen(function_name), retval, 0, NULL, NULL);
46
44
}
Unexecuted instantiation: spl_observer.c:zend_call_method_with_0_params
Unexecuted instantiation: array.c:zend_call_method_with_0_params
Unexecuted instantiation: password.c:zend_call_method_with_0_params
Unexecuted instantiation: php_uri.c:zend_call_method_with_0_params
Unexecuted instantiation: php_uri_common.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_API.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_builtin_functions.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_closures.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_compile.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_default_classes.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_enum.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_exceptions.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_execute.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_generators.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_inheritance.c:zend_call_method_with_0_params
zend_interfaces.c:zend_call_method_with_0_params
Line
Count
Source
44
6
{
45
6
  return zend_call_method(object, obj_ce, fn_proxy, function_name, strlen(function_name), retval, 0, NULL, NULL);
46
6
}
Unexecuted instantiation: zend_object_handlers.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_objects.c:zend_call_method_with_0_params
Unexecuted instantiation: zend_weakrefs.c:zend_call_method_with_0_params
47
48
static zend_always_inline zval* zend_call_method_with_1_params(zend_object *object, zend_class_entry *obj_ce,
49
    zend_function **fn_proxy, const char *function_name, zval *retval, zval* arg1)
50
24
{
51
24
  return zend_call_method(object, obj_ce, fn_proxy, function_name, strlen(function_name), retval, 1, arg1, NULL);
52
24
}
Unexecuted instantiation: php_date.c:zend_call_method_with_1_params
Unexecuted instantiation: hash.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_file_cache.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_persist.c:zend_call_method_with_1_params
Unexecuted instantiation: php_reflection.c:zend_call_method_with_1_params
Unexecuted instantiation: php_spl.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_array.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_directory.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_dllist.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_exceptions.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_fixedarray.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_heap.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_iterators.c:zend_call_method_with_1_params
Unexecuted instantiation: spl_observer.c:zend_call_method_with_1_params
Unexecuted instantiation: array.c:zend_call_method_with_1_params
Unexecuted instantiation: password.c:zend_call_method_with_1_params
Unexecuted instantiation: php_uri.c:zend_call_method_with_1_params
Unexecuted instantiation: php_uri_common.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_API.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_builtin_functions.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_closures.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_compile.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_default_classes.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_enum.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_exceptions.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_execute.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_generators.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_inheritance.c:zend_call_method_with_1_params
zend_interfaces.c:zend_call_method_with_1_params
Line
Count
Source
50
24
{
51
  return zend_call_method(object, obj_ce, fn_proxy, function_name, strlen(function_name), retval, 1, arg1, NULL);
52
24
}
Unexecuted instantiation: zend_object_handlers.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_objects.c:zend_call_method_with_1_params
Unexecuted instantiation: zend_weakrefs.c:zend_call_method_with_1_params
53
54
static zend_always_inline zval* zend_call_method_with_2_params(zend_object *object, zend_class_entry *obj_ce,
55
    zend_function **fn_proxy, const char *function_name, zval *retval, zval* arg1, zval* arg2)
56
0
{
57
0
  return zend_call_method(object, obj_ce, fn_proxy, function_name, strlen(function_name), retval, 2, arg1, arg2);
58
0
}
Unexecuted instantiation: php_date.c:zend_call_method_with_2_params
Unexecuted instantiation: hash.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_file_cache.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_persist.c:zend_call_method_with_2_params
Unexecuted instantiation: php_reflection.c:zend_call_method_with_2_params
Unexecuted instantiation: php_spl.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_array.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_directory.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_dllist.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_exceptions.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_fixedarray.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_heap.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_iterators.c:zend_call_method_with_2_params
Unexecuted instantiation: spl_observer.c:zend_call_method_with_2_params
Unexecuted instantiation: array.c:zend_call_method_with_2_params
Unexecuted instantiation: password.c:zend_call_method_with_2_params
Unexecuted instantiation: php_uri.c:zend_call_method_with_2_params
Unexecuted instantiation: php_uri_common.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_API.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_builtin_functions.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_closures.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_compile.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_default_classes.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_enum.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_exceptions.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_execute.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_generators.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_inheritance.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_interfaces.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_object_handlers.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_objects.c:zend_call_method_with_2_params
Unexecuted instantiation: zend_weakrefs.c:zend_call_method_with_2_params
59
60
ZEND_API void zend_user_it_rewind(zend_object_iterator *_iter);
61
ZEND_API zend_result zend_user_it_valid(zend_object_iterator *_iter);
62
ZEND_API void zend_user_it_get_current_key(zend_object_iterator *_iter, zval *key);
63
ZEND_API zval *zend_user_it_get_current_data(zend_object_iterator *_iter);
64
ZEND_API void zend_user_it_move_forward(zend_object_iterator *_iter);
65
ZEND_API void zend_user_it_invalidate_current(zend_object_iterator *_iter);
66
ZEND_API HashTable *zend_user_it_get_gc(zend_object_iterator *_iter, zval **table, int *n);
67
68
ZEND_API void zend_user_it_new_iterator(zend_class_entry *ce, zval *object, zval *iterator);
69
ZEND_API zend_object_iterator *zend_user_it_get_new_iterator(zend_class_entry *ce, zval *object, int by_ref);
70
71
ZEND_API void zend_register_interfaces(void);
72
73
ZEND_API int zend_user_serialize(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
74
ZEND_API int zend_user_unserialize(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data);
75
76
ZEND_API zend_result zend_create_internal_iterator_zval(zval *return_value, zval *obj);
77
78
END_EXTERN_C()
79
80
#endif /* ZEND_INTERFACES_H */