/php-src/ext/phar/ |
H A D | dirstream.c | 93 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 D | stream.c | 620 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 D | phar.c | 2030 zend_string *str_key; in phar_detect_phar_fname_ext() local 2032 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&PHAR_G(phar_fname_map), str_key, pphar) { in phar_detect_phar_fname_ext() 2033 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext() 2037 … if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && (filename_len == ZSTR_LEN(str_key) in phar_detect_phar_fname_ext() 2038 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext() 2039 *ext_str = filename + (ZSTR_LEN(str_key) - pphar->ext_len); in phar_detect_phar_fname_ext() 2045 ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(&cached_phars, str_key, pphar) { in phar_detect_phar_fname_ext() 2046 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext() 2050 … if (!memcmp(filename, ZSTR_VAL(str_key), ZSTR_LEN(str_key)) && (filename_len == ZSTR_LEN(str_key) in phar_detect_phar_fname_ext() 2051 || filename[ZSTR_LEN(str_key)] == '/' || filename[ZSTR_LEN(str_key)] == '\0')) { in phar_detect_phar_fname_ext() [all …]
|
H A D | util.c | 1337 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 D | phar_object.c | 1405 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 D | zend_hash.c | 3337 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 D | zend_execute.c | 3219 str_key: in zend_array_key_exists_fast() 3246 goto str_key; in zend_array_key_exists_fast()
|
/php-src/ext/standard/ |
H A D | string.c | 2917 zend_string *str_key; local 2935 if (UNEXPECTED(!str_key)) { 2938 len = ZSTR_LEN(str_key); 2963 if (UNEXPECTED(!str_key)) { 2981 key_used = str_key; 2989 if (UNEXPECTED(!str_key)) { 3402 if (UNEXPECTED(!str_key)) { 3406 if (ZSTR_LEN(str_key) < 1) { 3409 } else if (ZSTR_LEN(str_key) == 1) { 3411 ZSTR_VAL(str_key)[0], [all …]
|
H A D | array.c | 4937 zend_string *str_key; local 4961 if (str_key) { 4962 zend_hash_add_new(Z_ARRVAL_P(return_value), str_key, val); 6587 zend_string *str_key; local 6610 ZEND_HASH_FOREACH_KEY_VAL(array, num_key, str_key, operand) { 6612 if (!str_key) { 6615 ZVAL_STR_COPY(&args[1], str_key); 6760 zend_string *str_key; local 6791 if (str_key) { 6967 zend_string *str_key; local [all …]
|
/php-src/ext/standard/tests/file/ |
H A D | file.inc | 548 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 D | pdo_dbh.c | 500 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 D | php_encoding.c | 1995 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 D | php_schema.c | 2294 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 D | php_reflection.c | 659 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()
|