| /PHP_5_3/ext/phar/tests/zip/files/ |
| H A D | corrupt_zipmaker.php.inc | 87 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_3/ext/spl/examples/ |
| H A D | findfile.inc | 23 /** @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_3/ext/zip/examples/ |
| H A D | create.php | 9 $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 D | dir.php | 14 echo "filename: " . $za->filename . "\n";
|
| H A D | extract.php | 8 echo $zip->filename . "\n"; 18 echo $zip->filename . "\n";
|
| H A D | extractAll.php | 4 echo $zip->filename . "\n"; 14 echo $zip->filename . "\n";
|
| /PHP_5_3/scripts/dev/generate-phpt/src/ |
| H A D | gtCodeSnippet.php | 18 $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 D | gtText.php | 17 $filename = dirname(__FILE__) . '/texts/' . $name . '.txt'; variable 19 if (!file_exists($filename)) { 23 return file_get_contents($filename);
|
| /PHP_5_3/win32/build/ |
| H A D | cvsclean.js | 52 function rm_r(filename) 54 if (FSO.FolderExists(filename)) { 55 var fc = new Enumerator(FSO.GetFolder(filename).SubFolders); 61 fc = new Enumerator(FSO.GetFolder(filename).Files); 67 FSO.DeleteFolder(filename, true); 68 } else if (FSO.FileExists(filename)) { 69 FSO.DeleteFile(filename, true); 72 var foldername = FSO.GetParentFolderName(filename); 77 var filename = FSO.GetFileName(filename); [all...] |
| H A D | svnclean.js | 52 function rm_r(filename) 54 if (FSO.FolderExists(filename)) { 55 var fc = new Enumerator(FSO.GetFolder(filename).SubFolders); 61 fc = new Enumerator(FSO.GetFolder(filename).Files); 67 FSO.DeleteFolder(filename, true); 68 } else if (FSO.FileExists(filename)) { 69 FSO.DeleteFile(filename, true); 72 var foldername = FSO.GetParentFolderName(filename); 77 var filename = FSO.GetFileName(filename); [all...] |
| /PHP_5_3/ext/fileinfo/libmagic/ |
| H A D | apptype.c | 5 * 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_3/ext/gd/libgd/ |
| H A D | testac.c | 14 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_3/ext/standard/ |
| H A D | dl.c | 56 char *filename; local 59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { 81 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not supported in multithreaded Web servers - use extension=%s in your php.ini", filename); 84 php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "dl() is deprecated - use extension=%s in your php.ini", filename); 88 php_dl(filename, MODULE_TEMPORARY, return_value, 0 TSRMLS_CC); 105 PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC) /* {{{ */ argument 126 /* Check if passed filename contains directory separators */ 127 if (strchr(filename, '/') != NULL || strchr(filename, DEFAULT_SLASH) != NULL) { 130 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Temporary module name should contain only filename"); [all...] |
| H A D | dl.h | 26 PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC);
|
| H A D | filestat.c | 396 char *filename; local 402 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/", &filename, &filename_len, &group) == FAILURE) { 406 if (strlen(filename) != filename_len) { 445 if (PG(safe_mode) &&(!php_checkuid(filename, NULL, CHECKUID_ALLOW_FILE_NOT_EXISTS))) { 450 if (php_check_open_basedir(filename TSRMLS_CC)) { 456 ret = VCWD_LCHOWN(filename, -1, gid); 459 ret = VCWD_CHOWN(filename, -1, gid); 471 /* {{{ proto bool chgrp(string filename, mixed group) 483 /* {{{ proto bool lchgrp(string filename, mixed group) 501 char *filename; local 608 char *filename; local 667 char *filename; local 735 php_clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len TSRMLS_DC) argument 764 char *filename = NULL; local 782 php_stat(const char *filename, php_stat_len filename_length, int type, zval *return_value TSRMLS_DC) argument [all...] |
| /PHP_5_3/ext/zip/ |
| H A D | php_zip.h | 46 /* {{{ ZIP_OPENBASEDIR_CHECKPATH(filename) */ 48 # define ZIP_OPENBASEDIR_CHECKPATH(filename) \ 49 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC) 51 #define ZIP_OPENBASEDIR_CHECKPATH(filename) \ 52 php_check_open_basedir(filename TSRMLS_CC) 80 char *filename; member in struct:_ze_zip_object 85 php_stream *php_stream_zip_open(char *filename, char *path, char *mode STREAMS_DC TSRMLS_DC);
|
| /PHP_5_3/main/ |
| H A D | fopen_wrappers.c | 139 When open_basedir is not NULL, check if the given filename is located in 416 char *filename = NULL; local 454 spprintf(&filename, 0, "%s%c%s%c%s", pw->pw_dir, PHP_DIR_SEPARATOR, PG(user_dir), PHP_DIR_SEPARATOR, s + 1); /* Safe */ 456 filename = SG(request_info).path_translated; 467 filename = emalloc(length + path_len + 2); 468 if (filename) { 469 memcpy(filename, PG(doc_root), length); 470 if (!IS_SLASH(filename[length - 1])) { /* length is never 0 */ 471 filename[length++] = PHP_DIR_SEPARATOR; 476 strncpy(filename 537 php_resolve_path(const char *filename, int filename_length, const char *path TSRMLS_DC) argument 679 php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC) argument [all...] |
| H A D | fopen_wrappers.h | 36 /* {{{ OPENBASEDIR_CHECKPATH(filename) to ease merge between 6.x and 5.x */ 38 # define OPENBASEDIR_CHECKPATH(filename) \ 39 (PG(safe_mode) && (!php_checkuid(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(filename TSRMLS_CC) 41 #define OPENBASEDIR_CHECKPATH(filename) \ 42 php_check_open_basedir(filename TSRMLS_CC) 48 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC); 50 PHPAPI FILE *php_fopen_with_path(const char *filename, const char *mode, const char *path, char **opened_path TSRMLS_DC);
|
| H A D | safe_mode.c | 48 PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags) argument 59 if (!filename) { 63 if (strlcpy(filenamecopy, filename, MAXPATHLEN)>=MAXPATHLEN) { 66 filename=(char *)&filenamecopy; 83 strcpy(ftest, filename); 85 strcpy(path, filename); 88 expand_filepath(filename, path TSRMLS_CC); 94 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); 99 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to access %s", filename); 114 /* Trim off filename */ 198 php_checkuid(const char *filename, const char *fopen_mode, int mode) argument [all...] |
| H A D | safe_mode.h | 36 PHPAPI int php_checkuid(const char *filename, const char *fopen_mode, int mode); 37 PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags);
|
| /PHP_5_3/main/streams/ |
| H A D | php_stream_plain_wrapper.h | 30 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(char *filename, char *mode, 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) STREAMS_CC TSRMLS_CC)
|
| /PHP_5_3/sapi/apache2filter/ |
| H A D | php_functions.c | 46 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, "s", &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_3/Zend/ |
| H A D | zend_language_scanner.h | 37 char *filename; member in struct:_zend_lex_state 61 ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename TSRMLS_DC);
|
| /PHP_5_3/ext/phar/ |
| H A D | tar.c | 107 /* 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 D | zip.c | 71 /* 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...] |