/PHP-7.0/ext/gd/tests/ |
H A D | webp_basic.phpt | 16 $filename = __DIR__ . '/webp_basic.webp'; 27 imagewebp($im1, $filename); 29 $im2 = imagecreatefromwebp($filename); 30 imagewebp($im2, $filename);
|
/PHP-7.0/ext/standard/tests/strings/ |
H A D | bug65947.phpt | 7 $filename = 'test.toto'; 11 $b2 = basename($filename); 12 if ($filename != $b2)
|
/PHP-7.0/ext/standard/tests/file/ |
H A D | fscanf_variation52.phpt | 33 $filename = "$file_path/fscanf_variation52.tmp"; 34 $file_handle = fopen($filename, "w"); 36 exit("Error:failed to open file $filename"); 41 $file_handle = fopen($filename, $mode); 43 exit("Error:failed to open file $filename"); 53 unlink($filename); 61 $filename = "$file_path/fscanf_variation52.tmp"; 62 if(file_exists($filename)) { 63 unlink($filename);
|
H A D | filesize_variation3-win32.phpt | 11 Prototype : int filesize ( string $filename ); 19 $filename = $file_path."/filesize_variation3.tmp"; 20 $file_handle = fopen($filename, "w"); 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 29 $file_handle = fopen($filename, "r+"); 32 var_dump( filesize($filename) );
|
H A D | filesize_variation3.phpt | 11 Prototype : int filesize ( string $filename ); 19 $filename = $file_path."/filesize_variation3.tmp"; 20 $file_handle = fopen($filename, "w"); 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 29 $file_handle = fopen($filename, "r+"); 32 var_dump( filesize($filename) );
|
H A D | fgetss.phpt | 6 $filename = dirname(__FILE__)."/fgetss.html"; 19 file_put_contents($filename, $str); 20 $fp = fopen($filename, "r"); 26 file_put_contents($filename, $str); 27 $fp = fopen($filename, "r"); 37 @unlink($filename);
|
H A D | pathinfo_basic.phpt | 82 [%u|b%"filename"]=> 97 [%u|b%"filename"]=> 112 [%u|b%"filename"]=> 127 [%u|b%"filename"]=> 142 [%u|b%"filename"]=> 157 [%u|b%"filename"]=> 172 [%u|b%"filename"]=> 187 [%u|b%"filename"]=> 202 [%u|b%"filename"]=> 217 [%u|b%"filename"]=> [all …]
|
H A D | bug47767.phpt | 24 $filename = __DIR__ . '\\a.php'; 26 file_put_contents($filename, $content); 28 symlink($filename, $softlinkname); 29 include_once("$filename"); 43 unlink($filename);
|
H A D | fgetcsv_variation23.phpt | 16 $filename = dirname(__FILE__) . '/fgetcsv_variation23.tmp'; 17 $fp = fopen ($filename, "w"); 19 $fp = fopen ($filename, "r"); 21 echo "Error: failed to create file $filename!\n"; 35 unlink($filename);
|
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 14 Prototype: bool is_link ( string $filename ); 33 $filename = "$file_path/symlink__link_linkinfo_is_link_variation4.tmp"; 35 $file = fopen($filename, "w"); 43 var_dump( link($filename, $linkname) ); 48 if( filesize($filename) == filesize($linkname) ) 60 $data_from_file = file_get_contents($filename); 64 if( filesize($filename) == filesize($linkname) ) 71 $file = fopen($filename, "w"); 80 var_dump( filesize($filename) ); 82 if( filesize($filename) == filesize($linkname) ) [all …]
|
H A D | readfile_variation1.phpt | 5 /* Prototype: int readfile ( string $filename [, bool $use_include_path [, resource $context]] ); 21 $filename = "$file_path/readfile_variation1.tmp"; 24 $fp = fopen($filename, "w"); 27 $count = readfile($filename, true, $context);
|
/PHP-7.0/tests/basic/ |
H A D | bug20539.phpt | 13 $filename = __DIR__ . '/sess_' . session_id(); 14 var_dump(file_exists($filename)); 15 @unlink($filename);
|
/PHP-7.0/ext/hash/tests/ |
H A D | hash_file_error.phpt | 9 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false]) 18 $filename = 'hash_file_error_example.txt'; 19 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' ); 24 var_dump( hash_file( 'foobar', $filename ) ); 34 var_dump( hash_file( 'md5', $filename, false, $extra_arg ) ); 41 $filename = 'hash_file_error_example.txt'; 42 unlink( $filename );
|
/PHP-7.0/ext/zlib/tests/ |
H A D | gzopen_basic2.phpt | 11 /* Prototype : resource gzopen(string filename, string mode [, int use_include_path]) 21 $filename = "gzopen_basic2.txt.gz"; 27 $h = gzopen($filename, $mode); 31 $h = gzopen($filename, 'r'); 35 unlink($filename);
|
/PHP-7.0/ext/fileinfo/libmagic/ |
H A D | apptype.c | 51 char *filename; in file_os2_apptype() local 55 filename = strdup(fn); in file_os2_apptype() 56 else if ((filename = tempnam("./", "tmp")) == NULL) { in file_os2_apptype() 61 _splitpath(filename, drive, dir, fname, ext); in file_os2_apptype() 84 free(filename); in file_os2_apptype()
|
/PHP-7.0/sapi/cli/tests/ |
H A D | 007.phpt | 15 $filename = dirname(__FILE__).'/007.test.php'; 33 file_put_contents($filename, $code); 35 var_dump(`$php -n -w "$filename"`); 39 @unlink($filename);
|
/PHP-7.0/ext/xmlreader/tests/ |
H A D | 004.phpt | 8 $filename = dirname(__FILE__) . '/_004.xml'; 12 file_put_contents($filename, $xmlstring); 15 if (!$reader->open($filename)) { 33 unlink($filename);
|
/PHP-7.0/ext/sockets/tests/ |
H A D | socket_set_option_error_socket_option.phpt | 11 $filename = dirname(__FILE__) . '/006_root_check.tmp'; 12 $fp = fopen($filename, 'w'); 14 if (fileowner($filename) == 0) { 15 unlink ($filename);
|
/PHP-7.0/ext/dom/tests/ |
H A D | DOMDocument_saveHTMLFile_basic.phpt | 12 $filename = dirname(__FILE__)."/tmp_savehtmlfile".time().".html"; 22 $bytes = $doc->saveHTMLFile($filename); 24 echo file_get_contents($filename); 25 unlink($filename);
|
H A D | DOMDocument_saveHTMLFile_formatOutput.phpt | 12 $filename = dirname(__FILE__)."/tmp_savehtmlfile".time().".html"; 23 $bytes = $doc->saveHTMLFile($filename); 25 echo file_get_contents($filename); 26 unlink($filename);
|
/PHP-7.0/ext/fileinfo/tests/ |
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-7.0/ext/mysqlnd/ |
H A D | mysqlnd_loaddata.c | 30 int mysqlnd_local_infile_init(void ** ptr, const char * const filename) in mysqlnd_local_infile_init() argument 46 if (php_check_open_basedir_ex(filename, 0) == -1) { in mysqlnd_local_infile_init() 53 info->filename = filename; in mysqlnd_local_infile_init() 54 info->fd = php_stream_open_wrapper_ex((char *)filename, "r", 0, NULL, context); in mysqlnd_local_infile_init() 57 snprintf((char *)info->error_msg, sizeof(info->error_msg), "Can't find file '%-.64s'.", filename); in mysqlnd_local_infile_init() 144 mysqlnd_handle_local_infile(MYSQLND_CONN_DATA * conn, const char * filename, zend_bool * is_warning) in mysqlnd_handle_local_infile() argument 173 if (infile.local_infile_init(&info, (char *)filename)) { in mysqlnd_handle_local_infile()
|
/PHP-7.0/sapi/apache2handler/ |
H A D | php_functions.c | 59 static request_rec *php_apache_lookup_uri(char *filename) in php_apache_lookup_uri() argument 63 if (!filename || !ctx || !ctx->r) { in php_apache_lookup_uri() 67 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters); in php_apache_lookup_uri() 74 char *filename; in PHP_FUNCTION() local 78 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION() 82 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION() 121 char *filename; in PHP_FUNCTION() local 124 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION() 128 if (!(rr = php_apache_lookup_uri(filename))) { in PHP_FUNCTION() 153 ADD_STRING(filename); in PHP_FUNCTION() [all …]
|
/PHP-7.0/ext/phar/ |
H A D | func_interceptors.c | 28 char *filename; in PHAR_FUNC() local 45 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PHAR_FUNC() 96 char *filename; in PHAR_FUNC() local 136 entry = filename; in PHAR_FUNC() 231 char *filename; in PHAR_FUNC() local 267 entry = filename; in PHAR_FUNC() 368 entry = filename; in PHAR_FUNC() 810 char *filename; \ 894 char *filename; in PharFileFunction() local 924 entry = filename; in PharFileFunction() [all …]
|
/PHP-7.0/ext/zip/tests/ |
H A D | bug8700.phpt | 11 $filename = $thisdir . "/bug8009.zip"; 15 if ($zip->open($filename) === FALSE) { 16 exit("cannot open $filename\n");
|