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

1234567

/PHP_TRUNK/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_TRUNK/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_TRUNK/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";
H A Dset_compression.php8 $filename = "a.zip"; variable
10 if (!$zip->open($filename, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
11 exit("cannot open <$filename>\n");
/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/phar/
H A Dphp_phar.h37 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len);
/PHP_TRUNK/ext/standard/
H A Ddl.h26 PHPAPI int php_load_extension(char *filename, int type, int start_now);
H A Ddl.c56 char *filename; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &filename, &filename_len) == FAILURE) {
73 php_dl(filename, MODULE_TEMPORARY, return_value, 0);
90 PHPAPI int php_load_extension(char *filename, int type, int start_now) argument
111 /* Check if passed filename contains directory separators */
112 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) {
115 php_error_docref(NULL, E_WARNING, "Temporary module name should contain only filename");
118 libpath = estrdup(filename);
123 spprintf(&libpath, 0, "%s%s", extension_dir, filename); /* SAF
[all...]
H A Dfilestat.c410 char *filename; local
419 if (zend_parse_parameters(ZEND_NUM_ARGS(), "pz/", &filename, &filename_len, &group) == FAILURE) {
423 wrapper = php_stream_locate_url_wrapper(filename, NULL, 0);
424 if(wrapper != &php_plain_files_wrapper || strncasecmp("file://", filename, 7) == 0) {
438 if(wrapper->wops->stream_metadata(wrapper, filename, option, value, NULL)) {
469 if (php_check_open_basedir(filename)) {
475 ret = VCWD_LCHOWN(filename, -1, gid);
478 ret = VCWD_CHOWN(filename, -1, gid);
490 /* {{{ proto bool chgrp(string filename, mixed group)
498 /* {{{ proto bool lchgrp(string filename, mixe
547 char *filename; local
657 char *filename; local
703 char *filename; local
791 php_clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len) argument
819 char *filename = NULL; local
837 php_stat(const char *filename, php_stat_len filename_length, int type, zval *return_value) argument
[all...]
/PHP_TRUNK/main/
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)
42 #define OPENBASEDIR_CHECKPATH(filename) \
43 php_check_open_basedir(filename)
49 PHPAPI zend_string *php_resolve_path(const char *filename, int filename_len, const char *path);
51 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path);
H A Dfopen_wrappers.c134 When open_basedir is not NULL, check if the given filename is located in
358 char *filename = NULL; local
397 spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATOR, s + 1); /* Safe */
399 filename = SG(request_info).path_translated;
410 filename = emalloc(length + path_len + 2);
411 if (filename) {
412 memcpy(filename, PG(doc_root), length);
413 if (!IS_SLASH(filename[length - 1])) { /* length is never 0 */
414 filename[length++] = PHP_DIR_SEPARATOR;
419 strncpy(filename
479 php_resolve_path(const char *filename, int filename_length, const char *path) argument
618 php_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path) argument
[all...]
/PHP_TRUNK/main/streams/
H A Dphp_stream_plain_wrapper.h30 PHPAPI php_stream *_php_stream_fopen(const char *filename, const char *mode, zend_string **opened_path, int options STREAMS_DC);
31 #define php_stream_fopen(filename, mode, opened) _php_stream_fopen((filename), (mode), (opened), 0 STREAMS_CC)
33 PHPAPI php_stream *_php_stream_fopen_with_path(const char *filename, const char *mode, const char *path, zend_string **opened_path, int options STREAMS_DC);
34 #define php_stream_fopen_with_path(filename, mode, path, opened) _php_stream_fopen_with_path((filename), (mode), (path), (opened), 0 STREAMS_CC)
/PHP_TRUNK/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_TRUNK/ext/zip/lib/
H A Dzip_set_name.c85 _zip_string_free(e->changes->filename);
86 e->changes->filename = NULL;
91 changed = !_zip_string_equal(e->orig->filename, str);
103 e->changes->filename = str;
/PHP_TRUNK/ext/zip/
H A Dphp_zip.h50 /* {{{ ZIP_OPENBASEDIR_CHECKPATH(filename) */
52 # define ZIP_OPENBASEDIR_CHECKPATH(filename) \
53 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename)
55 #define ZIP_OPENBASEDIR_CHECKPATH(filename) \
56 php_check_open_basedir(filename)
81 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);
/PHP_TRUNK/Zend/
H A Dzend_language_scanner.h38 zend_string *filename; member in struct:_zend_lex_state
69 ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename);
H A Dzend_dtrace.c35 return ZSTR_VAL(ex->func->op_array.filename);
44 DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, (char *)file_handle->filename);
46 DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, (char *)file_handle->filename);
55 const char *scope, *filename, *funcname, *classname; local
56 scope = filename = funcname = classname = NULL;
58 /* we need filename and lineno for both execute and function probes */
61 filename = dtrace_get_executed_filename();
71 DTRACE_EXECUTE_ENTRY((char *)filename, lineno);
75 DTRACE_FUNCTION_ENTRY((char *)funcname, (char *)filename, lineno, (char *)classname, (char *)scope);
81 DTRACE_FUNCTION_RETURN((char *)funcname, (char *)filename, linen
92 const char *filename; local
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_file_cache.c154 static int zend_file_cache_mkdir(char *filename, size_t start) argument
156 char *s = filename + start;
162 if (mkdir(filename, S_IRWXU) < 0 && errno != EEXIST) {
460 SERIALIZE_STR(op_array->filename);
670 char *filename; local
673 filename = emalloc(len + 33 + ZSTR_LEN(script_path) + sizeof(SUFFIX));
674 memcpy(filename, ZCG(accel_directives).file_cache, len);
676 filename[len] = '/';
677 memcpy(filename + len + 1, ZCG(system_id), 32);
678 memcpy(filename
702 char *filename; local
1191 char *filename; local
1347 char *filename; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.h35 zend_string *filename; member in struct:_phpdbg_oplog_entry
H A Dphpdbg_list.c110 if (ce->info.user.filename) {
111 phpdbg_list_file(ce->info.user.filename, ce->info.user.line_end - ce->info.user.line_start + 1, ce->info.user.line_start, 0);
125 void phpdbg_list_file(zend_string *filename, uint count, int offset, uint highlight) /* {{{ */ argument
132 if (VCWD_REALPATH(ZSTR_VAL(filename), resolved_path_buf)) {
135 abspath = ZSTR_VAL(filename);
154 phpdbg_xml("<list %r file=\"%s\">", filename);
190 phpdbg_list_file(ops->filename, ops->line_end - ops->line_start + 1, ops->line_start, 0);
238 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); local
252 data.filename
285 zend_hash_str_add_ptr(&PHPDBG_G(file_sources), filename, strlen(filename), dataptr); local
295 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); local
[all...]

Completed in 63 milliseconds

1234567