Searched refs:filename (Results 1 - 25 of 182) sorted by relevance

12345678

/PHP_5_6/ext/fileinfo/libmagic/
H A Dapptype.c5 * Notes: 1. Qualify the filename so that DosQueryAppType does not do extraneous
13 * 3. apptype() uses the filename if given, otherwise a tmp file is created with
51 char *filename; local
55 filename = strdup(fn);
56 else if ((filename = tempnam("./", "tmp")) == NULL) {
60 /* qualify the filename to prevent extraneous searches */
61 _splitpath(filename, drive, dir, fname, ext);
84 free(filename);
/PHP_5_6/ext/phar/tests/zip/files/
H A Dcorrupt_zipmaker.php.inc87 private function getFileEntry($compmethod, $mtime, $crc32, $complength, $uncomplength, $filename, $data, $corrupt, $fakecomp)
93 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
94 $filename .
100 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
101 $filename .
107 pack("VVVvv", $crc32, $complength, $uncomplength, strlen($filename), 0x00) .
108 $filename .
114 pack("VVVvv", $crc32 + 1, $complength, $uncomplength, strlen($filename), 0x00) .
115 $filename .
121 pack("VVVvv", $crc32, $complength + 1, $uncomplength, strlen($filename),
[all...]
/PHP_5_6/ext/spl/examples/
H A Dfindfile.inc23 /** @internal filename to find */
26 /** Construct from path and filename
48 /** @return whether the current file matches the given filename
55 /** @return the filename to search for.
/PHP_5_6/Zend/
H A Dzend_dtrace.c30 return EG(current_execute_data)->op_array->filename;
39 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
41 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
50 const char *scope, *filename, *funcname, *classname; local
51 scope = filename = funcname = classname = NULL;
53 /* we need filename and lineno for both execute and function probes */
56 filename = dtrace_get_executed_filename(TSRMLS_C);
66 DTRACE_EXECUTE_ENTRY((char *)filename, lineno);
70 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
76 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, linen
87 const char *filename; local
[all...]
H A Dzend_language_scanner.h38 char *filename; member in struct:_zend_lex_state
63 ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
/PHP_5_6/ext/zip/examples/
H A Dcreate.php9 $filename = "./test112.zip"; variable
11 if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
12 exit("cannot open <$filename>\n");
14 echo "file <$filename> OK\n";
H A Ddir.php14 echo "filename: " . $za->filename . "\n";
H A Dextract.php8 echo $zip->filename . "\n";
18 echo $zip->filename . "\n";
H A DextractAll.php4 echo $zip->filename . "\n";
14 echo $zip->filename . "\n";
/PHP_5_6/ext/gd/libgd/
H A Dtestac.c14 char *filename);
31 fprintf (stderr, "Usage: testac filename.png\n");
76 char *filename)
110 out = fopen (filename, "wb");
71 testDrawing( gdImagePtr im_in, double scale, int blending, int palette, char *filename) argument
/PHP_5_6/scripts/dev/generate-phpt/src/
H A DgtCodeSnippet.php18 $filename = dirname(__FILE__) . '/codeSnippets/' . $name . '.txt'; variable
20 if (!file_exists($filename)) {
24 $lines = file($filename);
40 $filename = dirname(__FILE__) . '/codeSnippets/' . $name . '.txt'; variable
42 if (!file_exists($filename)) {
46 $text = file($filename);
H A DgtText.php17 $filename = dirname(__FILE__) . '/texts/' . $name . '.txt'; variable
19 if (!file_exists($filename)) {
23 return file_get_contents($filename);
/PHP_5_6/ext/zip/lib/
H A Dzip_set_name.c89 _zip_string_free(e->changes->filename);
90 e->changes->filename = NULL;
95 changed = !_zip_string_equal(e->orig->filename, str);
107 e->changes->filename = str;
/PHP_5_6/ext/opcache/
H A Dzend_accelerator_blacklist.h45 void zend_accel_blacklist_load(zend_blacklist *blacklist, char *filename);
/PHP_5_6/ext/phar/
H A Dphp_phar.h37 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC);
H A Dtar.c107 /* assume that the first filename in a tar won't begin with <?php */
180 if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.metadata.bin", sizeof(".phar/.metadata.bin")-1)) {
183 } else if (entry->filename_len >= sizeof(".phar/.metadata/") + sizeof("/.metadata.bin") - 1 && SUCCESS == zend_hash_find(&(entry->phar->manifest), entry->filename + sizeof(".phar/.metadata/") - 1, entry->filename_len - (sizeof("/.metadata.bin") - 1 + sizeof(".phar/.metadata/") - 1), (void *)&mentry)) {
350 entry.filename = pemalloc(entry.filename_len+1, myphar->is_persistent);
352 read = php_stream_read(fp, entry.filename, entry.filename_len);
354 efree(entry.filename);
362 entry.filename[entry.filename_len] = '\0';
370 efree(entry.filename);
382 efree(entry.filename);
415 entry.filename
[all...]
H A Dzip.c71 /* skip symlink filename - we may add this support in later */
384 PHAR_ZIP_FAIL("Cannot process zips created from stdin (zero-length filename)");
388 entry.filename = (char *) pemalloc(entry.filename_len + 1, entry.is_persistent);
390 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) {
391 pefree(entry.filename, entry.is_persistent);
392 PHAR_ZIP_FAIL("unable to read in filename from central directory, truncated");
395 entry.filename[entry.filename_len] = '\0';
397 if (entry.filename[entry.filename_len - 1] == '/') {
405 if (entry.filename_len == sizeof(".phar/signature.bin")-1 && !strncmp(entry.filename, ".phar/signature.bin", sizeof(".phar/signature.bin")-1)) {
412 pefree(entry.filename, entr
[all...]
/PHP_5_6/ext/standard/
H A Ddl.c56 char *filename; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
78 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension=%s in your php.ini", filename);
81 php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "dl() is deprecated - use extension=%s in your php.ini", filename);
85 php_dl(filename, MODULE_TEMPORARY, return_value, 0 TSRMLS_CC);
102 PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC) argument
123 /* Check if passed filename contains directory separators */
124 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) {
127 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Temporary module name should contain only filename");
[all...]
H A Ddl.h26 PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC);
H A Dfilestat.c422 char *filename; local
431 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pz/", &filename, &filename_len, &group) == FAILURE) {
435 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0 TSRMLS_CC);
436 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) {
450 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL TSRMLS_CC)) {
481 if (php_check_open_basedir(filename TSRMLS_CC)) {
487 ret = VCWD_LCHOWN(filename, -1, gid);
490 ret = VCWD_CHOWN(filename, -1, gid);
502 /* {{{ proto bool chgrp(string filename, mixed group)
510 /* {{{ proto bool lchgrp(string filename, mixe
559 char *filename; local
669 char *filename; local
715 char *filename; local
803 php_clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len TSRMLS_DC) argument
831 char *filename = NULL; local
849 php_stat(const char *filename, php_stat_len filename_length, int type, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_5_6/main/
H A Dfopen_wrappers.c138 When open_basedir is not NULL, check if the given filename is located in
362 char *filename = NULL; local
401 spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATOR, s + 1); /* Safe */
403 filename = SG(request_info).path_translated;
414 filename = emalloc(length + path_len + 2);
415 if (filename) {
416 memcpy(filename, PG(doc_root), length);
417 if (!IS_SLASH(filename[length - 1])) { /* length is never 0 */
418 filename[length++] = PHP_DIR_SEPARATOR;
423 strncpy(filename
473 php_resolve_path(const char *filename, int filename_length, const char *path TSRMLS_DC) argument
611 php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC) argument
[all...]
H A Dfopen_wrappers.h37 /* {{{ OPENBASEDIR_CHECKPATH(filename) to ease merge between 6.x and 5.x */
39 # define OPENBASEDIR_CHECKPATH(filename) \
40 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
42 #define OPENBASEDIR_CHECKPATH(filename) \
43 php_check_open_basedir(filename TSRMLS_CC)
49 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC);
51 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC);
/PHP_5_6/main/streams/
H A Dphp_stream_plain_wrapper.h30 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, char **opened_path, int options STREAMS_DC TSRMLS_DC);
31 #define php_stream_fopen(filename, mode, opened) _php_stream_fopen((filename), (mode), (opened), 0 STREAMS_CC TSRMLS_CC)
33 PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path, int options STREAMS_DC TSRMLS_DC);
34 #define php_stream_fopen_with_path(filename, mode, path, opened) _php_stream_fopen_with_path((filename), (mode), (path), (opened), 0 STREAMS_CC TSRMLS_CC)
/PHP_5_6/sapi/apache2filter/
H A Dphp_functions.c46 static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC)
50 if (!filename) {
55 return ap_sub_req_lookup_uri(filename, ctx->f->r, ctx->f->next);
62 char *filename; local
66 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
70 if (!(rr = php_apache_lookup_uri(filename TSRMLS_CC))) {
71 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - URI lookup failed", filename);
77 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", filename);
85 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - error finding URI", filename);
101 char *filename; local
[all...]
/PHP_5_6/ext/zip/
H A Dphp_zip.h54 /* {{{ ZIP_OPENBASEDIR_CHECKPATH(filename) */
56 # define ZIP_OPENBASEDIR_CHECKPATH(filename) \
57 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC)
59 #define ZIP_OPENBASEDIR_CHECKPATH(filename) \
60 php_check_open_basedir(filename TSRMLS_CC)
89 char *filename; member in struct:_ze_zip_object
94 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC TSRMLS_DC);

Completed in 118 milliseconds

12345678