/PHP-8.0/ext/standard/tests/file/ |
H A D | symlink_link_linkinfo_is_link_variation6.phpt | 16 $filename = "$dirname/symlink_link_linkinfo_is_link_variation6.tmp"; 25 var_dump( symlink($filename, $linkname) ); // this link won't get created 33 var_dump( link($filename, $linkname) ); 46 $filename = "$dirname/symlink_link_linkinfo_is_link_variation6.tmp"; 47 if(file_exists($filename)) { 48 unlink($filename);
|
H A D | filesize_variation3.phpt | 8 $filename = $file_path."/filesize_variation3.tmp"; 9 $file_handle = fopen($filename, "w"); 17 for($size = filesize($filename); $size>=-1200; $size-=1200) { 18 $file_handle = fopen($filename, "r+"); 25 var_dump( filesize($filename) );
|
H A D | fscanf_variation47.phpt | 13 $filename = "$file_path/fscanf_variation47.tmp"; 14 $file_handle = fopen($filename, "w"); 16 exit("Error:failed to open file $filename"); 42 $file_handle = fopen($filename, "r"); 44 exit("Error:failed to open file $filename"); 72 $filename = "$file_path/fscanf_variation47.tmp"; 73 unlink($filename);
|
H A D | fscanf_variation10.phpt | 13 $filename = "$file_path/fscanf_variation10.tmp"; 14 $file_handle = fopen($filename, "w"); 16 exit("Error:failed to open file $filename"); 47 $file_handle = fopen($filename, "r"); 49 exit("Error:failed to open file $filename"); 77 $filename = "$file_path/fscanf_variation10.tmp"; 78 unlink($filename);
|
H A D | fscanf_variation29.phpt | 13 $filename = "$file_path/fscanf_variation29.tmp"; 14 $file_handle = fopen($filename, "w"); 16 exit("Error:failed to open file $filename"); 47 $file_handle = fopen($filename, "r"); 49 exit("Error:failed to open file $filename"); 77 $filename = "$file_path/fscanf_variation29.tmp"; 78 unlink($filename);
|
H A D | fscanf_variation35.phpt | 13 $filename = "$file_path/fscanf_variation35.tmp"; 14 $file_handle = fopen($filename, "w"); 16 exit("Error:failed to open file $filename"); 42 $file_handle = fopen($filename, "r"); 44 exit("Error:failed to open file $filename"); 72 $filename = "$file_path/fscanf_variation35.tmp"; 73 unlink($filename);
|
H A D | fscanf_variation4.phpt | 13 $filename = "$file_path/fscanf_variation4.tmp"; 14 $file_handle = fopen($filename, "w"); 16 exit("Error:failed to open file $filename"); 43 $file_handle = fopen($filename, "r"); 45 exit("Error:failed to open file $filename"); 73 $filename = "$file_path/fscanf_variation4.tmp"; 74 unlink($filename);
|
H A D | fscanf_variation41.phpt | 13 $filename = "$file_path/fscanf_variation41.tmp"; 14 $file_handle = fopen($filename, "w"); 16 exit("Error:failed to open file $filename"); 42 $file_handle = fopen($filename, "r"); 44 exit("Error:failed to open file $filename"); 72 $filename = "$file_path/fscanf_variation41.tmp"; 73 unlink($filename);
|
H A D | lstat_stat_variation14.phpt | 12 $filename = "$file_path/lstat_stat_variation14.tmp"; 13 $fp = fopen($filename, "w"); // temp file 22 var_dump( link($filename, $linkname) ); 23 $file_stat = stat($filename);
|
H A D | parse_ini_file_error.phpt | 9 $filename = 'string_val'; 12 var_dump( parse_ini_file($filename, $process_sections, $extra_arg) ); 15 $filename = __FILE__ . 'invalidfilename'; 16 var_dump( parse_ini_file($filename, $process_sections) );
|
/PHP-8.0/sapi/apache2handler/ |
H A D | php_functions.c | 62 static request_rec *php_apache_lookup_uri(char *filename) in php_apache_lookup_uri() argument 66 if (!filename || !ctx || !ctx->r) { in php_apache_lookup_uri() 70 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters); in php_apache_lookup_uri() 76 char *filename; in PHP_FUNCTION() local 80 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION() 84 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION() 85 php_error_docref(NULL, E_WARNING, "Unable to include '%s' - URI lookup failed", filename); in PHP_FUNCTION() 123 char *filename; in PHP_FUNCTION() local 126 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION() 130 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION() [all …]
|
/PHP-8.0/sapi/cli/tests/ |
H A D | 010.phpt | 15 $filename = __DIR__."/010.test.php"; 24 file_put_contents($filename, $code); 32 var_dump(`cat "$filename_txt" | "$php" -n -F "$filename"`);
|
/PHP-8.0/sapi/fuzzer/ |
H A D | fuzzer-execute.c | 50 static zend_op_array *(*orig_compile_string)(zend_string *source_string, const char *filename); 52 static zend_op_array *fuzzer_compile_string(zend_string *str, const char *filename) { in fuzzer_compile_string() argument 58 return orig_compile_string(str, filename); in fuzzer_compile_string()
|
/PHP-8.0/ext/fileinfo/tests/ |
H A D | bug57547.phpt | 12 foreach ($filenames as $filename) { 14 var_dump($finfo->file($filename)); 17 var_dump($finfo2->file($filename, FILEINFO_MIME));
|
H A D | finfo_file_002.phpt | 11 foreach (glob(__DIR__ . "/resources/*") as $filename) { 12 if (is_file($filename)) { 13 $results["$filename"] = finfo_file($fp, $filename);
|
/PHP-8.0/ext/session/tests/ |
H A D | session_set_save_handler_class_018.phpt | 43 foreach (glob($this->path . '*') as $filename) { 44 if (filemtime($filename) + $maxlifetime < time()) { 45 @unlink($filename); 52 return pathinfo(__FILE__)['filename']; 56 return pathinfo(__FILE__)['filename']===$id;
|
/PHP-8.0/ext/phar/ |
H A D | phar_object.stub.php | 11 …public function __construct(string $filename, int $flags = FilesystemIterator::SKIP_DOTS|Filesyste… argument 19 public function addFile(string $filename, ?string $localName = null) {} argument 162 …final public static function isValidPharFilename(string $filename, bool $executable = true): bool … argument 164 final public static function loadPhar(string $filename, ?string $alias = null): bool {} argument 174 final public static function unlinkArchive(string $filename): bool {} argument 184 …public function __construct(string $filename, int $flags = FilesystemIterator::SKIP_DOTS|Filesyste… argument 199 public function addFile(string $filename, ?string $localName = null) {} argument 453 …final public static function isValidPharFilename(string $filename, bool $executable = true): bool … argument 456 final public static function loadPhar(string $filename, ?string $alias = null): bool {} argument 471 final public static function unlinkArchive(string $filename): bool {} argument [all …]
|
H A D | func_interceptors.c | 26 char *filename; in PHAR_FUNC() local 43 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PHAR_FUNC() 94 char *filename; in PHAR_FUNC() local 139 entry = filename; in PHAR_FUNC() 234 char *filename; in PHAR_FUNC() local 270 entry = filename; in PHAR_FUNC() 371 entry = filename; in PHAR_FUNC() 768 char *filename; \ 838 char *filename; in PharFileFunction() local 868 entry = filename; in PharFileFunction() [all …]
|
/PHP-8.0/ext/zlib/tests/ |
H A D | gzopen_basic2.phpt | 15 $filename = "gzopen_basic2.txt.gz"; 21 $h = gzopen($filename, $mode); 25 $h = gzopen($filename, 'r'); 29 unlink($filename);
|
/PHP-8.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_exec_load_data.phpt | 24 $filename = $row['value'] . DIRECTORY_SEPARATOR . "pdo_mysql_exec_load_data.csv"; 26 if (file_exists($filename) && !is_writable($filename)) 27 die("skip {$filename} not writable"); 73 $filename = $row['value'] . DIRECTORY_SEPARATOR . "pdo_mysql_exec_load_data.csv"; 75 … $filename = MySQLPDOTest::getTempDir() . DIRECTORY_SEPARATOR . "pdo_mysql_exec_load_data.csv"; 78 $fp = fopen($filename, "w"); 83 …ILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filename)); 102 unlink($filename);
|
/PHP-8.0/ext/zip/tests/ |
H A D | bug76524.phpt | 12 $filename = __DIR__ . "/nonexistent" . ($i++) . ".zip"; 13 } while (file_exists($filename)); 16 $zip->open($filename, ZipArchive::CREATE | ZipArchive::OVERWRITE);
|
/PHP-8.0/tests/basic/ |
H A D | enable_post_data_reading_02.phpt | 8 Content-Disposition: form-data; name="file1"; filename="file1.txt" 26 Content-Disposition: form-data; name="file1"; filename="file1.txt" 32 Content-Disposition: form-data; name="file1"; filename="file1.txt"
|
/PHP-8.0/ext/gd/tests/ |
H A D | bug77195.phpt | 10 $filename = __DIR__ . '/bug77195.jpg'; 11 @imagecreatefromjpeg($filename); 12 imagecreatefromjpeg($filename);
|
/PHP-8.0/ext/com_dotnet/tests/ |
H A D | bug66322.phpt | 18 $filename = __DIR__ . '\\..\\' . basename(__DIR__) . '\\66322.docx'; 19 $ph->SaveToFile($filename); 20 var_dump(file_exists($filename));
|
/PHP-8.0/ext/curl/tests/ |
H A D | bug77711.phpt | 15 $filename = __DIR__ . '/АБВ.txt'; 16 file_put_contents($filename, "Test."); 17 $file = curl_file_create($filename);
|