Home
last modified time | relevance | path

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

/PHP-7.2/ext/phar/
H A Ddirstream.c97 zend_string *str_key; in phar_dir_read() local
105 to_read = MIN(ZSTR_LEN(str_key), count); in phar_dir_read()
185 zend_string *str_key; in phar_make_dirstream() local
206 keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
229 memcpy(entry, ZSTR_VAL(str_key), found - ZSTR_VAL(str_key)); in phar_make_dirstream()
230 keylen = found - ZSTR_VAL(str_key); in phar_make_dirstream()
256 save = ZSTR_VAL(str_key); in phar_make_dirstream()
308 zend_string *str_key; in phar_wrapper_open_dir() local
388 … if (ZSTR_LEN(str_key) > (uint32_t)i_len && 0 == memcmp(ZSTR_VAL(str_key), internal_file, i_len)) { in phar_wrapper_open_dir()
551 zend_string *str_key; in phar_wrapper_rmdir() local
[all …]
H A Dstream.c616 zend_string *str_key; in phar_wrapper_stat() local
619 …if ((int)ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_… in phar_wrapper_stat()
883 zend_string *str_key; in phar_wrapper_rename() local
889 str_key = b->key; in phar_wrapper_rename()
908 zend_string_release(str_key); in phar_wrapper_rename()
916 str_key = b->key; in phar_wrapper_rename()
919 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
926 zend_string_release(str_key); in phar_wrapper_rename()
934 str_key = b->key; in phar_wrapper_rename()
937 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
[all …]
H A Dphar.c1965 zend_string *str_key; local
1969 … HASH_KEY_NON_EXISTENT != zend_hash_get_current_key(&(PHAR_G(phar_fname_map)), &str_key, &unused);
1972 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) {
1976 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN…
1977 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) {
1981 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len);
1988 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key(&cached_phars, &str_key, &unused);
1991 if (ZSTR_LEN(str_key) > (uint32_t) filename_len) {
1995 …if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && ((uint32_t)filename_len == ZSTR_LEN…
1996 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) {
[all …]
H A Dutil.c1295 zend_string *str_key; in phar_get_entry_info_dir() local
1297 ZEND_HASH_FOREACH_STR_KEY(&phar->mounted_dirs, str_key) { in phar_get_entry_info_dir()
1298 if ((int)ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
1305 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_get_entry_info_dir()
1307 …phar internal error: mounted path \"%s\" could not be retrieved from manifest", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1314 …rnal error: mounted path \"%s\" is not properly initialized as a mounted path", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1319 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + ZSTR_LEN(str_key)); in phar_get_entry_info_dir()
H A Dphar_object.c1439 char *str_key; in phar_build() local
1488 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1490 save = str_key; in phar_build()
1583 str_key = fname + base_len; in phar_build()
1585 if (*str_key == '/' || *str_key == '\\') { in phar_build()
1586 str_key++; in phar_build()
1622 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1624 save = str_key; in phar_build()
1663 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_build()
1685 …w_exception_ex(spl_ce_BadMethodCallException, 0, "Entry %s cannot be created: %s", str_key, error); in phar_build()
[all …]
/PHP-7.2/Zend/
H A Dzend_hash.c2491 zend_string *str_key; in zend_symtable_to_proptable() local
2498 ZEND_HASH_FOREACH_KEY_VAL(ht, num_key, str_key, zv) { in zend_symtable_to_proptable()
2499 if (!str_key) { in zend_symtable_to_proptable()
2517 if (!str_key) { in zend_symtable_to_proptable()
2518 str_key = zend_long_to_str(num_key); in zend_symtable_to_proptable()
2519 zend_string_delref(str_key); in zend_symtable_to_proptable()
2532 zend_hash_update(new_ht, str_key, zv); in zend_symtable_to_proptable()
2546 zend_string *str_key; in zend_proptable_to_symtable() local
2555 if (str_key && ZEND_HANDLE_NUMERIC(str_key, num_key)) { in zend_proptable_to_symtable()
2589 if (!str_key || ZEND_HANDLE_NUMERIC(str_key, num_key)) { in zend_proptable_to_symtable()
[all …]
/PHP-7.2/ext/standard/
H A Dstring.c2979 zend_string *str_key; local
2997 if (UNEXPECTED(!str_key)) {
3000 len = ZSTR_LEN(str_key);
3025 if (UNEXPECTED(!str_key)) {
3043 key_used = str_key;
3051 if (UNEXPECTED(!str_key)) {
3467 if (UNEXPECTED(!str_key)) {
3470 str_key = Z_STR(tmp);
3473 if (ZSTR_LEN(str_key) < 1) {
3477 ZSTR_VAL(str_key)[0],
[all …]
H A Darray.c4511 zend_string *str_key; local
4517 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_key, str_key, val) {
4534 if (str_key) {
4535 zend_hash_add_new(Z_ARRVAL_P(return_value), str_key, val);
6085 zend_string *str_key; local
6116 if (str_key) {
6117 zend_hash_add_new(Z_ARRVAL_P(return_value), str_key, &result);
6262 zend_string *str_key; local
6292 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, str_key, entry) {
6300 if (str_key) {
[all …]
/PHP-7.2/ext/mbstring/oniguruma/src/
H A Dregint.h782 extern int onig_st_lookup_strend P_((hash_table_type* table, const UChar* str_key, const UChar* end…
783 extern int onig_st_insert_strend P_((hash_table_type* table, const UChar* str_key, const UChar* end…
H A Dregparse.c409 onig_st_lookup_strend(hash_table_type* table, const UChar* str_key, in onig_st_lookup_strend() argument
414 key.s = (UChar* )str_key; in onig_st_lookup_strend()
421 onig_st_insert_strend(hash_table_type* table, const UChar* str_key, in onig_st_insert_strend() argument
428 key->s = (UChar* )str_key; in onig_st_insert_strend()
/PHP-7.2/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-7.2/ext/pdo/
H A Dpdo_dbh.c383 zend_string *str_key = NULL; in PHP_METHOD() local
385 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(options), long_key, str_key, attr_value) { in PHP_METHOD()
386 if (str_key) { in PHP_METHOD()
/PHP-7.2/ext/soap/
H A Dphp_encoding.c1963 zend_string *str_key; in to_xml_object() local
1966 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(prop, str_key, zprop) { in to_xml_object()
1970 if (str_key) { in to_xml_object()
1976 zend_unmangle_property_name(str_key, &class_name, &prop_name); in to_xml_object()
1978 prop_name = ZSTR_VAL(str_key); in to_xml_object()
H A Dphp_schema.c2267 zend_string *str_key; in schema_type_fixup() local
2270 ZEND_HASH_FOREACH_KEY_PTR(type->attributes, index, str_key, attr) { in schema_type_fixup()
2271 if (str_key) { in schema_type_fixup()

Completed in 283 milliseconds