/src/php-src/ext/spl/spl_functions.c
Line | Count | Source |
1 | | /* |
2 | | +----------------------------------------------------------------------+ |
3 | | | Copyright (c) The PHP Group | |
4 | | +----------------------------------------------------------------------+ |
5 | | | This source file is subject to version 3.01 of the PHP license, | |
6 | | | that is bundled with this package in the file LICENSE, and is | |
7 | | | available through the world-wide-web at the following url: | |
8 | | | https://www.php.net/license/3_01.txt | |
9 | | | If you did not receive a copy of the PHP license and are unable to | |
10 | | | obtain it through the world-wide-web, please send a note to | |
11 | | | license@php.net so we can mail you a copy immediately. | |
12 | | +----------------------------------------------------------------------+ |
13 | | | Authors: Marcus Boerger <helly@php.net> | |
14 | | +----------------------------------------------------------------------+ |
15 | | */ |
16 | | |
17 | | #ifdef HAVE_CONFIG_H |
18 | | #include <config.h> |
19 | | #endif |
20 | | |
21 | | #include "php.h" |
22 | | |
23 | | void spl_set_private_debug_info_property( |
24 | | const zend_class_entry *ce, |
25 | | const char *property, |
26 | | size_t property_len, |
27 | | HashTable *debug_info, |
28 | | zval *value |
29 | | ) |
30 | 74 | { |
31 | 74 | zend_string *mangled_named = zend_mangle_property_name( |
32 | 74 | ZSTR_VAL(ce->name), |
33 | 74 | ZSTR_LEN(ce->name), |
34 | 74 | property, |
35 | 74 | property_len, |
36 | 74 | /* persistent */ false |
37 | 74 | ); |
38 | 74 | zend_hash_update(debug_info, mangled_named, value); |
39 | | zend_string_release_ex(mangled_named, /* persistent */ false); |
40 | 74 | } |