Home
last modified time | relevance | path

Searched refs:str_key (Results 1 – 14 of 14) sorted by relevance

/PHP-8.3/ext/phar/
H A Ddirstream.c93 zend_string *str_key; in phar_dir_read() local
113 PHP_STRLCPY(dirent->d_name, ZSTR_VAL(str_key), sizeof(dirent->d_name), ZSTR_LEN(str_key)); in phar_dir_read()
174 zend_string *str_key; in phar_make_dirstream() local
195 keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
218 memcpy(entry, ZSTR_VAL(str_key), found - ZSTR_VAL(str_key)); in phar_make_dirstream()
219 keylen = found - ZSTR_VAL(str_key); in phar_make_dirstream()
245 save = ZSTR_VAL(str_key); in phar_make_dirstream()
294 zend_string *str_key; in phar_wrapper_open_dir() local
374 if (ZSTR_LEN(str_key) > i_len && 0 == memcmp(ZSTR_VAL(str_key), internal_file, i_len)) { in phar_wrapper_open_dir()
537 zend_string *str_key; in phar_wrapper_rmdir() local
[all …]
H A Dstream.c625 zend_string *str_key; in phar_wrapper_stat() local
628 …if (ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_LEN(s… in phar_wrapper_stat()
894 zend_string *str_key; in phar_wrapper_rename() local
900 str_key = b->key; in phar_wrapper_rename()
903 ZSTR_LEN(str_key) > from_len && in phar_wrapper_rename()
909 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
927 str_key = b->key; in phar_wrapper_rename()
929 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
933 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
944 str_key = b->key; in phar_wrapper_rename()
[all …]
H A Dphar.c2028 zend_string *str_key; in phar_detect_phar_fname_ext() local
2030 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&PHAR_G(phar_fname_map), str_key, pphar) { in phar_detect_phar_fname_ext()
2031 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2035 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2036 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
2037 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len); in phar_detect_phar_fname_ext()
2043 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&cached_phars, str_key, pphar) { in phar_detect_phar_fname_ext()
2044 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2048 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2049 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
[all …]
H A Dutil.c1301 zend_string *str_key; in phar_get_entry_info_dir() local
1303 ZEND_HASH_MAP_FOREACH_STR_KEY(&phar->mounted_dirs, str_key) { in phar_get_entry_info_dir()
1304 if (ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
1311 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_get_entry_info_dir()
1313 …phar internal error: mounted path \"%s\" could not be retrieved from manifest", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1320 …rnal error: mounted path \"%s\" is not properly initialized as a mounted path", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1325 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + ZSTR_LEN(str_key)); in phar_get_entry_info_dir()
H A Dphar_object.c1397 char *str_key; in phar_build() local
1441 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1443 save = str_key; in phar_build()
1535 str_key = fname + base_len; in phar_build()
1537 if (*str_key == '/' || *str_key == '\\') { in phar_build()
1538 str_key++; in phar_build()
1568 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1570 save = str_key; in phar_build()
1609 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_build()
1631 …w_exception_ex(spl_ce_BadMethodCallException, 0, "Entry %s cannot be created: %s", str_key, error); in phar_build()
[all …]
/PHP-8.3/Zend/
H A Dzend_hash.c3337 zend_string *str_key; in zend_symtable_to_proptable() local
3344 ZEND_HASH_MAP_FOREACH_STR_KEY(ht, str_key) { in zend_symtable_to_proptable()
3345 if (!str_key) { in zend_symtable_to_proptable()
3361 if (!str_key) { in zend_symtable_to_proptable()
3362 str_key = zend_long_to_str(num_key); in zend_symtable_to_proptable()
3363 zend_string_delref(str_key); in zend_symtable_to_proptable()
3376 zend_hash_update(new_ht, str_key, zv); in zend_symtable_to_proptable()
3390 zend_string *str_key; in zend_proptable_to_symtable() local
3400 if (str_key && ZEND_HANDLE_NUMERIC(str_key, num_key)) { in zend_proptable_to_symtable()
3433 if (!str_key || ZEND_HANDLE_NUMERIC(str_key, num_key)) { in zend_proptable_to_symtable()
[all …]
H A Dzend_execute.c3023 str_key: in zend_array_key_exists_fast()
3050 goto str_key; in zend_array_key_exists_fast()
/PHP-8.3/ext/standard/
H A Dstring.c2686 zend_string *str_key; local
2704 if (UNEXPECTED(!str_key)) {
2707 len = ZSTR_LEN(str_key);
2732 if (UNEXPECTED(!str_key)) {
2750 key_used = str_key;
2758 if (UNEXPECTED(!str_key)) {
3212 if (UNEXPECTED(!str_key)) {
3216 if (ZSTR_LEN(str_key) < 1) {
3219 } else if (ZSTR_LEN(str_key) == 1) {
3221 ZSTR_VAL(str_key)[0],
[all …]
H A Darray.c4816 zend_string *str_key; local
4822 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, str_key, val) {
4840 if (str_key) {
4841 zend_hash_add_new(Z_ARRVAL_P(return_value), str_key, val);
6478 zend_string *str_key; local
6497 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL(arrays[0]), num_key, str_key, zv) {
6509 if (str_key) {
6510 _zend_hash_append(Z_ARRVAL_P(return_value), str_key, &result);
6685 zend_string *str_key; local
6727 if (str_key) {
[all …]
/PHP-8.3/ext/standard/tests/file/
H A Dfile.inc548 foreach($string_keys as $str_key)
550 if($stat[$key] != $stat[$str_key]) {
551 echo "Error: stat[$key] doesn't match with stat[$str_key]\n";
/PHP-8.3/ext/pdo/
H A Dpdo_dbh.c407 zend_string *str_key = NULL; in PHP_METHOD() local
409 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(options), long_key, str_key, attr_value) { in PHP_METHOD()
410 if (str_key) { in PHP_METHOD()
/PHP-8.3/ext/soap/
H A Dphp_encoding.c1982 zend_string *str_key; in to_xml_object() local
1985 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(prop, str_key, zprop) { in to_xml_object()
1989 if (str_key) { in to_xml_object()
1995 zend_unmangle_property_name(str_key, &class_name, &prop_name); in to_xml_object()
1997 prop_name = ZSTR_VAL(str_key); in to_xml_object()
H A Dphp_schema.c2289 zend_string *str_key; in schema_type_fixup() local
2292 …if (zend_hash_get_current_key_ex(type->attributes, &str_key, &index, &pos) == HASH_KEY_IS_STRING) { in schema_type_fixup()
/PHP-8.3/ext/reflection/
H A Dphp_reflection.c626 zend_string *str_key; in format_default_value() local
632 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(value), num_key, str_key, zv) { in format_default_value()
639 if (str_key) { in format_default_value()
641 smart_str_append_escaped(str, ZSTR_VAL(str_key), ZSTR_LEN(str_key)); in format_default_value()

Completed in 113 milliseconds