/PHP-5.4/ext/standard/tests/file/ |
H A D | fopen_variation6.phpt | 2 Test fopen() function : variation: use include path and stream context relative/absolute file 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 18 fwrite($h, "This is an absolute file"); 22 fwrite($h, "This is a relative file"); 42 This is an absolute file 43 This is a relative file
|
H A D | fseek_variation3.phpt | 2 Test fseek() function : variation functionality beyond file boundaries 8 * Description: Seek on a file pointer 9 * Source code: ext/standard/file.c 13 echo "*** Testing fseek() : variation - beyond file boundaries ***\n"; 22 echo "--- fseek beyond start of file ---\n"; 30 echo "--- fseek beyond end of file ---\n"; 43 *** Testing fseek() : variation - beyond file boundaries *** 44 --- fseek beyond start of file --- 51 --- fseek beyond end of file ---
|
H A D | lstat_stat_variation11.phpt | 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 20 require "$file_path/file.inc"; 22 /* test the effects of is_file() on stats of a file */ 24 /* create temp file */ 26 $fp = fopen($filename, "w"); // temp file 29 // is_file() on a file 30 echo "*** Testing stat() on a file after using is_file() on it ***\n"; 54 *** Testing stat() on a file after using is_file() on it ***
|
H A D | lstat_stat_variation16.phpt | 2 Test lstat() and stat() functions: usage variations - effects changing permissions of file 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 19 /* test the effects on stats with changing permissions of file */ 22 require "$file_path/file.inc"; 25 $fp = fopen($filename, "w"); // temp file 28 // checking stat() on file after changing its permission 29 echo "*** Testing lstat() on a file after changing its access permission ***\n"; 52 *** Testing lstat() on a file after changing its access permission ***
|
H A D | lstat_stat_variation7.phpt | 2 Test lstat() and stat() functions: usage variations - writing data into file 12 Description: Gives information about a file or symbolic link 15 Description: Gives information about a file 19 require "$file_path/file.inc"; 21 /* test the effects on stats with writing data into a file */ 24 $fp = fopen($file_name, "w"); // temp file 27 // writing to an empty file 28 echo "*** Testing stat() on file after data is written in it ***\n"; 52 *** Testing stat() on file after data is written in it ***
|
H A D | fgetc_variation2.phpt | 7 Description: Gets character from file pointer 11 - closed file handle 12 - unset file handle 16 include ("file.inc"); 21 // open the file for reading 23 // close the file 26 // read from closed file 30 // open the file for reading 32 // unset the file handle
|
H A D | bug53848.phpt | 5 $file = dirname(__FILE__) . "/bug39538.csv"; 6 @unlink($file); 7 file_put_contents($file, "a,b\n c, d"); 8 $fp = fopen($file, "r"); 11 @unlink($file);
|
H A D | stat_variation4-win32.phpt | 14 * Description: Gives information about a file 17 /* test the effects on the stats of dir/file for using is_dir() & is_file() on dir/file */ 20 require "$file_path/file.inc"; 23 /* create temp file and directory */ 26 $file_handle = fopen("$file_path/stat_variation4.tmp", "w"); // temp file 30 echo "\n*** Testing stat(): on file and directory after accessing it 52 // is_file() on a file 53 echo "-- Testing on file --\n"; 79 *** Testing stat(): on file and directory after accessing it 86 -- Testing on file --
|
H A D | file_variation5-win32.phpt | 2 file() with various paths 23 echo "file() on a path containing .. and .\n"; 24 var_dump(file("./$test_dirname/../$filename")); 27 var_dump(file("./$test_dirname/bad_dir/../../$filename")); 31 var_dump(file("../$filename")); 40 file() on a path containing .. and . 52 file() on a path containing .. with invalid directories 64 file() on a relative path from a different working directory
|
H A D | rename_variation5.phpt | 18 //create a file 29 echo "\n-- Renaming file to same file name --\n"; 37 echo "\n-- Renaming existing link to existing file name --\n"; 40 echo "\n-- Renaming existing file to existing directory name --\n"; 42 echo "\n-- Renaming existing file to existing link name --\n"; 45 echo "\n-- Renaming existing directory to existing file name --\n"; 65 -- Renaming file to same file name -- 76 -- Renaming existing link to existing file name -- 79 -- Renaming existing file to existing directory name -- 84 -- Renaming existing file to existing link name -- [all …]
|
H A D | rename_variation3-win32.phpt | 12 Description: Renames a file or directory 15 require dirname(__FILE__).'/file.inc'; 22 /* test rename() by trying to rename an existing file/dir to the same name 32 echo "\n-- Renaming file to same file name --\n"; 40 echo "\n-- Renaming existing file to existing directory name --\n"; 45 echo "\n-- Renaming existing directory to existing file name --\n"; 64 -- Renaming file to same file name -- 72 -- Renaming existing file to existing directory name -- 79 -- Renaming existing directory to existing file name --
|
H A D | file_put_contents_variation9.phpt | 12 /* Prototype : int file_put_contents(string file, mixed data [, int flags [, resource context]]) 13 * Description: Write/Create a file with contents data and return the number of bytes written 14 * Source code: ext/standard/file.c 26 // link files even though it original file doesn't exist yet 35 //can only create a hardlink if the file exists. 46 function run_test($file) { 49 var_dump(file_put_contents($file, $data)); 50 var_dump(file_put_contents($file, $extra, FILE_APPEND)); 51 readfile($file);
|
H A D | fopen_variation16.phpt | 2 Test fopen() function : variation: use include path create and read a file (relative) 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 43 fwrite($h, (binary) "This is the test file"); 57 echo "could not find file for reading\n"; 60 echo "found file - not in dir1\n"; 72 found file - not in dir1 74 found file - not in dir1
|
H A D | fopen_variation17.phpt | 2 Test fopen() function : variation: use include path create and read a file (relative) 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 42 fwrite($h, (binary) "This is the test file"); 56 echo "could not find file for reading\n"; 59 echo "found file for reading\n"; 71 found file for reading 73 found file for reading
|
/PHP-5.4/scripts/dev/ |
H A D | conv_proto | 18 for file in ${1+"$@"} ; do 19 echo "working on $file" 20 cat $file | \ 25 cp $tmpfile $file
|
/PHP-5.4/ext/dba/ |
H A D | dba_cdb.c | 54 php_stream *file; member 57 int file; member 66 php_stream* file = 0; in DBA_OPEN_FUNC() local 69 int file = 0; in DBA_OPEN_FUNC() 78 file = info->fp; in DBA_OPEN_FUNC() 81 if (file < 0) { in DBA_OPEN_FUNC() 90 file = info->fp; in DBA_OPEN_FUNC() 109 cdb_init(&cdb->c, file TSRMLS_CC); in DBA_OPEN_FUNC() 113 cdb_init(&cdb->c, file); in DBA_OPEN_FUNC() 115 cdb->file = file; in DBA_OPEN_FUNC() [all …]
|
/PHP-5.4/ext/spl/examples/ |
H A D | findfile.inc | 3 /** @file findfile.inc 24 private $file; 31 * @param $file the name of the files to search fro 33 function __construct($path, $file) 35 $this->file = $file; 48 /** @return whether the current file matches the given filename 52 return !strcmp($this->current(), $this->file); 61 return $this->file;
|
/PHP-5.4/ext/phar/tests/ |
H A D | phar_stub.phpt | 12 $file = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>'; 21 $file = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>'; 24 echo fread($fp, strlen($file)) . "\n"; 27 $file = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>'; 30 $phar->setStub($file); 32 echo fread($fp, strlen($file)) . "\n"; 38 fwrite($fp, $file); 47 echo fread($fp, strlen($file)) . "\n"; 58 $phar->setStub($fp, strlen($file)); 62 echo fread($fp, strlen($file)) . "\n"; [all …]
|
H A D | phar_copy.phpt | 17 $iname = '/file.txt'; 79 file "notexisting" cannot be copied to file "another", file does not exist in %sphar_copy2.phar.php 80 file "a" cannot be copied to file "b", file must not already exist in phar %sphar_copy2.phar.php 82 file "d" cannot be copied to file ".phar/stub.php", cannot copy to Phar meta-file in %sphar_copy2.p… 83 file ".phar/stub.php" cannot be copied to file "d", cannot copy Phar meta-file in %sphar_copy2.phar…
|
/PHP-5.4/ext/standard/tests/url/ |
H A D | parse_url_basic_002.phpt | 54 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : string(4) "http" 78 --> zlib:/path/to/my/file/file.txt : string(4) "zlib" 84 --> file:///path/to/file : string(4) "file" 85 --> file://path/to/file : string(4) "file" 86 --> file:/path/to/file : string(4) "file" 103 --> file:///: : string(4) "file" 104 --> file:///a:/ : string(4) "file" 105 --> file:///ab:/ : string(4) "file" 106 --> file:///a:/ : string(4) "file" 107 --> file:///@:/ : string(4) "file" [all …]
|
H A D | urls.inc | 33 'http://www.php.net:80/this/is/a/very/deep/directory/../file.php', 57 'zlib:/path/to/my/file/file.txt', 63 'file:///path/to/file', 64 'file://path/to/file', 65 'file:/path/to/file', 82 'file:///:', 83 'file:///a:/', 84 'file:///ab:/', 85 'file:///a:/', 86 'file:///@:/', [all …]
|
/PHP-5.4/ext/standard/tests/general_functions/ |
H A D | bug41445_1.phpt | 6 $file = dirname(__FILE__)."/bug41445_1.ini"; 19 file_put_contents($file, $data); 21 var_dump(parse_ini_file($file, TRUE)); 22 var_dump(parse_ini_file($file)); 24 @unlink($file);
|
/PHP-5.4/sapi/cgi/tests/ |
H A D | 002.phpt | 14 $file = dirname(__FILE__)."/002.test.php"; 16 file_put_contents($file, '<?php var_dump(ini_get("max_execution_time")); ?>'); 18 var_dump(`$php -n -d max_execution_time=111 $file`); 19 var_dump(`$php -n -d max_execution_time=500 $file`); 20 var_dump(`$php -n -d max_execution_time=500 -d max_execution_time=555 $file`); 22 file_put_contents($file, '<?php var_dump(ini_get("max_execution_time")); var_dump(ini_get("upload_t… 24 var_dump(`$php -n -d upload_tmp_dir=/test/path -d max_execution_time=555 $file`); 26 unlink($file);
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | sha1_file.phpt | 7 * Description: Calculate the sha1 hash of a file 12 /* Creating an empty file */ 16 /* Creating a data file */ 20 /* Writing into file */ 22 $content = b"Add this to the file\n"; 25 echo "Cannot write to file ($filename)"; 58 echo "\n-- Raw Binary Output for Empty file as Argument --\n"; 108 -- Hexadecimal Output for Empty file as Argument -- 111 -- Raw Binary Output for Empty file as Argument -- 114 -- Hexadecimal Output for a valid file with some contents -- [all …]
|
/PHP-5.4/tests/basic/ |
H A D | rfc1867_max_file_uploads_empty_files_debug.phpt | 13 Content-Type: text/plain-file 18 Content-Type: text/plain-file 23 Content-Type: text/plain-file 28 Content-Type: text/plain-file 41 Notice: No file uploaded in Unknown on line 0 43 Notice: No file uploaded in Unknown on line 0 45 Warning: Uploaded file size 0 - file [file4=file4.txt] not saved in Unknown on line 0 91 string(15) "text/plain-file"
|