Lines Matching refs:ext

41 	char *ext;  in phar_file_type()  local
43 ext = strrchr(file, '.'); in phar_file_type()
44 if (!ext) { in phar_file_type()
49 ++ext; in phar_file_type()
50 if (SUCCESS != zend_hash_find(mimes, ext, strlen(ext), (void **) &mime)) { in phar_file_type()
844 char *ext = zend_memrchr(entry, '.', entry_len); local
847 if (ext) {
848 ++ext;
850 if (SUCCESS == zend_hash_find(Z_ARRVAL_P(mimeoverride), ext, strlen(ext)+1, (void **) &val)) {
2089 static zval *phar_rename_archive(phar_archive_data *phar, char *ext, zend_bool compress TSRMLS_DC) … argument
2098 int ext_len = ext ? strlen(ext) : 0;
2103 if (!ext) {
2107 ext = "zip";
2109 ext = "phar.zip";
2117 ext = "tar.gz";
2119 ext = "phar.tar.gz";
2124 ext = "tar.bz2";
2126 ext = "phar.tar.bz2";
2131 ext = "tar";
2133 ext = "phar.tar";
2140 ext = "phar.gz";
2143 ext = "phar.bz2";
2146 ext = "phar";
2149 } else if (phar_path_check(&ext, &ext_len, &pcr_error) > pcr_is_ok) {
2152 …eption, 0 TSRMLS_CC, "data phar converted from \"%s\" has invalid extension %s", phar->fname, ext);
2154 …llException, 0 TSRMLS_CC, "phar converted from \"%s\" has invalid extension %s", phar->fname, ext);
2159 if (ext[0] == '.') {
2160 ++ext;
2169 spprintf(&newname, 0, "%s.%s", strtok(basename, "."), ext);
2177 phar->ext = newpath + phar->fname_len - strlen(ext) - 1;
2215 …if (SUCCESS != phar_detect_phar_fname_ext(newpath, phar->fname_len, (const char **) &(phar->ext), …
2217 …_ce_BadMethodCallException, 0 TSRMLS_CC, "phar \"%s\" has invalid extension %s", phar->fname, ext);
2235 …if (SUCCESS != phar_detect_phar_fname_ext(newpath, phar->fname_len, (const char **) &(phar->ext), …
2237 …adMethodCallException, 0 TSRMLS_CC, "data phar \"%s\" has invalid extension %s", phar->fname, ext);
2284 static zval *phar_convert_to_other(phar_archive_data *source, int convert, char *ext, php_uint32 fl… argument
2412 if ((ret = phar_rename_archive(phar, ext, 0 TSRMLS_CC))) {
2433 char *ext = NULL; local
2441 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|lls", &format, &method, &ext, &ext_len) == …
2518 ret = phar_convert_to_other(phar_obj->arc.archive, format, ext, flags TSRMLS_CC);
2536 char *ext = NULL; local
2544 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|lls", &format, &method, &ext, &ext_len) == …
2620 ret = phar_convert_to_other(phar_obj->arc.archive, format, ext, flags TSRMLS_CC);
3273 char *ext = NULL; local
3279 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &method, &ext, &ext_len) == FAILURE) {
3323 ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_TAR, ext, flags TSRMLS_CC);
3325 ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_PHAR, ext, flags TSRMLS_CC);
3341 char *ext = NULL; local
3346 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &ext, &ext_len) == FAILURE) {
3363 …ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_TAR, ext, PHAR_FILE_COMPRESSED_NONE…
3365 …ret = phar_convert_to_other(phar_obj->arc.archive, PHAR_FORMAT_PHAR, ext, PHAR_FILE_COMPRESSED_NON…