/src/php-src/ext/spl/spl_functions.c
Line | Count | Source |
1 | | /* |
2 | | +----------------------------------------------------------------------+ |
3 | | | Copyright © The PHP Group and Contributors. | |
4 | | +----------------------------------------------------------------------+ |
5 | | | This source file is subject to the Modified BSD License that is | |
6 | | | bundled with this package in the file LICENSE, and is available | |
7 | | | through the World Wide Web at <https://www.php.net/license/>. | |
8 | | | | |
9 | | | SPDX-License-Identifier: BSD-3-Clause | |
10 | | +----------------------------------------------------------------------+ |
11 | | | Authors: Marcus Boerger <helly@php.net> | |
12 | | +----------------------------------------------------------------------+ |
13 | | */ |
14 | | |
15 | | #ifdef HAVE_CONFIG_H |
16 | | #include <config.h> |
17 | | #endif |
18 | | |
19 | | #include "php.h" |
20 | | |
21 | | void spl_set_private_debug_info_property( |
22 | | const zend_class_entry *ce, |
23 | | const char *property, |
24 | | size_t property_len, |
25 | | HashTable *debug_info, |
26 | | zval *value |
27 | | ) |
28 | 0 | { |
29 | 0 | zend_string *mangled_named = zend_mangle_property_name( |
30 | 0 | ZSTR_VAL(ce->name), |
31 | 0 | ZSTR_LEN(ce->name), |
32 | 0 | property, |
33 | 0 | property_len, |
34 | 0 | /* persistent */ false |
35 | 0 | ); |
36 | 0 | zend_hash_update(debug_info, mangled_named, value); |
37 | | zend_string_release_ex(mangled_named, /* persistent */ false); |
38 | 0 | } |