fname 2067 Zend/zend_API.c while (ptr->fname) { fname 2069 Zend/zend_API.c internal_function->function_name = (char*)ptr->fname; fname 2075 Zend/zend_API.c zend_error(error_type, "Invalid access level for %s%s%s() - access must be exactly one of public, protected or private", scope ? scope->name : "", scope ? "::" : "", ptr->fname); fname 2118 Zend/zend_API.c zend_error(error_type, "Static function %s%s%s() cannot be abstract", scope ? scope->name : "", scope ? "::" : "", ptr->fname); fname 2123 Zend/zend_API.c zend_error(error_type, "Interface %s cannot contain non abstract method %s()", scope->name, ptr->fname); fname 2130 Zend/zend_API.c zend_error(error_type, "Method %s%s%s() cannot be a NULL function", scope ? scope->name : "", scope ? "::" : "", ptr->fname); fname 2135 Zend/zend_API.c fname_len = strlen(ptr->fname); fname 2136 Zend/zend_API.c lowercase_name = zend_new_interned_string(zend_str_tolower_dup(ptr->fname, fname_len), fname_len + 1, 1 TSRMLS_CC); fname 2168 Zend/zend_API.c zend_error(error_type, "Destructor %s::%s() cannot take arguments", scope->name, ptr->fname); fname 2203 Zend/zend_API.c while (ptr->fname) { fname 2204 Zend/zend_API.c fname_len = strlen(ptr->fname); fname 2205 Zend/zend_API.c lowercase_name = zend_str_tolower_dup(ptr->fname, fname_len); fname 2207 Zend/zend_API.c zend_error(error_type, "Function registration failed - duplicate name - %s%s%s", scope ? scope->name : "", scope ? "::" : "", ptr->fname); fname 2313 Zend/zend_API.c while (ptr->fname) { fname 2318 Zend/zend_API.c zend_printf("Unregistering %s()\n", ptr->fname); fname 2320 Zend/zend_API.c zend_hash_del(target_function_table, ptr->fname, strlen(ptr->fname)+1); fname 36 Zend/zend_API.h const char *fname; fname 677 Zend/zend_exceptions.c zval fname; fname 684 Zend/zend_exceptions.c ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1); fname 699 Zend/zend_exceptions.c fci.function_name = &fname; fname 737 Zend/zend_exceptions.c zval_dtor(&fname); fname 591 Zend/zend_execute.c const char *fname = zf->common.function_name; fname 604 Zend/zend_execute.c zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given, called in %s on line %d and defined", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind, ptr->op_array->filename, ptr->opline->lineno); fname 606 Zend/zend_execute.c zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind); fname 2829 Zend/zend_vm_def.h zval *fname = GET_OP1_ZVAL_PTR(BP_VAR_R); fname 2834 Zend/zend_vm_def.h } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(fname), Z_STRLEN_P(fname)+1, Z_HASH_P(fname), (void **) &EX(function_state).function)==FAILURE)) { fname 2836 Zend/zend_vm_def.h zend_error_noreturn(E_ERROR, "Call to undefined function %s()", fname->value.str.val); fname 2583 Zend/zend_vm_execute.h zval *fname = opline->op1.zv; fname 2588 Zend/zend_vm_execute.h } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(fname), Z_STRLEN_P(fname)+1, Z_HASH_P(fname), (void **) &EX(function_state).function)==FAILURE)) { fname 2590 Zend/zend_vm_execute.h zend_error_noreturn(E_ERROR, "Call to undefined function %s()", fname->value.str.val); fname 290 ext/com_dotnet/com_persist.c #define CPH_ME(fname, arginfo) PHP_ME(com_persist, fname, arginfo, ZEND_ACC_PUBLIC) fname 291 ext/com_dotnet/com_persist.c #define CPH_SME(fname, arginfo) PHP_ME(com_persist, fname, arginfo, ZEND_ACC_ALLOW_STATIC|ZEND_ACC_PUBLIC) fname 292 ext/com_dotnet/com_persist.c #define CPH_METHOD(fname) static PHP_METHOD(com_persist, fname) fname 34 ext/curl/curl_file.c char *fname = NULL, *mime = NULL, *postname = NULL; fname 38 ext/curl/curl_file.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) { fname 42 ext/curl/curl_file.c if (fname) { fname 43 ext/curl/curl_file.c zend_update_property_string(curl_CURLFile_class, cf, "name", sizeof("name")-1, fname TSRMLS_CC); fname 50 ext/fileinfo/libmagic/apptype.c fname[_MAX_FNAME], ext[_MAX_EXT]; fname 61 ext/fileinfo/libmagic/apptype.c _splitpath(filename, drive, dir, fname, ext); fname 64 ext/fileinfo/libmagic/apptype.c fname, fname 88 ext/fileinfo/libmagic/apptype.c printf("%s: not an executable file\n", fname); fname 90 ext/fileinfo/libmagic/apptype.c printf("%s: not found\n", fname); fname 92 ext/fileinfo/libmagic/apptype.c printf("%s: access denied\n", fname); fname 94 ext/fileinfo/libmagic/apptype.c printf("%s: error code = %lu\n", fname, rc); fname 205 ext/iconv/iconv.c static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fname, size_t fname_nbytes, const char *fval, size_t fval_nbytes, unsigned int max_line_len, const char *lfchars, php_iconv_enc_scheme_t enc_scheme, const char *out_charset, const char *enc); fname 1152 ext/iconv/iconv.c static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fname, size_t fname_nbytes, const char *fval, size_t fval_nbytes, unsigned int max_line_len, const char *lfchars, php_iconv_enc_scheme_t enc_scheme, const char *out_charset, const char *enc) fname 1227 ext/iconv/iconv.c _php_iconv_appendl(pretval, fname, fname_nbytes, cd_pl); fname 41 ext/intl/converter/converter.c #define THROW_UFAILURE(obj, fname, error) php_converter_throw_failure(obj, error TSRMLS_CC, \ fname 42 ext/intl/converter/converter.c fname "() returned error %ld: %s", (long)error, u_errorName(error)) fname 574 ext/json/json.c zval *retval = NULL, fname; fname 589 ext/json/json.c ZVAL_STRING(&fname, "jsonSerialize", 0); fname 591 ext/json/json.c if (FAILURE == call_user_function_ex(EG(function_table), &val, &fname, &retval, 0, NULL, 1, NULL TSRMLS_CC) || !retval) { fname 1219 ext/mssql/php_mssql.c char *fname = (char *)dbcolname(mssql_ptr->link,i+1); fname 1221 ext/mssql/php_mssql.c if (*fname) { fname 1222 ext/mssql/php_mssql.c result->fields[i].name = estrdup(fname); fname 489 ext/mysqlnd/mysqlnd_auth.c const char * fname = (net_options->sha256_server_public_key && net_options->sha256_server_public_key[0] != '\0')? fname 497 ext/mysqlnd/mysqlnd_auth.c if (!fname || fname[0] == '\0') { fname 547 ext/mysqlnd/mysqlnd_auth.c DBG_INF_FMT("Key in a file. [%s]", fname); fname 548 ext/mysqlnd/mysqlnd_auth.c stream = php_stream_open_wrapper((char *) fname, "rb", REPORT_ERRORS, NULL); fname 2919 ext/odbc/php_odbc.c char *fname; fname 2924 ext/odbc/php_odbc.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &pv_res, &fname, &fname_len) == FAILURE) { fname 2937 ext/odbc/php_odbc.c if (strcasecmp(result->values[i].name, fname) == 0) { fname 743 ext/opcache/Optimizer/block_pass.c char *fname = FUNCTION_CACHE->funcs[Z_LVAL(ZEND_OP1_LITERAL(fcall))].function_name; fname 745 ext/opcache/Optimizer/block_pass.c if(flen == sizeof("defined")-1 && zend_binary_strcasecmp(fname, flen, "defined", sizeof("defined")-1) == 0) { fname 754 ext/opcache/Optimizer/block_pass.c } else if((flen == sizeof("function_exists")-1 && zend_binary_strcasecmp(fname, flen, "function_exists", sizeof("function_exists")-1) == 0) || fname 755 ext/opcache/Optimizer/block_pass.c (flen == sizeof("is_callable")-1 && zend_binary_strcasecmp(fname, flen, "is_callable", sizeof("is_callable")-1) == 0) fname 765 ext/opcache/Optimizer/block_pass.c } else if(flen == sizeof("constant")-1 && zend_binary_strcasecmp(fname, flen, "constant", sizeof("constant")-1) == 0) { fname 775 ext/opcache/Optimizer/block_pass.c } else if(flen == sizeof("extension_loaded")-1 && zend_binary_strcasecmp(fname, flen, "extension_loaded", sizeof("extension_loaded")-1) == 0) { fname 1674 ext/opcache/ZendAccelerator.c char *fname = emalloc(sizeof("phar://") + persistent_script->full_path_len); fname 1676 ext/opcache/ZendAccelerator.c memcpy(fname, "phar://", sizeof("phar://") - 1); fname 1677 ext/opcache/ZendAccelerator.c memcpy(fname + sizeof("phar://") - 1, persistent_script->full_path, persistent_script->full_path_len + 1); fname 1678 ext/opcache/ZendAccelerator.c php_stream_stat_path(fname, &ssb); fname 1679 ext/opcache/ZendAccelerator.c efree(fname); fname 1307 ext/pdo/pdo_dbh.c while (funcs->fname) { fname 1310 ext/pdo/pdo_dbh.c ifunc->function_name = (char*)funcs->fname; fname 1339 ext/pdo/pdo_dbh.c namelen = strlen(funcs->fname); fname 1341 ext/pdo/pdo_dbh.c zend_str_tolower_copy(lc_name, funcs->fname, namelen); fname 195 ext/pdo_dblib/dblib_stmt.c char *fname; fname 202 ext/pdo_dblib/dblib_stmt.c fname = (char*)dbcolname(H->link, colno+1); fname 204 ext/pdo_dblib/dblib_stmt.c if (fname && *fname) { fname 205 ext/pdo_dblib/dblib_stmt.c col->name = estrdup(fname); fname 520 ext/phar/dirstream.c php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: cannot create directory \"%s\" in phar \"%s\", adding to manifest failed", entry.filename, phar->fname); fname 529 ext/phar/dirstream.c php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: cannot create directory \"%s\" in phar \"%s\", %s", entry.filename, phar->fname, error); fname 659 ext/phar/dirstream.c php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: cannot remove directory \"%s\" in phar \"%s\", %s", entry->filename, phar->fname, error); fname 46 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 48 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 53 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 56 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 57 ext/phar/func_interceptors.c if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 121 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 125 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 127 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 130 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 131 ext/phar/func_interceptors.c if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 251 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 256 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 258 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 261 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 262 ext/phar/func_interceptors.c if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 347 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 352 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 354 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 357 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 358 ext/phar/func_interceptors.c if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 618 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 624 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 629 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 632 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 633 ext/phar/func_interceptors.c if (PHAR_G(last_phar) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(last_phar_name), PHAR_G(last_phar_name_len))) { fname 642 ext/phar/func_interceptors.c if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 808 ext/phar/func_interceptors.c #define PharFileFunction(fname, funcnum, orig) \ fname 809 ext/phar/func_interceptors.c void fname(INTERNAL_FUNCTION_PARAMETERS) { \ fname 912 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 914 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 919 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 922 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 923 ext/phar/func_interceptors.c if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 979 ext/phar/func_interceptors.c char *arch, *entry, *fname; fname 981 ext/phar/func_interceptors.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 986 ext/phar/func_interceptors.c if (strncasecmp(fname, "phar://", 7)) { fname 989 ext/phar/func_interceptors.c fname_len = strlen(fname); fname 990 ext/phar/func_interceptors.c if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 209 ext/phar/phar.c if (phar->alias && phar->alias != phar->fname) { fname 214 ext/phar/phar.c if (phar->fname) { fname 215 ext/phar/phar.c pefree(phar->fname, phar->is_persistent); fname 216 ext/phar/phar.c phar->fname = NULL; fname 279 ext/phar/phar.c || zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { fname 300 ext/phar/phar.c if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { fname 486 ext/phar/phar.c spprintf(error, 0, msg, fname);\ fname 529 ext/phar/phar.c int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 540 ext/phar/phar.c unixfname = estrndup(fname, fname_len); fname 545 ext/phar/phar.c && !strncmp(unixfname, phar->fname, fname_len)) || !alias) fname 550 ext/phar/phar.c if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error TSRMLS_CC) fname 552 ext/phar/phar.c && !strncmp(fname, phar->fname, fname_len)) || !alias) fname 567 ext/phar/phar.c spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or tar archive", fname); fname 650 ext/phar/phar.c static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */ fname 744 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" is API version %1.u.%1.u.%1.u, and cannot be processed", fname, manifest_ver >> 12, (manifest_ver >> 8) & 0xF, (manifest_ver >> 4) & 0x0F); fname 770 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a broken signature", fname); fname 789 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" openssl signature length could not be read", fname); fname 807 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" openssl signature could not be read", fname); fname 812 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, end_of_phar, PHAR_SIG_OPENSSL, sig, signature_len, fname, &signature, &sig_len, error TSRMLS_CC)) { fname 818 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" openssl signature could not be verified: %s", fname, *error); fname 837 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a broken signature", fname); fname 842 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA512, (char *)digest, 64, fname, &signature, &sig_len, error TSRMLS_CC)) { fname 847 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" SHA512 signature could not be verified: %s", fname, *error); fname 864 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a broken signature", fname); fname 869 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA256, (char *)digest, 32, fname, &signature, &sig_len, error TSRMLS_CC)) { fname 874 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" SHA256 signature could not be verified: %s", fname, *error); fname 888 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a unsupported signature", fname); fname 902 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a broken signature", fname); fname 907 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_SHA1, (char *)digest, 20, fname, &signature, &sig_len, error TSRMLS_CC)) { fname 912 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" SHA1 signature could not be verified: %s", fname, *error); fname 929 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a broken signature", fname); fname 934 ext/phar/phar.c if (FAILURE == phar_verify_signature(fp, read_len, PHAR_SIG_MD5, (char *)digest, 16, fname, &signature, &sig_len, error TSRMLS_CC)) { fname 939 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" MD5 signature could not be verified: %s", fname, *error); fname 951 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" has a broken or unsupported signature", fname); fname 960 ext/phar/phar.c spprintf(error, 0, "phar \"%s\" does not have a signature", fname); fname 992 ext/phar/phar.c spprintf(error, 0, "cannot load phar \"%s\" with implicit alias \"%s\" under different alias \"%s\"", fname, buffer, alias); fname 1046 ext/phar/phar.c mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); fname 1048 ext/phar/phar.c phar_unixify_path_separators(mydata->fname, fname_len); fname 1180 ext/phar/phar.c endbuffer = strrchr(mydata->fname, '/'); fname 1183 ext/phar/phar.c mydata->ext = memchr(endbuffer, '.', (mydata->fname + fname_len) - endbuffer); fname 1185 ext/phar/phar.c mydata->ext = memchr(endbuffer + 1, '.', (mydata->fname + fname_len) - endbuffer - 1); fname 1188 ext/phar/phar.c mydata->ext_len = (mydata->fname + mydata->fname_len) - mydata->ext; fname 1194 ext/phar/phar.c pestrndup(mydata->fname, fname_len, mydata->is_persistent); fname 1226 ext/phar/phar.c zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(phar_archive_data*), NULL); fname 1240 ext/phar/phar.c int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 1254 ext/phar/phar.c if (phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 0, 1 TSRMLS_CC) == SUCCESS) { fname 1259 ext/phar/phar.c if (FAILURE == phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 1, 1 TSRMLS_CC)) { fname 1262 ext/phar/phar.c spprintf(error, 0, "Cannot create a phar archive from a URL like \"%s\". Phar objects can only be created from local files", fname); fname 1264 ext/phar/phar.c spprintf(error, 0, "Cannot create phar '%s', file extension (or combination) not recognised or the directory does not exist", fname); fname 1270 ext/phar/phar.c if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error TSRMLS_CC) == SUCCESS) { fname 1277 ext/phar/phar.c spprintf(error, 0, "Cannot open '%s' as a PharData object. Use Phar::__construct() for executable archives", fname); fname 1285 ext/phar/phar.c spprintf(error, 0, "'%s' is not a phar archive. Use PharData::__construct() for a standard zip or tar archive", fname); fname 1305 ext/phar/phar.c return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC); fname 1310 ext/phar/phar.c return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC); fname 1313 ext/phar/phar.c return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC); fname 1317 ext/phar/phar.c int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 1327 ext/phar/phar.c if (PG(safe_mode) && (!php_checkuid(fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) { fname 1331 ext/phar/phar.c if (php_check_open_basedir(fname TSRMLS_CC)) { fname 1336 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, &actual); fname 1339 ext/phar/phar.c fname = actual; fname 1344 ext/phar/phar.c if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRMLS_CC) == SUCCESS) { fname 1368 ext/phar/phar.c spprintf(error, 0, "creating archive \"%s\" disabled by the php.ini setting phar.readonly", fname); fname 1376 ext/phar/phar.c mydata->fname = expand_filepath(fname, NULL TSRMLS_CC); fname 1377 ext/phar/phar.c fname_len = strlen(mydata->fname); fname 1379 ext/phar/phar.c phar_unixify_path_separators(mydata->fname, fname_len); fname 1381 ext/phar/phar.c p = strrchr(mydata->fname, '/'); fname 1384 ext/phar/phar.c mydata->ext = memchr(p, '.', (mydata->fname + fname_len) - p); fname 1386 ext/phar/phar.c mydata->ext = memchr(p + 1, '.', (mydata->fname + fname_len) - p - 1); fname 1389 ext/phar/phar.c mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; fname 1411 ext/phar/phar.c zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(phar_archive_data*), NULL); fname 1425 ext/phar/phar.c spprintf(error, 4096, "phar error: phar \"%s\" cannot set alias \"%s\", already in use by another phar archive", mydata->fname, alias); fname 1428 ext/phar/phar.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); fname 1438 ext/phar/phar.c mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len); fname 1446 ext/phar/phar.c spprintf(error, 0, "archive \"%s\" cannot be associated with alias \"%s\", already in use", fname, alias); fname 1450 ext/phar/phar.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); fname 1471 ext/phar/phar.c int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 1481 ext/phar/phar.c if (!strstr(fname, ".phar")) { fname 1485 ext/phar/phar.c if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRMLS_CC) == SUCCESS) { fname 1491 ext/phar/phar.c if (PG(safe_mode) && (!php_checkuid(fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) { fname 1495 ext/phar/phar.c if (php_check_open_basedir(fname TSRMLS_CC)) { fname 1499 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &actual); fname 1504 ext/phar/phar.c spprintf(error, 0, "unable to open phar for reading \"%s\"", fname); fname 1514 ext/phar/phar.c fname = actual; fname 1518 ext/phar/phar.c ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRMLS_CC); fname 1562 ext/phar/phar.c static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC) /* {{{ */ fname 1701 ext/phar/phar.c return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC); fname 1705 ext/phar/phar.c if (phar_is_tar(pos, fname)) { fname 1707 ext/phar/phar.c return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, error TSRMLS_CC); fname 1714 ext/phar/phar.c return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression, error TSRMLS_CC); fname 1734 ext/phar/phar.c static int phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create TSRMLS_DC) /* {{{ */ fname 1738 ext/phar/phar.c char *filename = estrndup(fname, (ext - fname) + ext_len); fname 1796 ext/phar/phar.c slash += ((ext - fname) + ext_len); fname 1839 ext/phar/phar.c static int phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create TSRMLS_DC) /* {{{ */ fname 1858 ext/phar/phar.c return phar_analyze_path(fname, ext_str, ext_len, for_create TSRMLS_CC); fname 1869 ext/phar/phar.c return phar_analyze_path(fname, ext_str, ext_len, for_create TSRMLS_CC); fname 1873 ext/phar/phar.c return phar_analyze_path(fname, ext_str, ext_len, for_create TSRMLS_CC); fname 2310 ext/phar/phar.c char *fname; fname 2321 ext/phar/phar.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 2322 ext/phar/phar.c fname_len = strlen(fname); fname 2324 ext/phar/phar.c if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0 TSRMLS_CC) == SUCCESS) { fname 2328 ext/phar/phar.c if (!strcmp(fname, "[no active file]")) { fname 2348 ext/phar/phar.c if (PG(safe_mode) && (!php_checkuid(fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) { fname 2353 ext/phar/phar.c if (php_check_open_basedir(fname TSRMLS_CC)) { fname 2357 ext/phar/phar.c fp = php_stream_open_wrapper(fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, &actual); fname 2361 ext/phar/phar.c spprintf(error, 0, "unable to open phar for reading \"%s\"", fname); fname 2370 ext/phar/phar.c fname = actual; fname 2374 ext/phar/phar.c ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRMLS_CC); fname 2404 ext/phar/phar.c spprintf(error, 0, "phar error: unable to open zip-based phar archive \"%s\" to verify local file header for file \"%s\"", idata->phar->fname, entry->filename); fname 2411 ext/phar/phar.c spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local file header for file \"%s\")", idata->phar->fname, entry->filename); fname 2424 ext/phar/phar.c spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (cannot read local data descriptor for file \"%s\")", idata->phar->fname, entry->filename); fname 2436 ext/phar/phar.c spprintf(error, 0, "phar error: internal corruption of zip-based phar \"%s\" (local header of file \"%s\" does not match central directory)", idata->phar->fname, entry->filename); fname 2465 ext/phar/phar.c spprintf(error, 0, "phar error: internal corruption of phar \"%s\" (crc32 mismatch on file \"%s\")", idata->phar->fname, entry->filename); fname 2571 ext/phar/phar.c spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname); fname 2603 ext/phar/phar.c oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); fname 2626 ext/phar/phar.c spprintf(error, 0, "unable to access resource to copy stub to new phar \"%s\"", phar->fname); fname 2643 ext/phar/phar.c spprintf(error, 0, "unable to read resource to copy stub to new phar \"%s\"", phar->fname); fname 2659 ext/phar/phar.c spprintf(error, 0, "illegal stub for phar \"%s\"", phar->fname); fname 2676 ext/phar/phar.c spprintf(error, 0, "unable to create stub from string in new phar \"%s\"", phar->fname); fname 2705 ext/phar/phar.c spprintf(error, 0, "unable to create stub in new phar \"%s\"", phar->fname); fname 2707 ext/phar/phar.c spprintf(error, 0, "unable to copy stub of old phar to new phar \"%s\"", phar->fname); fname 2819 ext/phar/phar.c spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry->filename, phar->fname); fname 2843 ext/phar/phar.c spprintf(error, 0, "unable to gzip compress file \"%s\" to new phar \"%s\"", entry->filename, phar->fname); fname 2847 ext/phar/phar.c spprintf(error, 0, "unable to bzip2 compress file \"%s\" to new phar \"%s\"", entry->filename, phar->fname); fname 2874 ext/phar/phar.c spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry->filename, phar->fname); fname 2885 ext/phar/phar.c spprintf(error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar \"%s\"", entry->filename, phar->fname); fname 2948 ext/phar/phar.c spprintf(error, 0, "unable to write manifest header of new phar \"%s\"", phar->fname); fname 2969 ext/phar/phar.c spprintf(error, 0, "unable to write manifest meta-data of new phar \"%s\"", phar->fname); fname 3009 ext/phar/phar.c spprintf(error, 0, "unable to write filename of directory \"%s\" to manifest of new phar \"%s\"", entry->filename, phar->fname); fname 3011 ext/phar/phar.c spprintf(error, 0, "unable to write filename of file \"%s\" to manifest of new phar \"%s\"", entry->filename, phar->fname); fname 3043 ext/phar/phar.c spprintf(error, 0, "unable to write temporary manifest of file \"%s\" to manifest of new phar \"%s\"", entry->filename, phar->fname); fname 3091 ext/phar/phar.c spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry->filename, phar->fname); fname 3103 ext/phar/phar.c spprintf(error, 0, "unable to seek to start of file \"%s\" while creating new phar \"%s\"", entry->filename, phar->fname); fname 3119 ext/phar/phar.c spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\"", entry->filename, phar->fname); fname 3165 ext/phar/phar.c spprintf(error, 0, "unable to write contents of file \"%s\" to new phar \"%s\" with requested hash type", entry->filename, phar->fname); fname 3231 ext/phar/phar.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fname 3235 ext/phar/phar.c spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname); fname 3251 ext/phar/phar.c spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); fname 3281 ext/phar/phar.c spprintf(error, 0, "unable to seek to __HALT_COMPILER(); in new phar \"%s\"", phar->fname); fname 291 ext/phar/phar_internal.h char *fname; fname 544 ext/phar/phar_internal.h memcpy(tmp, entry->phar->fname, len1); fname 560 ext/phar/phar_internal.h int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC); fname 561 ext/phar/phar_internal.h int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC); fname 562 ext/phar/phar_internal.h int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC); fname 565 ext/phar/phar_internal.h int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC); fname 566 ext/phar/phar_internal.h int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC); fname 567 ext/phar/phar_internal.h int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC); fname 594 ext/phar/phar_internal.h int phar_is_tar(char *buf, char *fname); fname 595 ext/phar/phar_internal.h int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC); fname 596 ext/phar/phar_internal.h int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC); fname 600 ext/phar/phar_internal.h int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error TSRMLS_DC); fname 601 ext/phar/phar_internal.h int phar_open_or_create_zip(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC); fname 605 ext/phar/phar_internal.h static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error TSRMLS_DC); fname 617 ext/phar/phar_internal.h phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC); fname 618 ext/phar/phar_internal.h int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC); fname 59 ext/phar/phar_object.c static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int request_uri_len TSRMLS_DC) /* {{{ */ fname 93 ext/phar/phar_object.c Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry); fname 154 ext/phar/phar_object.c Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry); fname 348 ext/phar/phar_object.c static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, int entry_len TSRMLS_DC) /* {{{ */ fname 357 ext/phar/phar_object.c phar_file_action(phar, info, "text/html", PHAR_MIME_PHP, f404, f404_len, fname, NULL, NULL, 0 TSRMLS_CC); fname 376 ext/phar/phar_object.c static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) /* {{{ */ fname 383 ext/phar/phar_object.c zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, (void **) &pphar); fname 386 ext/phar/phar_object.c zend_hash_find(&cached_phars, fname, fname_len, (void **) &pphar); fname 443 ext/phar/phar_object.c char *fname, *arch, *entry; fname 451 ext/phar/phar_object.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 452 ext/phar/phar_object.c fname_len = strlen(fname); fname 454 ext/phar/phar_object.c if (fname_len > 7 && !memcmp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 457 ext/phar/phar_object.c RETVAL_STRINGL(fname, arch_len + 7, 1); fname 477 ext/phar/phar_object.c char *fname, *arch = NULL, *entry = NULL, *path, *actual; fname 485 ext/phar/phar_object.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 486 ext/phar/phar_object.c fname_len = strlen(fname); fname 489 ext/phar/phar_object.c phar_unixify_path_separators(fname, fname_len); fname 492 ext/phar/phar_object.c if (fname_len > 7 && !memcmp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC)) { fname 539 ext/phar/phar_object.c } else if (PHAR_GLOBALS->phar_fname_map.arBuckets && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, (void **)&pphar)) { fname 541 ext/phar/phar_object.c } else if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_find(&cached_phars, fname, fname_len, (void **)&pphar)) { fname 569 ext/phar/phar_object.c char *fname, *path_info, *mime_type = NULL, *entry, *pt; fname 580 ext/phar/phar_object.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 581 ext/phar/phar_object.c fname_len = strlen(fname); fname 597 ext/phar/phar_object.c fname = estrndup(fname, fname_len); fname 598 ext/phar/phar_object.c phar_unixify_path_separators(fname, fname_len); fname 600 ext/phar/phar_object.c basename = zend_memrchr(fname, '/', fname_len); fname 603 ext/phar/phar_object.c basename = fname; fname 661 ext/phar/phar_object.c pt = estrndup(testit, (pt - testit) + (fname_len - (basename - fname))); fname 673 ext/phar/phar_object.c entry_len -= (pt - path_info) + (fname_len - (basename - fname)); fname 674 ext/phar/phar_object.c entry = estrndup(pt + (fname_len - (basename - fname)), entry_len); fname 676 ext/phar/phar_object.c pt = estrndup(path_info, (pt - path_info) + (fname_len - (basename - fname))); fname 759 ext/phar/phar_object.c phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len TSRMLS_CC); fname 778 ext/phar/phar_object.c if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, NULL TSRMLS_CC) || fname 780 ext/phar/phar_object.c phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len TSRMLS_CC); fname 824 ext/phar/phar_object.c if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, NULL TSRMLS_CC) || fname 826 ext/phar/phar_object.c phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len TSRMLS_CC); fname 828 ext/phar/phar_object.c efree(fname); fname 849 ext/phar/phar_object.c efree(fname); fname 861 ext/phar/phar_object.c efree(fname); fname 872 ext/phar/phar_object.c ret = phar_file_action(phar, info, mime_type, code, entry, entry_len, fname, pt, ru, ru_len TSRMLS_CC); fname 1004 ext/phar/phar_object.c char *fname, *alias = NULL, *error; fname 1007 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|s!", &fname, &fname_len, &alias, &alias_len) == FAILURE) { fname 1013 ext/phar/phar_object.c RETVAL_BOOL(phar_open_from_filename(fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, &error TSRMLS_CC) == SUCCESS); fname 1081 ext/phar/phar_object.c char *fname; fname 1086 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|b", &fname, &fname_len, &executable) == FAILURE) { fname 1091 ext/phar/phar_object.c RETVAL_BOOL(phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, is_executable, 2, 1 TSRMLS_CC) == SUCCESS); fname 1144 ext/phar/phar_object.c char *fname, *alias = NULL, *error, *arch = NULL, *entry = NULL, *save_fname; fname 1157 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ls!l", &fname, &fname_len, &flags, &alias, &alias_len, &format) == FAILURE) { fname 1161 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ls!", &fname, &fname_len, &flags, &alias, &alias_len) == FAILURE) { fname 1171 ext/phar/phar_object.c save_fname = fname; fname 1172 ext/phar/phar_object.c if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, 2 TSRMLS_CC)) { fname 1178 ext/phar/phar_object.c fname = arch; fname 1182 ext/phar/phar_object.c arch = estrndup(fname, fname_len); fname 1184 ext/phar/phar_object.c fname = arch; fname 1189 ext/phar/phar_object.c if (phar_open_or_create_filename(fname, fname_len, alias, alias_len, is_data, REPORT_ERRORS, &phar_data, &error TSRMLS_CC) == FAILURE) { fname 1191 ext/phar/phar_object.c if (fname == arch && fname != save_fname) { fname 1193 ext/phar/phar_object.c fname = save_fname; fname 1217 ext/phar/phar_object.c if (fname == arch) { fname 1219 ext/phar/phar_object.c fname = save_fname; fname 1244 ext/phar/phar_object.c fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry); fname 1247 ext/phar/phar_object.c fname_len = spprintf(&fname, 0, "phar://%s", phar_data->fname); fname 1251 ext/phar/phar_object.c ZVAL_STRINGL(&arg1, fname, fname_len, 0); fname 1266 ext/phar/phar_object.c efree(fname); fname 1325 ext/phar/phar_object.c char *fname, *error, *zname, *arch, *entry; fname 1329 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) { fname 1338 ext/phar/phar_object.c if (FAILURE == phar_open_from_filename(fname, fname_len, NULL, 0, REPORT_ERRORS, &phar, &error TSRMLS_CC)) { fname 1340 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unknown phar archive \"%s\": %s", fname, error); fname 1343 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Unknown phar archive \"%s\"", fname); fname 1352 ext/phar/phar_object.c if (arch_len == fname_len && !memcmp(arch, fname, arch_len)) { fname 1353 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar archive \"%s\" cannot be unlinked from within itself", fname); fname 1363 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar archive \"%s\" is in phar.cache_list, cannot unlinkArchive()", fname); fname 1368 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar archive \"%s\" has open file handles or objects. fclose() all file handles, and unset() all objects prior to calling unlinkArchive()", fname); fname 1372 ext/phar/phar_object.c fname = estrndup(phar->fname, phar->fname_len); fname 1379 ext/phar/phar_object.c unlink(fname); fname 1380 ext/phar/phar_object.c efree(fname); fname 1427 ext/phar/phar_object.c char *fname, *error = NULL, *base = p_obj->b, *opened, *save = NULL, *temp = NULL; fname 1497 ext/phar/phar_object.c fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name); fname 1498 ext/phar/phar_object.c php_stat(fname, fname_len, FS_IS_DIR, &dummy TSRMLS_CC); fname 1502 ext/phar/phar_object.c efree(fname); fname 1506 ext/phar/phar_object.c test = expand_filepath(fname, NULL TSRMLS_CC); fname 1507 ext/phar/phar_object.c efree(fname); fname 1510 ext/phar/phar_object.c fname = test; fname 1511 ext/phar/phar_object.c fname_len = strlen(fname); fname 1517 ext/phar/phar_object.c save = fname; fname 1521 ext/phar/phar_object.c fname = expand_filepath(intern->file_name, NULL TSRMLS_CC); fname 1522 ext/phar/phar_object.c if (!fname) { fname 1527 ext/phar/phar_object.c fname_len = strlen(fname); fname 1528 ext/phar/phar_object.c save = fname; fname 1538 ext/phar/phar_object.c fname = Z_STRVAL_PP(value); fname 1555 ext/phar/phar_object.c if (strstr(fname, base)) { fname 1566 ext/phar/phar_object.c str_key = fname + base_len; fname 1574 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Iterator %v returned a path \"%s\" that is not in the base directory \"%s\"", ce->name, fname, base); fname 1609 ext/phar/phar_object.c if (PG(safe_mode) && (!php_checkuid(fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) { fname 1610 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Iterator %v returned a path \"%s\" that safe mode prevents opening", ce->name, fname); fname 1624 ext/phar/phar_object.c if (php_check_open_basedir(fname TSRMLS_CC)) { fname 1625 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Iterator %v returned a path \"%s\" that open_basedir prevents opening", ce->name, fname); fname 1639 ext/phar/phar_object.c fp = php_stream_open_wrapper(fname, "rb", STREAM_MUST_SEEK|0, &opened); fname 1642 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "Iterator %v returned a file that could not be opened \"%s\"", ce->name, fname); fname 1676 ext/phar/phar_object.c if (!(data = phar_get_or_create_entry_data(phar_obj->arc.archive->fname, phar_obj->arc.archive->fname_len, str_key, str_key_len, "w+b", 0, &error, 1 TSRMLS_CC))) { fname 1767 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate directory iterator for %s", phar_obj->arc.archive->fname); fname 1789 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate directory iterator for %s", phar_obj->arc.archive->fname); fname 1811 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate regex iterator for %s", phar_obj->arc.archive->fname); fname 1832 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" unable to create temporary file", phar_obj->arc.archive->fname); fname 1842 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 1902 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 1916 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\": unable to create temporary file", phar_obj->arc.archive->fname); fname 1985 ext/phar/phar_object.c "Cannot convert phar archive \"%s\", unable to open entry \"%s\" contents: %s", entry->phar->fname, entry->filename, error); fname 1989 ext/phar/phar_object.c "Cannot convert phar archive \"%s\", unable to open entry \"%s\" contents", entry->phar->fname, entry->filename); fname 2005 ext/phar/phar_object.c "Cannot convert phar archive \"%s\", unable to copy entry \"%s\" contents", entry->phar->fname, entry->filename); fname 2087 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "data phar converted from \"%s\" has invalid extension %s", phar->fname, ext); fname 2089 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "phar converted from \"%s\" has invalid extension %s", phar->fname, ext); fname 2098 ext/phar/phar_object.c oldpath = estrndup(phar->fname, phar->fname_len); fname 2099 ext/phar/phar_object.c oldname = zend_memrchr(phar->fname, '/', phar->fname_len); fname 2111 ext/phar/phar_object.c phar->fname = newpath; fname 2118 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to add newly converted phar \"%s\" to the list of phars, new phar name is in phar.cache_list", phar->fname); fname 2123 ext/phar/phar_object.c if ((*pphar)->fname_len == phar->fname_len && !memcmp((*pphar)->fname, phar->fname, phar->fname_len)) { fname 2142 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to add newly converted phar \"%s\" to the list of phars, a phar with that name already exists", phar->fname); fname 2154 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "phar \"%s\" has invalid extension %s", phar->fname, ext); fname 2174 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "data phar \"%s\" has invalid extension %s", phar->fname, ext); fname 2184 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to add newly converted phar \"%s\" to the list of phars", phar->fname); fname 2209 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Unable to instantiate phar object when converting archive \"%s\"", phar->fname); fname 2214 ext/phar/phar_object.c ZVAL_STRINGL(&arg1, phar->fname, phar->fname_len, 0); fname 2260 ext/phar/phar_object.c phar->fname = source->fname; fname 2285 ext/phar/phar_object.c "Cannot convert phar archive \"%s\"", source->fname); fname 2351 ext/phar/phar_object.c efree(phar->fname); fname 2604 ext/phar/phar_object.c if (SUCCESS != php_stream_stat_path(phar_obj->arc.archive->fname, &ssb)) { fname 2621 ext/phar/phar_object.c char *fname; fname 2633 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) { fname 2638 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 2641 ext/phar/phar_object.c if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) { fname 2642 ext/phar/phar_object.c if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&entry)) { fname 2653 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Entry %s does not exist and cannot be deleted", fname); fname 2678 ext/phar/phar_object.c if (phar_obj->arc.archive->alias && phar_obj->arc.archive->alias != phar_obj->arc.archive->fname) { fname 2695 ext/phar/phar_object.c RETURN_STRINGL(phar_obj->arc.archive->fname, phar_obj->arc.archive->fname_len, 1); fname 2737 ext/phar/phar_object.c spprintf(&error, 0, "alias \"%s\" is already used for archive \"%s\" and cannot be used for other archives", alias, (*fd_ptr)->fname); fname 2748 ext/phar/phar_object.c "Invalid alias \"%s\" specified for phar \"%s\"", alias, phar_obj->arc.archive->fname); fname 2753 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 2912 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 2927 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3006 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3061 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3373 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3415 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3458 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", cannot copy Phar meta-file in %s", oldfile, newfile, phar_obj->arc.archive->fname); fname 3465 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", cannot copy to Phar meta-file in %s", oldfile, newfile, phar_obj->arc.archive->fname); fname 3471 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", file does not exist in %s", oldfile, newfile, phar_obj->arc.archive->fname); fname 3478 ext/phar/phar_object.c "file \"%s\" cannot be copied to file \"%s\", file must not already exist in phar %s", oldfile, newfile, phar_obj->arc.archive->fname); fname 3485 ext/phar/phar_object.c "file \"%s\" contains invalid characters %s, cannot be copied from \"%s\" in phar %s", newfile, pcr_error, oldfile, phar_obj->arc.archive->fname); fname 3491 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3545 ext/phar/phar_object.c char *fname; fname 3551 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) { fname 3555 ext/phar/phar_object.c if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) { fname 3556 ext/phar/phar_object.c if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&entry)) { fname 3563 ext/phar/phar_object.c if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { fname 3569 ext/phar/phar_object.c if (zend_hash_exists(&phar_obj->arc.archive->virtual_dirs, fname, (uint) fname_len)) { fname 3582 ext/phar/phar_object.c char *fname, *error; fname 3588 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) { fname 3593 ext/phar/phar_object.c if (!(entry = phar_get_entry_info_dir(phar_obj->arc.archive, fname, fname_len, 1, &error, 0 TSRMLS_CC))) { fname 3594 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Entry %s does not exist%s%s", fname, error?", ":"", error?error:""); fname 3596 ext/phar/phar_object.c if (fname_len == sizeof(".phar/stub.php")-1 && !memcmp(fname, ".phar/stub.php", sizeof(".phar/stub.php")-1)) { fname 3597 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot get stub \".phar/stub.php\" directly in phar \"%s\", use getStub", phar_obj->arc.archive->fname); fname 3601 ext/phar/phar_object.c if (fname_len == sizeof(".phar/alias.txt")-1 && !memcmp(fname, ".phar/alias.txt", sizeof(".phar/alias.txt")-1)) { fname 3602 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot get alias \".phar/alias.txt\" directly in phar \"%s\", use getAlias", phar_obj->arc.archive->fname); fname 3606 ext/phar/phar_object.c if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { fname 3607 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot directly get any files or directories in magic \".phar\" directory", phar_obj->arc.archive->fname); fname 3616 ext/phar/phar_object.c fname_len = spprintf(&fname, 0, "phar://%s/%s", phar_obj->arc.archive->fname, fname); fname 3618 ext/phar/phar_object.c ZVAL_STRINGL(zfname, fname, fname_len, 0); fname 3635 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot create any files in magic \".phar\" directory", (*pphar)->fname); fname 3639 ext/phar/phar_object.c if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, filename, filename_len, "w+b", 0, &error, 1 TSRMLS_CC))) { fname 3692 ext/phar/phar_object.c if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_len, "w+b", 2, &error, 1 TSRMLS_CC))) { fname 3726 ext/phar/phar_object.c char *fname, *cont_str = NULL; fname 3736 ext/phar/phar_object.c if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "pr", &fname, &fname_len, &zresource) == FAILURE fname 3737 ext/phar/phar_object.c && zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ps", &fname, &fname_len, &cont_str, &cont_len) == FAILURE) { fname 3741 ext/phar/phar_object.c if (fname_len == sizeof(".phar/stub.php")-1 && !memcmp(fname, ".phar/stub.php", sizeof(".phar/stub.php")-1)) { fname 3742 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot set stub \".phar/stub.php\" directly in phar \"%s\", use setStub", phar_obj->arc.archive->fname); fname 3746 ext/phar/phar_object.c if (fname_len == sizeof(".phar/alias.txt")-1 && !memcmp(fname, ".phar/alias.txt", sizeof(".phar/alias.txt")-1)) { fname 3747 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot set alias \".phar/alias.txt\" directly in phar \"%s\", use setAlias", phar_obj->arc.archive->fname); fname 3751 ext/phar/phar_object.c if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) { fname 3752 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot set any files or directories in magic \".phar\" directory", phar_obj->arc.archive->fname); fname 3756 ext/phar/phar_object.c phar_add_file(&(phar_obj->arc.archive), fname, fname_len, cont_str, cont_len, zresource TSRMLS_CC); fname 3765 ext/phar/phar_object.c char *fname, *error; fname 3775 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) { fname 3779 ext/phar/phar_object.c if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) { fname 3780 ext/phar/phar_object.c if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&entry)) { fname 3788 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 3792 ext/phar/phar_object.c zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void **)&entry); fname 3840 ext/phar/phar_object.c char *fname, *localname = NULL; fname 3847 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|s", &fname, &fname_len, &localname, &localname_len) == FAILURE) { fname 3852 ext/phar/phar_object.c if (PG(safe_mode) && (!php_checkuid(fname, NULL, CHECKUID_ALLOW_ONLY_FILE))) { fname 3853 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: unable to open file \"%s\" to add to phar archive, safe_mode restrictions prevent this", fname); fname 3858 ext/phar/phar_object.c if (!strstr(fname, "://") && php_check_open_basedir(fname TSRMLS_CC)) { fname 3859 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: unable to open file \"%s\" to add to phar archive, open_basedir restrictions prevent this", fname); fname 3863 ext/phar/phar_object.c if (!(resource = php_stream_open_wrapper(fname, "rb", 0, NULL))) { fname 3864 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_RuntimeException, 0 TSRMLS_CC, "phar error: unable to open file \"%s\" to add to phar archive", fname); fname 3869 ext/phar/phar_object.c fname = localname; fname 3875 ext/phar/phar_object.c phar_add_file(&(phar_obj->arc.archive), fname, fname_len, NULL, 0, zresource TSRMLS_CC); fname 3922 ext/phar/phar_object.c if (!(fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL))) { fname 3923 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "phar error: unable to open phar \"%s\"", phar_obj->arc.archive->fname); fname 3935 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_UnexpectedValueException, 0 TSRMLS_CC, "phar error: unable to read stub of phar \"%s\" (cannot create %s filter)", phar_obj->arc.archive->fname, phar_decompress_filter(stub, 1)); fname 3960 ext/phar/phar_object.c fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", 0, NULL); fname 4053 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar_obj->arc.archive->fname); fname 4322 ext/phar/phar_object.c fp = php_stream_open_wrapper(phar_obj->arc.archive->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK, &actual); fname 4326 ext/phar/phar_object.c "Invalid argument, %s cannot be found", phar_obj->arc.archive->fname); fname 4386 ext/phar/phar_object.c "Phar Error: attempted to extract non-existent file \"%s\" from phar \"%s\"", Z_STRVAL_PP(zval_file), phar_obj->arc.archive->fname); fname 4390 ext/phar/phar_object.c "Extraction from phar \"%s\" failed: %s", phar_obj->arc.archive->fname, error); fname 4405 ext/phar/phar_object.c "Phar Error: attempted to extract non-existent file \"%s\" from phar \"%s\"", filename, phar_obj->arc.archive->fname); fname 4411 ext/phar/phar_object.c "Extraction from phar \"%s\" failed: %s", phar_obj->arc.archive->fname, error); fname 4434 ext/phar/phar_object.c "Extraction from phar \"%s\" failed: %s", phar->fname, error); fname 4450 ext/phar/phar_object.c char *fname, *arch, *entry, *error; fname 4457 ext/phar/phar_object.c if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &fname, &fname_len) == FAILURE) { fname 4468 ext/phar/phar_object.c if (fname_len < 7 || memcmp(fname, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0 TSRMLS_CC) == FAILURE) { fname 4470 ext/phar/phar_object.c "'%s' is not a valid phar archive URL (must have at least phar://filename.phar)", fname); fname 4479 ext/phar/phar_object.c "Cannot open phar file '%s': %s", fname, error); fname 4483 ext/phar/phar_object.c "Cannot open phar file '%s'", fname); fname 4502 ext/phar/phar_object.c ZVAL_STRINGL(&arg1, fname, fname_len, 0); fname 4650 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "Cannot modify permissions for file \"%s\" in phar \"%s\", write operations are prohibited", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname); fname 4662 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar->fname); fname 4766 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar->fname); fname 4820 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar->fname); fname 4864 ext/phar/phar_object.c "Phar error: Cannot retrieve contents, \"%s\" in phar \"%s\" is a directory", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname); fname 4876 ext/phar/phar_object.c "Phar error: Cannot retrieve contents, \"%s\" in phar \"%s\": %s", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname, error); fname 4883 ext/phar/phar_object.c "Phar error: Cannot retrieve contents of \"%s\" in phar \"%s\"", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname); fname 4939 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar->fname); fname 4961 ext/phar/phar_object.c "Phar error: Cannot decompress bzip2-compressed file \"%s\" in phar \"%s\" in order to compress with gzip: %s", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname, error); fname 4992 ext/phar/phar_object.c "Phar error: Cannot decompress gzip-compressed file \"%s\" in phar \"%s\" in order to compress with bzip2: %s", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname, error); fname 5075 ext/phar/phar_object.c zend_throw_exception_ex(phar_ce_PharException, 0 TSRMLS_CC, "phar \"%s\" is persistent, unable to copy on write", phar->fname); fname 5083 ext/phar/phar_object.c zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Cannot decompress entry \"%s\", phar error: Cannot open phar archive \"%s\" for reading", entry_obj->ent.entry->filename, entry_obj->ent.entry->phar->fname); fname 235 ext/phar/stream.c spprintf(opened_path, MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename); fname 253 ext/phar/stream.c spprintf(opened_path, MAXPATHLEN, "%s", phar->fname); fname 279 ext/phar/stream.c spprintf(opened_path, MAXPATHLEN, "%s", phar->fname); fname 336 ext/phar/stream.c spprintf(opened_path, MAXPATHLEN, "phar://%s/%s", idata->phar->fname, idata->internal_file->filename); fname 440 ext/phar/stream.c php_stream_wrapper_log_error(stream->wrapper, stream->flags TSRMLS_CC, "phar error: Could not write %d characters to \"%s\" in phar \"%s\"", (int) count, data->internal_file->filename, data->phar->fname); fname 100 ext/phar/tar.c int phar_is_tar(char *buf, char *fname) /* {{{ */ fname 116 ext/phar/tar.c if ((bname = strrchr(fname, PHP_DIR_SEPARATOR))) { fname 117 ext/phar/tar.c fname = bname; fname 119 ext/phar/tar.c if (!ret && (bname = strstr(fname, ".tar")) && (bname[4] == '\0' || bname[4] == '.')) { fname 127 ext/phar/tar.c int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 130 ext/phar/tar.c int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC); fname 155 ext/phar/tar.c spprintf(error, 4096, "phar tar error: \"%s\" already exists as a regular phar and must be deleted from disk prior to creating as a tar-based phar", fname); fname 205 ext/phar/tar.c int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error TSRMLS_DC) /* {{{ */ fname 227 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname); fname 280 ext/phar/tar.c spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname); fname 291 ext/phar/tar.c spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname); fname 305 ext/phar/tar.c if (FAILURE == phar_verify_signature(fp, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname, &myphar->signature, &myphar->sig_len, error TSRMLS_CC)) { fname 308 ext/phar/tar.c spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be verified: %s", fname, save); fname 320 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 332 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 347 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" has entries after signature, invalid phar", fname); fname 361 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (invalid entry size)", fname); fname 373 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 389 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 401 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 457 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (checksum mismatch of file \"%s\")", fname, entry.filename); fname 491 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file - hard link to non-existent file \"%.*s\"", fname, linkname_len, hdr->linkname); fname 514 ext/phar/tar.c spprintf(error, 4096, "phar error: tar-based phar \"%s\" has invalid metadata in magic file \"%s\"", fname, entry.filename); fname 526 ext/phar/tar.c spprintf(error, 4096, "phar error: tar-based phar \"%s\" has alias that is larger than 511 bytes, cannot process", fname); fname 546 ext/phar/tar.c spprintf(error, 4096, "phar error: invalid alias \"%s\" in tar-based phar \"%s\"", buf, fname); fname 560 ext/phar/tar.c spprintf(error, 4096, "phar error: Unable to read alias from tar-based phar \"%s\"", fname); fname 577 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 589 ext/phar/tar.c spprintf(error, 4096, "phar error: \"%s\" is a corrupted tar file (truncated)", fname); fname 608 ext/phar/tar.c spprintf(error, 0, "tar-based phar \"%s\" does not have a signature", fname); fname 613 ext/phar/tar.c myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); fname 615 ext/phar/tar.c phar_unixify_path_separators(myphar->fname, fname_len); fname 619 ext/phar/tar.c p = strrchr(myphar->fname, '/'); fname 622 ext/phar/tar.c myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); fname 624 ext/phar/tar.c myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); fname 627 ext/phar/tar.c myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; fname 633 ext/phar/tar.c if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len, (void*)&myphar, sizeof(phar_archive_data*), (void **)&actual)) { fname 635 ext/phar/tar.c spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\" to phar registry", fname); fname 652 ext/phar/tar.c spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); fname 654 ext/phar/tar.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); fname 667 ext/phar/tar.c spprintf(error, 4096, "phar error: Unable to add tar-based phar \"%s\", alias is already in use", fname); fname 669 ext/phar/tar.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); fname 677 ext/phar/tar.c myphar->alias = pestrndup(myphar->fname, fname_len, myphar->is_persistent); fname 728 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); fname 738 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too long for tar file format", entry->phar->fname, entry->filename); fname 752 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, filename \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); fname 759 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, file modification time of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); fname 778 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, checksum of file \"%s\" is too large for tar file format", entry->phar->fname, entry->filename); fname 788 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, header for file \"%s\" could not be written", entry->phar->fname, entry->filename); fname 803 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written, seek failed", entry->phar->fname, entry->filename); fname 810 ext/phar/tar.c spprintf(fp->error, 4096, "tar-based phar \"%s\" cannot be created, contents of file \"%s\" could not be written", entry->phar->fname, entry->filename); fname 966 ext/phar/tar.c spprintf(error, 0, "internal error: attempt to flush cached tar-based phar \"%s\"", phar->fname); fname 986 ext/phar/tar.c spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); fname 995 ext/phar/tar.c spprintf(error, 0, "unable to set alias in tar-based phar \"%s\"", phar->fname); fname 1010 ext/phar/tar.c spprintf(error, 0, "unable to access resource to copy stub to new tar-based phar \"%s\"", phar->fname); fname 1023 ext/phar/tar.c spprintf(error, 0, "unable to read resource to copy stub to new tar-based phar \"%s\"", phar->fname); fname 1036 ext/phar/tar.c spprintf(error, 0, "illegal stub for tar-based phar \"%s\"", phar->fname); fname 1057 ext/phar/tar.c spprintf(error, 0, "unable to create stub from string in new tar-based phar \"%s\"", phar->fname); fname 1083 ext/phar/tar.c spprintf(error, 0, "unable to %s stub in%star-based phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); fname 1098 ext/phar/tar.c spprintf(error, 0, "unable to create stub in tar-based phar \"%s\"", phar->fname); fname 1111 ext/phar/tar.c spprintf(error, 0, "unable to overwrite stub in tar-based phar \"%s\"", phar->fname); fname 1123 ext/phar/tar.c oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); fname 1163 ext/phar/tar.c spprintf(error, 0, "phar tar error: unable to add magic metadata file to manifest for phar archive \"%s\"", phar->fname); fname 1233 ext/phar/tar.c spprintf(error, 0, "phar error: unable to write signature to tar-based phar %s", phar->fname); fname 1291 ext/phar/tar.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fname 1295 ext/phar/tar.c spprintf(error, 0, "unable to open new phar \"%s\" for writing", phar->fname); fname 1319 ext/phar/tar.c spprintf(error, 4096, "unable to compress all contents of phar \"%s\" using zlib, PHP versions older than 5.2.6 have a buggy zlib", phar->fname); fname 255 ext/phar/util.c char *path, *fname, *arch, *entry, *ret, *test; fname 269 ext/phar/util.c fname = (char*)zend_get_executed_filename(TSRMLS_C); fname 270 ext/phar/util.c fname_len = strlen(fname); fname 272 ext/phar/util.c if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(last_phar_name), PHAR_G(last_phar_name_len))) { fname 279 ext/phar/util.c if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) { fname 353 ext/phar/util.c int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ fname 372 ext/phar/util.c if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { fname 378 ext/phar/util.c spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, disabled by ini setting", path, fname); fname 385 ext/phar/util.c spprintf(error, 4096, "phar error: file \"\" in phar \"%s\" cannot be empty", fname); fname 409 ext/phar/util.c spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, could not make cached phar writeable", path, fname); fname 419 ext/phar/util.c spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for reading, writable file pointers are open", path, fname); fname 426 ext/phar/util.c spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be opened for writing, readable file pointers are open", path, fname); fname 519 ext/phar/util.c phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security TSRMLS_DC) /* {{{ */ fname 533 ext/phar/util.c if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, error TSRMLS_CC)) { fname 537 ext/phar/util.c if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error, security TSRMLS_CC)) { fname 552 ext/phar/util.c spprintf(error, 4096, "phar error: file \"%s\" in phar \"%s\" cannot be created, could not make cached phar writeable", path, fname); fname 603 ext/phar/util.c spprintf(error, 0, "phar error: unable to add new entry \"%s\" to phar \"%s\"", etemp.filename, phar->fname); fname 637 ext/phar/util.c if (php_check_open_basedir(phar->fname TSRMLS_CC)) { fname 641 ext/phar/util.c phar_set_pharfp(phar, php_stream_open_wrapper(phar->fname, "rb", IGNORE_URL|STREAM_MUST_SEEK|0, NULL) TSRMLS_CC); fname 685 ext/phar/util.c spprintf(error, 4096, "phar error: unable to copy contents of file \"%s\" to \"%s\" in phar archive \"%s\"", source->filename, dest->filename, source->phar->fname); fname 730 ext/phar/util.c spprintf(error, 4096, "phar error: Cannot open phar archive \"%s\" for reading", phar->fname); fname 749 ext/phar/util.c spprintf(error, 4096, "phar error: Cannot open temporary file for decompressing phar archive \"%s\" file \"%s\"", phar->fname, entry->filename); fname 771 ext/phar/util.c spprintf(error, 4096, "phar error: unable to read phar \"%s\" (cannot create %s filter while decompressing file \"%s\")", phar->fname, phar_decompress_filter(entry, 1), entry->filename); fname 784 ext/phar/util.c spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); fname 795 ext/phar/util.c spprintf(error, 4096, "phar error: internal corruption of phar \"%s\" (actual filesize mismatch on file \"%s\")", phar->fname, entry->filename); fname 892 ext/phar/util.c spprintf(error, 4096, "phar error: cannot separate entry file \"%s\" contents in phar archive \"%s\" for write access", entry->filename, entry->phar->fname); fname 924 ext/phar/util.c spprintf(error, 4096, "phar error: cannot seek to start of file \"%s\" in phar \"%s\"", entry->filename, phar->fname); fname 935 ext/phar/util.c *filename = (*fd_ptr)->fname; fname 950 ext/phar/util.c if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { fname 966 ext/phar/util.c int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) /* {{{ */ fname 981 ext/phar/util.c if (PHAR_G(last_phar) && fname_len == PHAR_G(last_phar_name_len) && !memcmp(fname, PHAR_G(last_phar_name), fname_len)) { fname 987 ext/phar/util.c spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, PHAR_G(last_phar)->fname, fname); fname 1015 ext/phar/util.c if (fname && (fname_len != (*fd_ptr)->fname_len || strncmp(fname, (*fd_ptr)->fname, fname_len))) { fname 1017 ext/phar/util.c spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); fname 1031 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fname 1044 ext/phar/util.c fhash = zend_inline_hash_func(fname, fname_len); fname 1046 ext/phar/util.c save = fname; fname 1049 ext/phar/util.c if (fname && fname_len) { fname 1050 ext/phar/util.c if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (void**)&fd_ptr)) { fname 1057 ext/phar/util.c spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); fname 1070 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fname 1078 ext/phar/util.c if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fhash, (void**)&fd_ptr)) { fname 1087 ext/phar/util.c spprintf(error, 0, "alias \"%s\" is already used for archive \"%s\" cannot be overloaded with \"%s\"", alias, (*fd_ptr)->fname, fname); fname 1094 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fname 1106 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fname 1118 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fname 1127 ext/phar/util.c my_realpath = expand_filepath(fname, my_realpath TSRMLS_CC); fname 1131 ext/phar/util.c fname = my_realpath; fname 1136 ext/phar/util.c phar_unixify_path_separators(fname, fname_len); fname 1138 ext/phar/util.c fhash = zend_inline_hash_func(fname, fname_len); fname 1140 ext/phar/util.c if (SUCCESS == zend_hash_quick_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, fhash, (void**)&fd_ptr)) { fname 1152 ext/phar/util.c PHAR_G(last_phar_name) = fd->fname; fname 1160 ext/phar/util.c if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_quick_find(&cached_phars, fname, fname_len, fhash, (void**)&fd_ptr)) { fname 1520 ext/phar/util.c int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error TSRMLS_DC) /* {{{ */ fname 1550 ext/phar/util.c spprintf(&pfile, 0, "%s.pubkey", fname); fname 1847 ext/phar/util.c spprintf(error, 0, "unable to write to phar \"%s\" with requested hash type", phar->fname); fname 1864 ext/phar/util.c spprintf(error, 0, "unable to write to phar \"%s\" with requested openssl signature", phar->fname); fname 1887 ext/phar/util.c spprintf(error, 0, "unable to initialize openssl signature for phar \"%s\"", phar->fname); fname 1896 ext/phar/util.c spprintf(error, 0, "unable to update the openssl signature for phar \"%s\"", phar->fname); fname 1905 ext/phar/util.c spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); fname 1919 ext/phar/util.c spprintf(error, 0, "unable to write phar \"%s\" with requested openssl signature", phar->fname); fname 2025 ext/phar/util.c char *fname; fname 2031 ext/phar/util.c fname = phar->fname; fname 2032 ext/phar/util.c phar->fname = estrndup(phar->fname, phar->fname_len); fname 2033 ext/phar/util.c phar->ext = phar->fname + (phar->ext - fname); fname 2076 ext/phar/util.c if (objphar[0]->arc.archive->fname_len == phar->fname_len && !memcmp(objphar[0]->arc.archive->fname, phar->fname, phar->fname_len)) { fname 2087 ext/phar/util.c if (SUCCESS != zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len, (void *)&newphar, sizeof(phar_archive_data *), (void **)&newpphar)) { fname 2098 ext/phar/util.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), (*pphar)->fname, (*pphar)->fname_len); fname 166 ext/phar/zip.c int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 185 ext/phar/zip.c spprintf(error, 4096, "phar error: unable to search for end of central directory in zip-based phar \"%s\"", fname); fname 196 ext/phar/zip.c spprintf(error, 4096, "phar error: unable to read in data to search for end of central directory in zip-based phar \"%s\"", fname); fname 208 ext/phar/zip.c spprintf(error, 4096, "phar error: split archives spanning multiple zips cannot be processed in zip-based phar \"%s\"", fname); fname 215 ext/phar/zip.c spprintf(error, 4096, "phar error: corrupt zip archive, conflicting file count in end of central directory record in zip-based phar \"%s\"", fname); fname 231 ext/phar/zip.c spprintf(error, 4096, "phar error: corrupt zip archive, zip file comment truncated in zip-based phar \"%s\"", fname); fname 265 ext/phar/zip.c spprintf(error, 4096, "phar error: end of central directory not found in zip-based phar \"%s\"", fname); fname 270 ext/phar/zip.c mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); fname 272 ext/phar/zip.c phar_unixify_path_separators(mydata->fname, fname_len); fname 276 ext/phar/zip.c ext = strrchr(mydata->fname, '/'); fname 279 ext/phar/zip.c mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext); fname 281 ext/phar/zip.c mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1); fname 284 ext/phar/zip.c mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; fname 317 ext/phar/zip.c spprintf(error, 4096, "phar error: %s in zip-based phar \"%s\"", errmsg, mydata->fname); \ fname 319 ext/phar/zip.c pefree(mydata->fname, mydata->is_persistent); \ fname 341 ext/phar/zip.c spprintf(error, 4096, "phar error: %s in zip-based phar \"%s\"", errmsg, mydata->fname); \ fname 343 ext/phar/zip.c pefree(mydata->fname, mydata->is_persistent); \ fname 439 ext/phar/zip.c if (FAILURE == phar_verify_signature(sigfile, php_stream_tell(sigfile), mydata->sig_flags, sig + 8, entry.uncompressed_filesize - 8, fname, &mydata->signature, &mydata->sig_len, error TSRMLS_CC)) { fname 652 ext/phar/zip.c zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(phar_archive_data*), NULL); fname 659 ext/phar/zip.c spprintf(error, 4096, "phar error: invalid alias \"%s\" in zip-based phar \"%s\"", actual_alias, fname); fname 662 ext/phar/zip.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); fname 671 ext/phar/zip.c spprintf(error, 4096, "phar error: Unable to add zip-based phar \"%s\" with implicit alias, alias is already in use", fname); fname 674 ext/phar/zip.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); fname 693 ext/phar/zip.c spprintf(error, 4096, "phar error: Unable to add zip-based phar \"%s\" with explicit alias, alias is already in use", fname); fname 695 ext/phar/zip.c zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); fname 704 ext/phar/zip.c mydata->alias = pestrndup(mydata->fname, fname_len, mydata->is_persistent); fname 722 ext/phar/zip.c int phar_open_or_create_zip(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error TSRMLS_DC) /* {{{ */ fname 725 ext/phar/zip.c int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC); fname 750 ext/phar/zip.c spprintf(error, 4096, "phar zip error: phar \"%s\" already exists as a regular phar and must be deleted from disk prior to creating as a zip-based phar", fname); fname 846 ext/phar/zip.c spprintf(p->error, 0, "unable to open file contents of file \"%s\" in zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 857 ext/phar/zip.c spprintf(p->error, 0, "unable to seek to start of file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 884 ext/phar/zip.c spprintf(p->error, 0, "unable to gzip compress file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 886 ext/phar/zip.c spprintf(p->error, 0, "unable to bzip2 compress file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 897 ext/phar/zip.c spprintf(p->error, 0, "unable to create temporary file for file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 904 ext/phar/zip.c spprintf(p->error, 0, "unable to seek to start of file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 911 ext/phar/zip.c spprintf(p->error, 0, "unable to copy compressed file contents of file \"%s\" while creating new phar \"%s\"", entry->filename, entry->phar->fname); fname 934 ext/phar/zip.c spprintf(p->error, 0, "unable to seek to start of file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 962 ext/phar/zip.c spprintf(p->error, 0, "unable to write local file header of file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 967 ext/phar/zip.c spprintf(p->error, 0, "unable to write central directory entry for file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 973 ext/phar/zip.c spprintf(p->error, 0, "unable to write filename to local directory entry for directory \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 978 ext/phar/zip.c spprintf(p->error, 0, "unable to write filename to local directory entry for directory \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 983 ext/phar/zip.c spprintf(p->error, 0, "unable to write filename to central directory entry for directory \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 988 ext/phar/zip.c spprintf(p->error, 0, "unable to write filename to central directory entry for directory \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 993 ext/phar/zip.c spprintf(p->error, 0, "unable to write filename to local directory entry for file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 998 ext/phar/zip.c spprintf(p->error, 0, "unable to write filename to central directory entry for file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1004 ext/phar/zip.c spprintf(p->error, 0, "unable to write local extra permissions file header of file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1009 ext/phar/zip.c spprintf(p->error, 0, "unable to write central extra permissions file header of file \"%s\" to zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1016 ext/phar/zip.c spprintf(p->error, 0, "unable to write compressed contents of file \"%s\" in zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1030 ext/phar/zip.c spprintf(p->error, 0, "unable to write contents of file \"%s\" in zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1056 ext/phar/zip.c spprintf(p->error, 0, "unable to copy contents of file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1067 ext/phar/zip.c spprintf(p->error, 0, "unable to write metadata as file comment for file \"%s\" while creating zip-based phar \"%s\"", entry->filename, entry->phar->fname); fname 1133 ext/phar/zip.c spprintf(pass->error, 0, "phar error: unable to write signature to zip-based phar %s", phar->fname); fname 1184 ext/phar/zip.c spprintf(error, 0, "internal error: attempt to flush cached zip-based phar \"%s\"", phar->fname); fname 1202 ext/phar/zip.c spprintf(error, 0, "unable to set alias in zip-based phar \"%s\"", phar->fname); fname 1213 ext/phar/zip.c spprintf(error, 0, "unable to set alias in zip-based phar \"%s\"", phar->fname); fname 1223 ext/phar/zip.c if (FAILURE == phar_get_archive(&phar, phar->fname, phar->fname_len, phar->alias, phar->alias_len, error TSRMLS_CC)) { fname 1234 ext/phar/zip.c spprintf(error, 0, "unable to access resource to copy stub to new zip-based phar \"%s\"", phar->fname); fname 1249 ext/phar/zip.c spprintf(error, 0, "unable to read resource to copy stub to new zip-based phar \"%s\"", phar->fname); fname 1262 ext/phar/zip.c spprintf(error, 0, "illegal stub for zip-based phar \"%s\"", phar->fname); fname 1283 ext/phar/zip.c spprintf(error, 0, "unable to create stub from string in new zip-based phar \"%s\"", phar->fname); fname 1300 ext/phar/zip.c spprintf(error, 0, "unable to set stub in zip-based phar \"%s\"", phar->fname); fname 1318 ext/phar/zip.c spprintf(error, 0, "unable to %s stub in%szip-based phar \"%s\", failed", user_stub ? "overwrite" : "create", user_stub ? " " : " new ", phar->fname); fname 1333 ext/phar/zip.c spprintf(error, 0, "unable to create stub in zip-based phar \"%s\"", phar->fname); fname 1346 ext/phar/zip.c spprintf(error, 0, "unable to overwrite stub in zip-based phar \"%s\"", phar->fname); fname 1358 ext/phar/zip.c oldfile = php_stream_open_wrapper(phar->fname, "rb", 0, NULL); fname 1372 ext/phar/zip.c spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to open temporary file", phar->fname); fname 1407 ext/phar/zip.c spprintf(error, 4096, "phar zip flush of \"%s\" failed: %s", phar->fname, temperr); fname 1439 ext/phar/zip.c spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to write central-directory", phar->fname); fname 1453 ext/phar/zip.c spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to write end of central-directory", phar->fname); fname 1460 ext/phar/zip.c spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to write metadata to zip comment", phar->fname); fname 1470 ext/phar/zip.c spprintf(error, 4096, "phar zip flush of \"%s\" failed: unable to write end of central-directory", phar->fname); fname 1494 ext/phar/zip.c phar->fp = php_stream_open_wrapper(phar->fname, "w+b", IGNORE_URL|STREAM_MUST_SEEK|REPORT_ERRORS, NULL); fname 1501 ext/phar/zip.c spprintf(error, 4096, "unable to open new phar \"%s\" for writing", phar->fname); fname 1406 ext/reflection/php_reflection.c zval fname; fname 1466 ext/reflection/php_reflection.c ZVAL_STRINGL(&fname, "reflection::export", sizeof("reflection::export") - 1, 0); fname 1468 ext/reflection/php_reflection.c fci.function_name = &fname; fname 1549 ext/reflection/php_reflection.c zval *object, fname, *retval_ptr; fname 1558 ext/reflection/php_reflection.c ZVAL_STRINGL(&fname, "__tostring", sizeof("__tostring") - 1, 1); fname 1559 ext/reflection/php_reflection.c result= call_user_function_ex(NULL, &object, &fname, &retval_ptr, 0, NULL, 0, NULL TSRMLS_CC); fname 1560 ext/reflection/php_reflection.c zval_dtor(&fname); fname 910 ext/soap/soap.c zval fname; fname 921 ext/soap/soap.c ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 0); fname 925 ext/soap/soap.c fci.function_name = &fname; fname 1455 ext/spl/spl_array.c static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ fname 1468 ext/spl/spl_array.c zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 1, tmp, NULL TSRMLS_CC); fname 1478 ext/spl/spl_array.c zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, arg? 2 : 1, tmp, arg TSRMLS_CC); fname 1488 ext/spl/spl_array.c zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 2, tmp, arg TSRMLS_CC); fname 1498 ext/spl/spl_array.c #define SPL_ARRAY_METHOD(cname, fname, use_arg) \ fname 1499 ext/spl/spl_array.c SPL_METHOD(cname, fname) \ fname 1501 ext/spl/spl_array.c spl_array_method(INTERNAL_FUNCTION_PARAM_PASSTHRU, #fname, sizeof(#fname)-1, use_arg); \ fname 929 ext/spl/spl_directory.c char *fname = NULL; fname 941 ext/spl/spl_directory.c fname = intern->file_name + path_len + 1; fname 944 ext/spl/spl_directory.c fname = intern->file_name; fname 948 ext/spl/spl_directory.c php_basename(fname, flen, NULL, 0, &fname, &flen TSRMLS_CC); fname 950 ext/spl/spl_directory.c p = zend_memrchr(fname, '.', flen); fname 952 ext/spl/spl_directory.c idx = p - fname; fname 953 ext/spl/spl_directory.c RETVAL_STRINGL(fname + idx + 1, flen - idx - 1, 1); fname 954 ext/spl/spl_directory.c efree(fname); fname 957 ext/spl/spl_directory.c if (fname) { fname 958 ext/spl/spl_directory.c efree(fname); fname 970 ext/spl/spl_directory.c char *fname = NULL; fname 979 ext/spl/spl_directory.c php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), NULL, 0, &fname, &flen TSRMLS_CC); fname 981 ext/spl/spl_directory.c p = zend_memrchr(fname, '.', flen); fname 983 ext/spl/spl_directory.c idx = p - fname; fname 984 ext/spl/spl_directory.c RETVAL_STRINGL(fname + idx + 1, flen - idx - 1, 1); fname 985 ext/spl/spl_directory.c efree(fname); fname 988 ext/spl/spl_directory.c if (fname) { fname 989 ext/spl/spl_directory.c efree(fname); fname 1001 ext/spl/spl_directory.c char *fname, *suffix = 0; fname 1012 ext/spl/spl_directory.c fname = intern->file_name + path_len + 1; fname 1015 ext/spl/spl_directory.c fname = intern->file_name; fname 1019 ext/spl/spl_directory.c php_basename(fname, flen, suffix, slen, &fname, &flen TSRMLS_CC); fname 1021 ext/spl/spl_directory.c RETURN_STRINGL(fname, flen, 0); fname 1030 ext/spl/spl_directory.c char *suffix = 0, *fname; fname 1038 ext/spl/spl_directory.c php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), suffix, slen, &fname, &flen TSRMLS_CC); fname 1040 ext/spl/spl_directory.c RETURN_STRINGL(fname, flen, 0); fname 763 ext/standard/var.c zval fname; fname 797 ext/standard/var.c INIT_PZVAL(&fname); fname 798 ext/standard/var.c ZVAL_STRINGL(&fname, "__sleep", sizeof("__sleep") - 1, 0); fname 800 ext/standard/var.c res = call_user_function_ex(CG(function_table), &struc, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); fname 428 ext/standard/var_unserializer.c zval fname; fname 440 ext/standard/var_unserializer.c INIT_PZVAL(&fname); fname 441 ext/standard/var_unserializer.c ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1, 0); fname 443 ext/standard/var_unserializer.c call_user_function_ex(CG(function_table), rval, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); fname 459 ext/wddx/wddx.c zval **ent, *fname, **varname; fname 467 ext/wddx/wddx.c MAKE_STD_ZVAL(fname); fname 468 ext/wddx/wddx.c ZVAL_STRING(fname, "__sleep", 1); fname 474 ext/wddx/wddx.c if (call_user_function_ex(CG(function_table), &obj, fname, &retval, 0, 0, 1, NULL TSRMLS_CC) == SUCCESS) { fname 545 ext/wddx/wddx.c zval_dtor(fname); fname 546 ext/wddx/wddx.c FREE_ZVAL(fname); fname 959 ext/wddx/wddx.c zval *fname, *retval = NULL; fname 961 ext/wddx/wddx.c MAKE_STD_ZVAL(fname); fname 962 ext/wddx/wddx.c ZVAL_STRING(fname, "__wakeup", 1); fname 964 ext/wddx/wddx.c call_user_function_ex(NULL, &ent1->data, fname, &retval, 0, 0, 0, NULL TSRMLS_CC); fname 966 ext/wddx/wddx.c zval_dtor(fname); fname 967 ext/wddx/wddx.c FREE_ZVAL(fname); fname 41 ext/zip/lib/zip_fopen.c zip_fopen(struct zip *za, const char *fname, zip_flags_t flags) fname 45 ext/zip/lib/zip_fopen.c if ((idx=zip_name_locate(za, fname, flags)) < 0) fname 41 ext/zip/lib/zip_fopen_encrypted.c zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password) fname 45 ext/zip/lib/zip_fopen_encrypted.c if ((idx=zip_name_locate(za, fname, flags)) < 0) fname 46 ext/zip/lib/zip_name_locate.c zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags) fname 48 ext/zip/lib/zip_name_locate.c return _zip_name_locate(za, fname, flags, &za->error); fname 54 ext/zip/lib/zip_name_locate.c _zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags, struct zip_error *error) fname 63 ext/zip/lib/zip_name_locate.c if (fname == NULL) { fname 83 ext/zip/lib/zip_name_locate.c if (cmp(fname, fn) == 0) { fname 44 ext/zip/lib/zip_source_file.c zip_source_file(struct zip *za, const char *fname, zip_uint64_t start, fname 50 ext/zip/lib/zip_source_file.c if (fname == NULL || len < -1) { fname 55 ext/zip/lib/zip_source_file.c return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL); fname 45 ext/zip/lib/zip_source_filep.c char *fname; /* name of file to copy from */ fname 79 ext/zip/lib/zip_source_filep.c _zip_source_file_or_p(struct zip *za, const char *fname, FILE *file, fname 86 ext/zip/lib/zip_source_filep.c if (file == NULL && fname == NULL) { fname 96 ext/zip/lib/zip_source_filep.c f->fname = NULL; fname 97 ext/zip/lib/zip_source_filep.c if (fname) { fname 98 ext/zip/lib/zip_source_filep.c if ((f->fname=strdup(fname)) == NULL) { fname 107 ext/zip/lib/zip_source_filep.c f->closep = f->fname ? 1 : closep; fname 136 ext/zip/lib/zip_source_filep.c if (z->fname) { fname 137 ext/zip/lib/zip_source_filep.c if ((z->f=fopen(z->fname, "rb")) == NULL) { fname 186 ext/zip/lib/zip_source_filep.c if (z->fname) { fname 207 ext/zip/lib/zip_source_filep.c err = stat(z->fname, &fst); fname 240 ext/zip/lib/zip_source_filep.c free(z->fname); fname 41 ext/zip/lib/zip_stat.c zip_stat(struct zip *za, const char *fname, zip_flags_t flags, struct zip_stat *st) fname 45 ext/zip/lib/zip_stat.c if ((idx=zip_name_locate(za, fname, flags)) < 0) fname 812 sapi/phpdbg/phpdbg_bp.c const char *fname; fname 827 sapi/phpdbg/phpdbg_bp.c fname = ops->function_name; fname 829 sapi/phpdbg/phpdbg_bp.c if (!fname) { fname 830 sapi/phpdbg/phpdbg_bp.c fname = "main"; fname 833 sapi/phpdbg/phpdbg_bp.c if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], fname, strlen(fname), (void**)&brake) == SUCCESS) { fname 63 sapi/phpdbg/phpdbg_info.c char *fname; fname 69 sapi/phpdbg/phpdbg_info.c while (zend_hash_get_current_key_ex(&EG(included_files), &fname, fname 71 sapi/phpdbg/phpdbg_info.c phpdbg_writeln("File: %s", fname); fname 86 sapi/phpdbg/phpdbg_prompt.c zval fname, *fretval; fname 89 sapi/phpdbg/phpdbg_prompt.c ZVAL_STRINGL(&fname, name->str, name->len, 1); fname 95 sapi/phpdbg/phpdbg_prompt.c fci.function_name = &fname; fname 180 sapi/phpdbg/phpdbg_prompt.c zval_dtor(&fname); fname 531 sapi/phpdbg/phpdbg_prompt.c zval fname, fname 549 sapi/phpdbg/phpdbg_prompt.c ZVAL_STRINGL(&fname, "__tostring", sizeof("__tostring")-1, 1); fname 552 sapi/phpdbg/phpdbg_prompt.c fci.function_name = &fname; fname 573 sapi/phpdbg/phpdbg_prompt.c zval_dtor(&fname); fname 170 sapi/phpdbg/phpdbg_utils.c PHPDBG_API const zend_function *phpdbg_get_function(const char *fname, const char *cname TSRMLS_DC) /* {{{ */ fname 173 sapi/phpdbg/phpdbg_utils.c size_t fname_len = strlen(fname); fname 174 sapi/phpdbg/phpdbg_utils.c char *lcname = zend_str_tolower_dup(fname, fname_len);