/PHP-7.4/sapi/phpdbg/ |
H A D | phpdbg_list.c | 117 if (ce->info.user.filename) { in PHPDBG_LIST() 153 phpdbg_xml("<list %r file=\"%s\">", ZSTR_VAL(filename)); in phpdbg_list_file() 277 zend_hash_del(&PHPDBG_G(file_sources), ret->filename); in phpdbg_compile_file() 279 phpdbg_resolve_pending_file_break(ZSTR_VAL(ret->filename)); in phpdbg_compile_file() 285 char *filename = (char *)(file->opened_path ? ZSTR_VAL(file->opened_path) : file->filename); in phpdbg_init_compile_file() local 290 if (VCWD_REALPATH(filename, resolved_path_buf)) { in phpdbg_init_compile_file() 291 filename = resolved_path_buf; in phpdbg_init_compile_file() 295 file->opened_path = zend_string_init(filename, strlen(filename), 0); in phpdbg_init_compile_file() 298 efree((char *) file->filename); in phpdbg_init_compile_file() 301 file->filename = filename; in phpdbg_init_compile_file() [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | is_file_variation3.phpt | 7 /* Prototype: bool is_file ( string $filename ); 8 Description: Tells whether the filename is a regular file 9 Returns TRUE if the filename exists and is a regular file 38 ] as $filename ) { 41 flatten($filename), @is_file($filename));
|
H A D | file_get_contents_file_put_contents_variation2.phpt | 5 /* Prototype: string file_get_contents( string $filename[, bool $use_include_path[, 21 $filename = $file_path."/".$dir."/"."file_get_contents_variation2.tmp"; 27 file_put_contents( $filename, $buffer ); 29 file_put_contents( $filename, $buffer, FILE_APPEND, NULL ); 30 file_put_contents( $filename, $data_array, FILE_APPEND, NULL ); 31 var_dump( file_get_contents($filename, 0) ); 32 var_dump( file_get_contents($filename, 1) ); 33 var_dump( file_get_contents($filename, 0, NULL, 5) ); 34 var_dump( file_get_contents($filename, 1, NULL, 5) ); 35 var_dump( file_get_contents($filename, 0, NULL, 5, 20) ); [all …]
|
H A D | ftruncate_bug77081.phpt | 6 $filename = __DIR__ . DIRECTORY_SEPARATOR . "test77081"; 8 file_put_contents($filename, 'foo'); 9 $stream = fopen($filename, 'c'); 14 var_dump(file_get_contents($filename));
|
H A D | file_put_contents_variation5.phpt | 13 $filename = basename(__FILE__, ".php") . ".tmp"; 14 $scriptLocFile = __DIR__."/".$filename; 32 global $scriptLocFile, $filename; 33 file_put_contents($filename, "File written in working directory", FILE_USE_INCLUDE_PATH); 38 $line = file_get_contents($filename); 40 unlink($filename);
|
H A D | lchown_error.phpt | 11 /* Prototype : bool lchown (string filename, mixed user) 20 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchown.txt'; 21 touch( $filename ); 26 var_dump( lchown( $filename ) ); 29 var_dump( lchown( $filename, $uid, 'foobar' ) ); 31 // Non-existent filename 39 var_dump( lchown( $filename, -5 ) ); 46 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchown.txt'; 47 unlink($filename);
|
H A D | unlink_variation3.phpt | 11 /* Prototype : bool unlink ( string $filename [, resource $context] ); 12 Description : Deletes filename 19 $filename = "$file_path/unlink_variation3.tmp"; 23 $fp = fopen($filename, "w"); 30 var_dump( symlink($filename, $linkname) ); // expected: true 37 var_dump( link($filename, $linkname) ); // expected: true 43 var_dump( unlink($filename) ); 44 var_dump( file_exists($filename) ); // confirm file is deleted
|
H A D | fgetss1.phpt | 7 $filename = __DIR__."/fgetss1.html"; 20 file_put_contents($filename, $str); 21 $fp = fopen($filename, "r"); 27 file_put_contents($filename, $str); 28 $fp = fopen($filename, "r"); 37 $filename = __DIR__."/fgetss1.html"; 38 unlink($filename);
|
H A D | lstat_stat_variation11.phpt | 9 /* Prototype: array lstat ( string $filename ); 12 Prototype: array stat ( string $filename ); 22 $filename = "$file_path/lstat_stat_variation11.tmp"; 23 $fp = fopen($filename, "w"); // temp file 28 $old_stat = stat($filename); 32 var_dump( is_file($filename) ); 33 $new_stat = stat($filename);
|
H A D | lstat_stat_variation13.phpt | 9 /* Prototype: array lstat ( string $filename ); 12 Prototype: array stat ( string $filename ); 22 $filename = "$file_path/lstat_stat_variation13.tmp"; 25 $file_handle = fopen($filename, "w"); // create file 27 $old_stat = stat($filename); 32 $file_handle = fopen($filename, "r"); // read file 34 $new_stat = stat($filename);
|
H A D | bug39673.phpt | 8 $filename = __DIR__.'/bug39673.txt'; 9 file_put_contents($filename, $str); 24 $r = file_get_contents($filename, false, null, $offset); 28 @unlink($filename);
|
H A D | symlink_link_linkinfo_is_link_error2.phpt | 14 Prototype: bool is_link ( string $filename ); 24 // create temp $filename and create link $linkname to it 26 $fp = fopen($filename, "w"); // create temp file 37 var_dump( link($filename, $linkname, false) ); 40 var_dump( link(NULL, $linkname) ); // NULL as filename 41 var_dump( link('', $linkname) ); // empty string as filename 42 var_dump( link(' ', $linkname) ); // space as filename 44 var_dump( link($filename, NULL) ); // NULL as linkname 45 var_dump( link($filename, '') ); // '' as linkname 46 var_dump( link($filename, false) ); // false as linkname [all …]
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | sha1.phpt | 6 $filename = __DIR__."/sha1.dat"; 17 file_put_contents($filename, $str); 18 var_dump($val2 = sha1_file($filename)); 23 var_dump(sha1_file($filename, true)); 25 @unlink($filename); 27 sha1_file($filename);
|
/PHP-7.4/sapi/cli/tests/ |
H A D | 011.phpt | 10 $filename = __DIR__."/011.test.php"; 26 file_put_contents($filename, $code); 28 var_dump(`"$php" -n -l $filename`); 41 file_put_contents($filename, $code); 43 var_dump(`"$php" -n -l $filename`); 45 @unlink($filename);
|
/PHP-7.4/ext/gd/tests/ |
H A D | imageresolution_png.phpt | 9 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'imageresolution_png.png'; 15 imagepng($exp, $filename); 16 $act = imagecreatefrompng($filename); 20 imagepng($exp, $filename); 21 $act = imagecreatefrompng($filename);
|
H A D | imageresolution_jpeg.phpt | 10 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'imageresolution_jpeg.jpeg'; 16 imagejpeg($exp, $filename); 17 $act = imagecreatefromjpeg($filename); 21 imagejpeg($exp, $filename); 22 $act = imagecreatefromjpeg($filename);
|
/PHP-7.4/ext/pdo_sqlite/tests/ |
H A D | pdo_sqlite_open_flags.phpt | 8 $filename = __DIR__ . DIRECTORY_SEPARATOR . "pdo_sqlite_open_flags.db"; 11 $db = new PDO('sqlite:' . $filename, null, null, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]); 15 $db = new PDO('sqlite:' . $filename, null, null, [PDO::SQLITE_ATTR_OPEN_FLAGS => PDO::SQLITE_OPEN_R… 21 $filename = __DIR__ . DIRECTORY_SEPARATOR . "pdo_sqlite_open_flags.db"; 22 if (file_exists($filename)) { 23 unlink($filename);
|
/PHP-7.4/ext/zip/tests/ |
H A D | pecl12414.phpt | 10 $filename = 'MYLOGOV2.GFX'; 15 $finfo=$za->statName($filename); 19 $contents=$za->getFromName($filename); 23 echo "zip_readfile recorded data does not match unpacked size: " . $zipname . " : " . $filename; 27 echo "zip_readfile could not open stream from zero length file " . $zipname . " : " .$filename; 32 echo "zip_readfile could not read from " . $zipname . " : " . $filename;
|
/PHP-7.4/ext/standard/tests/ |
H A D | skipif_root.inc | 4 $filename = @tempnam(__DIR__, 'root_check_'); 5 if (!file_exists($filename)) { 9 $isRoot = fileowner($filename) == 0; 11 unlink($filename);
|
/PHP-7.4/Zend/ |
H A D | zend_stream.c | 67 handle->filename = filename; in zend_stream_init_fp() 70 ZEND_API void zend_stream_init_filename(zend_file_handle *handle, const char *filename) { in zend_stream_init_filename() argument 73 handle->filename = filename; in zend_stream_init_filename() 76 ZEND_API int zend_stream_open(const char *filename, zend_file_handle *handle) /* {{{ */ in zend_stream_open() argument 80 return zend_stream_open_function(filename, handle); in zend_stream_open() 83 zend_stream_init_fp(handle, zend_fopen(filename, &opened_path), filename); in zend_stream_open() 127 if (zend_stream_open(file_handle->filename, file_handle) == FAILURE) { in zend_stream_fixup() 228 if (fh->free_filename && fh->filename) { in zend_file_handle_dtor() 229 efree((char*)fh->filename); in zend_file_handle_dtor() 230 fh->filename = NULL; in zend_file_handle_dtor() [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | class_constants_003.phpt | 14 $filename = __DIR__."/cc003.dat"; 15 file_put_contents($filename, $class_data); 21 include $filename; 26 unlink($filename);
|
/PHP-7.4/ext/opcache/ |
H A D | zend_file_cache.c | 835 char *filename; local 884 return filename; 890 char *filename; local 901 efree(filename); 910 efree(filename); 916 efree(filename); 990 efree(filename); 1522 char *filename; local 1705 efree(filename); 1712 char *filename; local [all …]
|
/PHP-7.4/ext/zlib/tests/ |
H A D | zlib_wrapper_level.phpt | 8 $filename = tempnam(sys_get_temp_dir(), "php-zlib-test-"); 12 global $filename, $thisfile; 15 $fp = fopen("compress.zlib://$filename", 'w', false, $ctx); 20 $size = filesize($filename); 21 unlink($filename);
|
/PHP-7.4/ext/bz2/tests/ |
H A D | with_files.phpt | 10 $filename = "with_files.bz2"; 12 $bz = bzopen($filename, "w"); 16 $bz = bzopen($filename, "r"); 20 unlink($filename);
|
/PHP-7.4/ext/standard/ |
H A D | filestat.c | 341 char *filename; in php_do_chgrp() local 351 Z_PARAM_PATH(filename, filename_len) in php_do_chgrp() 410 ret = VCWD_CHOWN(filename, -1, gid); in php_do_chgrp() 477 char *filename; in php_do_chown() local 586 char *filename; in PHP_FUNCTION() local 619 ret = VCWD_CHMOD(filename, imode); in PHP_FUNCTION() 633 char *filename; in PHP_FUNCTION() local 700 file = VCWD_FOPEN(filename, "w"); in PHP_FUNCTION() 708 ret = VCWD_UTIME(filename, newtime); in PHP_FUNCTION() 734 if (filename != NULL) { in php_clear_stat_cache() [all …]
|