/PHP-5.4/ext/dba/ |
H A D | dba_db4.c | 174 new = estrndup(gval.data, gval.size); 260 nkey = estrndup(gkey.data, gkey.size);
|
/PHP-5.4/ext/intl/msgformat/ |
H A D | msgformat.c | 77 (mfo)->mf_data.orig_format = estrndup(pattern, pattern_len); in msgfmt_ctor()
|
/PHP-5.4/ext/spl/ |
H A D | spl_directory.c | 250 intern->_path = estrndup(path, --intern->_path_len); in spl_filesystem_dir_open() 252 intern->_path = estrndup(path, intern->_path_len); in spl_filesystem_dir_open() 351 intern->_path = estrndup(source->_path, source->_path_len); in spl_filesystem_object_clone() 394 intern->file_name = use_copy ? estrndup(path, len) : path; in spl_filesystem_info_set_filename() 417 intern->_path = estrndup(path, intern->_path_len); in spl_filesystem_info_set_filename() 504 intern->_path = estrndup(intern->_path, intern->_path_len); in spl_filesystem_object_create_type() 529 intern->_path = estrndup(intern->_path, intern->_path_len); in spl_filesystem_object_create_type() 1409 char *dpath = estrndup(path, path_len); in SPL_METHOD() 1800 *str_key = estrndup(object->file_name, object->file_name_len); in spl_filesystem_tree_it_current_key() 2171 char *buf = estrndup(intern->u.file.current_line, buf_len); in spl_filesystem_file_read_csv() [all …]
|
H A D | php_spl.c | 280 file_handle.opened_path = estrndup(class_file, class_file_len); in spl_autoload() 330 copy = pos1 = estrndup(SPL_DEFAULT_FILE_EXTENSIONS, sizeof(SPL_DEFAULT_FILE_EXTENSIONS)-1); in PHP_FUNCTION() 332 copy = pos1 = estrndup(file_exts, file_exts_len); in PHP_FUNCTION() 383 SPL_G(autoload_extensions) = estrndup(file_exts, file_exts_len); in PHP_FUNCTION()
|
/PHP-5.4/Zend/ |
H A D | zend_alloc.h | 78 #define estrndup(s, length) _estrndup((s), (length) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC) macro 130 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len… 140 #define safe_estrndup(ptr, len) ((ptr)?(estrndup((ptr), (len))):STR_EMPTY_ALLOC())
|
/PHP-5.4/ext/ereg/ |
H A D | ereg.c | 336 string = estrndup(findin, findin_len); in php_ereg() 566 pattern = estrndup(Z_STRVAL_PP(arg_pattern), Z_STRLEN_PP(arg_pattern)); in php_do_ereg_replace() 579 replace = estrndup(Z_STRVAL_PP(arg_replace), Z_STRLEN_PP(arg_replace)); in php_do_ereg_replace() 591 string = estrndup(arg_string, arg_string_len); in php_do_ereg_replace()
|
/PHP-5.4/ext/intl/grapheme/ |
H A D | grapheme_string.c | 217 needle_dup = (unsigned char *)estrndup((char *)needle, needle_len); in PHP_FUNCTION() 219 haystack_dup = (unsigned char *)estrndup((char *)haystack, haystack_len); in PHP_FUNCTION() 362 needle_dup = (unsigned char *)estrndup((char *)needle, needle_len); in PHP_FUNCTION() 364 haystack_dup = (unsigned char *)estrndup((char *)haystack, haystack_len); in PHP_FUNCTION()
|
/PHP-5.4/ext/standard/ |
H A D | string.c | 827 return estrndup(c, len); in php_trim() 907 newtext = estrndup(text, textlen); in PHP_FUNCTION() 1372 arg = estrndup(arg, arglen); in PHP_FUNCTION() 1406 str = estrndup(str, arglen); in PHP_FUNCTION() 1536 ret = estrndup(str, str_len); 1563 ret = estrndup(path, path_len); 4390 buf = estrndup(str, str_len); 4517 res = estrndup(arg, arglen); 4641 buf = estrndup(rbuf, len); 5513 buf = estrndup(s, (p-s)); [all …]
|
H A D | mail.c | 126 to_r = estrndup(to, to_len); in PHP_FUNCTION() 148 subject_r = estrndup(subject, subject_len); in PHP_FUNCTION()
|
H A D | link.c | 97 dirname = estrndup(link, link_len); in PHP_FUNCTION()
|
/PHP-5.4/ext/session/ |
H A D | mod_user.c | 139 *val = estrndup(Z_STRVAL_P(retval), Z_STRLEN_P(retval)); in PS_READ_FUNC()
|
/PHP-5.4/ext/phar/ |
H A D | phar_object.c | 393 *ru = estrndup(u, u_len+1); in phar_postprocess_ru_web() 597 fname = estrndup(fname, fname_len); 632 entry = estrndup("", 0); 657 entry = estrndup("", 0); 1199 arch = estrndup(fname, fname_len); 1389 fname = estrndup(phar->fname, phar->fname_len); 2173 basename = estrndup(oldname, oldname_len); 4223 char *tmp = estrndup(entry->filename, 50); 4254 tmp = estrndup(entry->filename, 50); 4421 char *tmp = estrndup(pathto, 50); [all …]
|
H A D | phar.c | 542 unixfname = estrndup(fname, fname_len); 611 const unsigned char *p, *p_buff = estrndup(*buffer, zip_metadata_len); 1439 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len); 1739 char *filename = estrndup(fname, (ext - fname) + ext_len); 2180 return estrndup("/", 1); 2188 return estrndup("/", 1); 2274 filename = estrndup(filename, filename_len); 2300 *arch = estrndup(filename, *arch_len); 2304 *entry = estrndup(ext_str+ext_len, *entry_len); 2311 *entry = estrndup("/", 1); [all …]
|
H A D | tar.c | 952 entry.filename = estrndup(".phar/alias.txt", sizeof(".phar/alias.txt")-1); in phar_tar_flush() 1007 tmp = estrndup(user_stub, len); in phar_tar_flush() 1041 entry.filename = estrndup(".phar/stub.php", sizeof(".phar/stub.php")-1); in phar_tar_flush() 1064 entry.filename = estrndup(".phar/stub.php", sizeof(".phar/stub.php")-1); in phar_tar_flush() 1131 newentry.filename = estrndup(".phar/.metadata.bin", sizeof(".phar/.metadata.bin")-1); in phar_tar_flush()
|
/PHP-5.4/ext/filter/ |
H A D | filter.c | 451 Z_STRVAL(raw_var) = estrndup(*val, val_len); in php_sapi_filter() 464 Z_STRVAL(new_var) = estrndup(*val, val_len); in php_sapi_filter() 468 Z_STRVAL(new_var) = estrndup(*val, val_len); in php_sapi_filter() 484 *val = estrndup(Z_STRVAL(new_var), Z_STRLEN(new_var)); in php_sapi_filter()
|
/PHP-5.4/sapi/isapi/ |
H A D | php5isapi.c | 288 status_buf = estrndup(sline + 9, MAX_STATUS_LENGTH); in sapi_isapi_send_headers() 290 status_buf = estrndup(sline + 9, sline_len - 9); in sapi_isapi_send_headers() 364 return estrndup(variable_buf, variable_len); in sapi_isapi_read_cookies() 575 recorded_values[p-server_variables] = estrndup(static_variable_buf, variable_len); in sapi_isapi_register_server_variables2()
|
/PHP-5.4/ext/intl/dateformat/ |
H A D | dateformat.c | 178 dfo->timezone_id = estrndup( timezone_str, timezone_str_len); in datefmt_ctor()
|
/PHP-5.4/main/ |
H A D | php_ini.c | 231 extension_name = estrndup(Z_STRVAL_P(arg2), Z_STRLEN_P(arg2)); in php_ini_parser_cb() 234 extension_name = estrndup(Z_STRVAL_P(arg2), Z_STRLEN_P(arg2)); in php_ini_parser_cb() 646 p = estrndup(ini_file, l); in php_init_config()
|
H A D | rfc1867.c | 505 res = estrndup(*line, pos - *line); in php_ap_getword() 718 char *content_type_lcase = estrndup(content_type_dup, content_type_len); 1112 array_index = estrndup(start_arr + 1, array_len - 2); 1124 abuf = estrndup(param, strlen(param)-array_len);
|
/PHP-5.4/ext/wddx/ |
H A D | wddx.c | 857 key = estrndup(p1, p2 - p1); in php_wddx_push_element() 1054 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data() 1067 Z_STRVAL_P(ent->data) = estrndup(s, len + 1); in php_wddx_process_data() 1079 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data() 1109 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
|
/PHP-5.4/ext/pcre/ |
H A D | php_pcre.c | 345 pattern = estrndup(p, pp-p); in pcre_get_compiled_regex_cache() 459 regex = tmp = estrndup(regex, regex_len); in pcre_get_compiled_regex_cache() 878 *result = estrndup(Z_STRVAL_P(retval_ptr), Z_STRLEN_P(retval_ptr)); in preg_do_repl_func() 886 *result = estrndup(&subject[offsets[0]], result_len); in preg_do_repl_func() 972 *result = estrndup(Z_STRVAL(retval), Z_STRLEN(retval)); in preg_do_eval() 1260 subject_value = estrndup(Z_STRVAL_PP(subject), Z_STRLEN_PP(subject)); in php_replace_in_subject()
|
/PHP-5.4/ext/intl/locale/ |
H A D | locale_methods.c | 298 mod_loc_name = estrndup ( loc_name , singletonPos-1); in get_icu_value_internal() 1007 result = estrndup(mod_loc_name + singletonPos+2 , (len -( singletonPos +2) ) ); in get_private_subtags() 1445 cur_arr[cur_arr_len*2] = estrndup(Z_STRVAL_PP(ele_value), Z_STRLEN_PP(ele_value)); in lookup_loc_range() 1565 result = estrndup(fallback_loc, fallback_loc_len); in PHP_FUNCTION()
|
/PHP-5.4/sapi/roxen/ |
H A D | roxen.c | 519 zvalue->value.str.val = estrndup(buf, zvalue->value.str.len); \ 553 zvalue->value.str.val = estrndup(val->u.string->str, zvalue->value.str.len); in php_roxen_hash_environment()
|
/PHP-5.4/ext/dba/libinifile/ |
H A D | inifile.c | 119 key.group = estrndup(group_name+1, name - (group_name + 1)); in inifile_key_split() 161 return estrndup(val, l); in etrim()
|
/PHP-5.4/ext/mysqlnd/ |
H A D | mysqlnd_priv.h | 47 #define pestrndup(s, length, persistent) ((persistent)?zend_strndup((s),(length)):estrndup((s),(len…
|