Home
last modified time | relevance | path

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

/php-src/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()
167 zend_string *str_key; in phar_make_dirstream() local
169 size_t keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
186 keylen = has_slash - ZSTR_VAL(str_key); in phar_make_dirstream()
189 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
198 if (ZSTR_VAL(str_key)[dirlen] != '/') { in phar_make_dirstream() local
204 const char *save = ZSTR_VAL(str_key); in phar_make_dirstream()
327 zend_string *str_key; in phar_wrapper_open_dir() local
541 zend_string *str_key; in phar_wrapper_rmdir() local
[all …]
H A Dstream.c620 zend_string *str_key; in phar_wrapper_stat() local
623 …if (ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_LEN(s… in phar_wrapper_stat()
884 zend_string *str_key; in phar_wrapper_rename() local
890 str_key = b->key; in phar_wrapper_rename()
893 ZSTR_LEN(str_key) > from_len && in phar_wrapper_rename()
899 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
917 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()
923 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
934 str_key = b->key; in phar_wrapper_rename()
[all …]
H A Dphar.c2031 zend_string *str_key; in phar_detect_phar_fname_ext() local
2033 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&PHAR_G(phar_fname_map), str_key, pphar) { in phar_detect_phar_fname_ext()
2034 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext()
2038 … if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && (filename_len == ZSTR_LEN(str_key) in phar_detect_phar_fname_ext()
2039 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
2040 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len); in phar_detect_phar_fname_ext()
2046 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&cached_phars, str_key, pphar) { in phar_detect_phar_fname_ext()
2047 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext()
2051 … if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && (filename_len == ZSTR_LEN(str_key) in phar_detect_phar_fname_ext()
2052 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext()
[all …]
H A Dutil.c1337 zend_string *str_key; in phar_get_entry_info_dir() local
1339 ZEND_HASH_MAP_FOREACH_STR_KEY(&phar->mounted_dirs, str_key) { in phar_get_entry_info_dir()
1340 if (ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
1347 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_get_entry_info_dir()
1349 …phar internal error: mounted path \"%s\" could not be retrieved from manifest", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1356 …rnal error: mounted path \"%s\" is not properly initialized as a mounted path", ZSTR_VAL(str_key)); in phar_get_entry_info_dir()
1361 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, path + ZSTR_LEN(str_key)); in phar_get_entry_info_dir()
H A Dphar_object.c1405 char *str_key; in phar_build() local
1449 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1451 save = str_key; in phar_build()
1543 str_key = fname + base_len; in phar_build()
1545 if (*str_key == '/' || *str_key == '\\') { in phar_build()
1546 str_key++; in phar_build()
1576 str_key = estrndup(Z_STRVAL(key), str_key_len); in phar_build()
1578 save = str_key; in phar_build()
1617 if (str_key_len >= sizeof(".phar")-1 && !memcmp(str_key, ".phar", sizeof(".phar")-1)) { in phar_build()
1639 …w_exception_ex(spl_ce_BadMethodCallException, 0, "Entry %s cannot be created: %s", str_key, error); in phar_build()
[all …]
/php-src/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.c3219 str_key: in zend_array_key_exists_fast()
3246 goto str_key; in zend_array_key_exists_fast()
/php-src/ext/standard/
H A Dstring.c2904 zend_string *str_key; local
2922 if (UNEXPECTED(!str_key)) {
2925 len = ZSTR_LEN(str_key);
2950 if (UNEXPECTED(!str_key)) {
2968 key_used = str_key;
2976 if (UNEXPECTED(!str_key)) {
3389 if (UNEXPECTED(!str_key)) {
3393 if (ZSTR_LEN(str_key) < 1) {
3396 } else if (ZSTR_LEN(str_key) == 1) {
3398 ZSTR_VAL(str_key)[0],
[all …]
H A Darray.c4941 zend_string *str_key; local
4965 if (str_key) {
4966 zend_hash_add_new(Z_ARRVAL_P(return_value), str_key, val);
6591 zend_string *str_key; local
6614 ZEND_HASH_FOREACH_KEY_VAL(array, num_key, str_key, operand) {
6616 if (!str_key) {
6619 ZVAL_STR_COPY(&args[1], str_key);
6764 zend_string *str_key; local
6795 if (str_key) {
6971 zend_string *str_key; local
[all …]
/php-src/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-src/ext/pdo/
H A Dpdo_dbh.c500 zend_string *str_key = NULL; in php_pdo_internal_construct_driver() local
502 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(options), long_key, str_key, attr_value) { in php_pdo_internal_construct_driver()
503 if (str_key) { in php_pdo_internal_construct_driver()
/php-src/ext/soap/
H A Dphp_encoding.c1995 zend_string *str_key; in to_xml_object() local
1998 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(prop, str_key, zprop) { in to_xml_object()
2002 if (str_key) { in to_xml_object()
2008 zend_unmangle_property_name(str_key, &class_name, &prop_name); in to_xml_object()
2010 prop_name = ZSTR_VAL(str_key); in to_xml_object()
H A Dphp_schema.c2294 zend_string *str_key; in schema_type_fixup() local
2297 …if (zend_hash_get_current_key_ex(type->attributes, &str_key, &index, &pos) == HASH_KEY_IS_STRING) { in schema_type_fixup()
/php-src/ext/reflection/
H A Dphp_reflection.c659 zend_string *str_key; in format_default_value() local
665 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(value), num_key, str_key, zv) { in format_default_value()
672 if (str_key) { in format_default_value()
674 smart_str_append_escaped(str, ZSTR_VAL(str_key), ZSTR_LEN(str_key)); in format_default_value()

Completed in 116 milliseconds