Home
last modified time | relevance | path

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

/PHP-8.1/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.c614 zend_string *str_key; in phar_wrapper_stat() local
617 …if (ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_LEN(s… in phar_wrapper_stat()
881 zend_string *str_key; in phar_wrapper_rename() local
887 str_key = b->key; in phar_wrapper_rename()
890 ZSTR_LEN(str_key) > from_len && in phar_wrapper_rename()
896 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
914 str_key = b->key; in phar_wrapper_rename()
917 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
921 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
932 str_key = b->key; in phar_wrapper_rename()
[all …]
H A Dphar.c2025 zend_string *str_key; in phar_detect_phar_fname_ext() local
2027 ZEND_HASH_FOREACH_STR_KEY_PTR(&PHAR_G(phar_fname_map), str_key, pphar) { in phar_detect_phar_fname_ext()
2028 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2032 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2033 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
2034 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len); in phar_detect_phar_fname_ext()
2040 ZEND_HASH_FOREACH_STR_KEY_PTR(&cached_phars, str_key, pphar) { in phar_detect_phar_fname_ext()
2041 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) { in phar_detect_phar_fname_ext()
2045 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN… in phar_detect_phar_fname_ext()
2046 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
[all …]
H A Dutil.c1291 zend_string *str_key; in phar_get_entry_info_dir() local
1293 ZEND_HASH_FOREACH_STR_KEY(&phar->mounted_dirs, str_key) { in phar_get_entry_info_dir()
1294 if (ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
1301 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_get_entry_info_dir()
1303 …phar internal error: mounted path \"%s\" could not be retrieved from manifest", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1310 …rnal error: mounted path \"%s\" is not properly initialized as a mounted path", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1315 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + ZSTR_LEN(str_key)); in phar_get_entry_info_dir()
H A Dphar_object.c1384 char *str_key; in phar_build() local
1428 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1430 save = str_key; in phar_build()
1520 str_key = fname + base_len; in phar_build()
1522 if (*str_key == '/' || *str_key == '\\') { in phar_build()
1523 str_key++; in phar_build()
1553 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1555 save = str_key; in phar_build()
1594 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_build()
1616 …w_exception_ex(spl_ce_BadMethodCallException, 0, "Entry %s cannot be created: %s", str_key, error); in phar_build()
[all …]
/PHP-8.1/Zend/
H A Dzend_hash.c2809 zend_string *str_key; in zend_symtable_to_proptable() local
2816 ZEND_HASH_FOREACH_STR_KEY(ht, str_key) { in zend_symtable_to_proptable()
2817 if (!str_key) { in zend_symtable_to_proptable()
2833 if (!str_key) { in zend_symtable_to_proptable()
2834 str_key = zend_long_to_str(num_key); in zend_symtable_to_proptable()
2835 zend_string_delref(str_key); in zend_symtable_to_proptable()
2848 zend_hash_update(new_ht, str_key, zv); in zend_symtable_to_proptable()
2862 zend_string *str_key; in zend_proptable_to_symtable() local
2865 ZEND_HASH_FOREACH_STR_KEY(ht, str_key) { in zend_proptable_to_symtable()
2871 if (str_key && ZEND_HANDLE_NUMERIC(str_key, num_key)) { in zend_proptable_to_symtable()
[all …]
H A Dzend_execute.c2955 str_key: in zend_array_key_exists_fast()
2982 goto str_key; in zend_array_key_exists_fast()
/PHP-8.1/ext/standard/
H A Dstring.c2793 zend_string *str_key; local
2811 if (UNEXPECTED(!str_key)) {
2814 len = ZSTR_LEN(str_key);
2839 if (UNEXPECTED(!str_key)) {
2857 key_used = str_key;
2865 if (UNEXPECTED(!str_key)) {
3273 if (UNEXPECTED(!str_key)) {
3277 if (ZSTR_LEN(str_key) < 1) {
3280 } else if (ZSTR_LEN(str_key) == 1) {
3282 ZSTR_VAL(str_key)[0],
[all …]
H A Darray.c4452 zend_string *str_key; local
4458 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, str_key, val) {
4476 if (str_key) {
4477 zend_hash_add_new(Z_ARRVAL_P(return_value), str_key, val);
5978 zend_string *str_key; local
5997 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL(arrays[0]), num_key, str_key, zv) {
6009 if (str_key) {
6010 _zend_hash_append(Z_ARRVAL_P(return_value), str_key, &result);
6158 zend_string *str_key; local
6200 if (str_key) {
[all …]
/PHP-8.1/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.1/ext/pdo/
H A Dpdo_dbh.c404 zend_string *str_key = NULL; in PHP_METHOD() local
406 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(options), long_key, str_key, attr_value) { in PHP_METHOD()
407 if (str_key) { in PHP_METHOD()
/PHP-8.1/ext/soap/
H A Dphp_encoding.c1936 zend_string *str_key; in to_xml_object() local
1939 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(prop, str_key, zprop) { in to_xml_object()
1943 if (str_key) { in to_xml_object()
1949 zend_unmangle_property_name(str_key, &class_name, &prop_name); in to_xml_object()
1951 prop_name = ZSTR_VAL(str_key); in to_xml_object()
H A Dphp_schema.c2268 zend_string *str_key; in schema_type_fixup() local
2271 …if (zend_hash_get_current_key_ex(type->attributes, &str_key, &index, &pos) == HASH_KEY_IS_STRING) { in schema_type_fixup()
/PHP-8.1/ext/reflection/
H A Dphp_reflection.c616 zend_string *str_key; in format_default_value() local
622 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(value), num_key, str_key, zv) { in format_default_value()
629 if (str_key) { in format_default_value()
631 smart_str_append_escaped(str, ZSTR_VAL(str_key), ZSTR_LEN(str_key)); in format_default_value()

Completed in 134 milliseconds