/PHP-8.4/ext/phar/tests/ |
H A D | 022.phpt | 24 echo 'fseek($fp, 1)';var_dump(fseek($fp, 1)); 26 echo 'fseek($fp, 1, SEEK_CUR)';var_dump(fseek($fp, 1, SEEK_CUR)); 28 echo 'fseek($fp, -1, SEEK_CUR)';var_dump(fseek($fp, -1, SEEK_CUR)); 42 echo 'fseek($fp, 6)';var_dump(fseek($fp, 6)); 44 echo 'fseek($fp, 8)';var_dump(fseek($fp, 8)); 46 echo 'fseek($fp, -1)';var_dump(fseek($fp, -1)); 49 fseek($fp, 4); 53 fseek($fp, 4); 57 fseek($fp, 4); 61 fseek($fp, 4); [all …]
|
H A D | phar_stub.phpt | 25 fclose($fp); 33 fclose($fp); 39 fclose($fp); 44 fclose($fp); 48 fclose($fp); 52 fclose($fp); 67 fclose($fp); 71 fclose($fp); 77 fclose($fp); 84 fclose($fp); [all …]
|
/PHP-8.4/ext/standard/tests/file/ |
H A D | stream_rfc2397_007.phpt | 18 var_dump(ftell($fp)); 19 var_dump(feof($fp)); 22 var_dump(ftell($fp)); 23 var_dump(feof($fp)); 25 var_dump(fgetc($fp)); 26 var_dump(ftell($fp)); 27 var_dump(feof($fp)); 29 var_dump(fgetc($fp)); 32 var_dump(feof($fp)); 36 var_dump(feof($fp)); [all …]
|
H A D | bug27508.phpt | 6 public $fp; 34 if (!$this->fp) { 56 if (!$fp) { 60 fwrite($fp, "line1\n"); 61 fwrite($fp, "line2\n"); 62 fwrite($fp, "line3\n"); 65 rewind($fp); 66 echo ftell($fp) . "\n"; 68 while ($fp && !feof($fp)) { 69 echo fgets($fp); [all …]
|
H A D | stream_supports_lock.phpt | 7 $fp = fopen(__FILE__, "r"); 8 var_dump($fp); 9 var_dump(stream_supports_lock($fp)); 10 fclose($fp); 13 var_dump($fp); 15 fclose($fp); 17 $fp = fopen("php://memory", "r"); 18 var_dump($fp); 20 fclose($fp); 23 var_dump($fp); [all …]
|
H A D | fscanf.phpt | 10 $fp = fopen($filename, "rt"); 11 var_dump(fscanf($fp, "%d", $v)); 13 fclose($fp); 15 $fp = fopen($filename, "rt"); 18 fclose($fp); 20 $fp = fopen($filename, "rt"); 28 fclose($fp); 32 $fp = fopen($filename, "rt"); 40 fclose($fp); 52 fclose($fp); [all …]
|
H A D | ftruncate.phpt | 10 $fp = fopen($filename, "r"); 11 var_dump(ftruncate($fp, 10)); 12 fclose($fp); 15 $fp = fopen($filename, "w"); 16 var_dump(ftruncate($fp, 10)); 17 fclose($fp); 22 $fp = fopen($filename, "a"); 24 fclose($fp); 27 $fp = fopen($filename, "a"); 29 fclose($fp); [all …]
|
H A D | flock.phpt | 8 $fp = fopen($file, "w"); 9 fclose($fp); 12 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 17 $fp = fopen($file, "w"); 19 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 20 var_dump(flock($fp, LOCK_UN)); 21 var_dump(flock($fp, LOCK_EX)); 22 var_dump(flock($fp, LOCK_UN)); 27 var_dump(flock($fp, LOCK_UN, $would)); 34 var_dump(flock($fp, -1)); [all …]
|
H A D | fwrite.phpt | 8 $fp = fopen($filename, "w"); 9 var_dump(fwrite($fp, "")); 10 fclose($fp); 12 $fp = fopen($filename, "r"); 13 var_dump(fwrite($fp, "data")); 15 $fp = fopen($filename, "w"); 16 var_dump(fwrite($fp, "data", -1)); 17 var_dump(fwrite($fp, "data", 100000)); 18 fclose($fp); 20 var_dump(fwrite($fp, "data", -1));
|
H A D | fgetcsv_variation23.phpt | 12 $fp = fopen ($filename, "w"); 13 fclose($fp); 14 $fp = fopen ($filename, "r"); 15 if (!$fp) { 19 var_dump( fgetcsv($fp, escape: "\\") ); 20 var_dump( ftell($fp) ); 21 var_dump( fgetcsv($fp, 1024, escape: "\\") ); 22 var_dump( ftell($fp) ); 24 var_dump( ftell($fp) ); 26 var_dump( ftell($fp) ); [all …]
|
/PHP-8.4/ext/zip/tests/ |
H A D | oo_stream_seek.phpt | 19 if(!$fp) exit("\n"); 20 var_dump($fp); 24 var_dump(ftell($fp)); 27 var_dump(ftell($fp)); 29 fclose($fp); 33 if(!$fp) exit("\n"); 34 var_dump($fp); 38 fclose($fp); 45 if(!$fp) exit("\n"); 46 var_dump($fp); [all …]
|
H A D | oo_stream.phpt | 14 $fp = $zip->getStream('foo'); 16 var_dump($fp); 17 if(!$fp) exit("\n"); 19 while (!feof($fp)) { 20 $contents .= fread($fp, 255); 23 fclose($fp); 28 $fp = fopen('zip://' . __DIR__ . '/test_with_comment.zip#foo', 'rb'); 29 if (!$fp) { 33 while (!feof($fp)) { 34 $contents .= fread($fp, 2); [all …]
|
/PHP-8.4/ext/iconv/tests/ |
H A D | iconv_stream_filter_delimiter.phpt | 10 var_dump(bin2hex(fread($fp, 10))); 11 var_dump(bin2hex(fread($fp, 5))); 12 var_dump(bin2hex(fread($fp, 1))); 13 fclose($fp); 17 var_dump(bin2hex(fread($fp, 10))); 18 var_dump(bin2hex(fread($fp, 5))); 19 var_dump(bin2hex(fread($fp, 1))); 20 fclose($fp); 25 var_dump(bin2hex(fread($fp, 5))); 27 fclose($fp); [all …]
|
H A D | iconv_stream_filter.phpt | 9 $fp = fopen(__DIR__.'/iconv_stream_filter.txt', 'rb'); 10 var_dump(bin2hex(fread($fp, 10))); 11 var_dump(bin2hex(fread($fp, 5))); 12 var_dump(bin2hex(fread($fp, 1))); 13 fclose($fp); 17 var_dump(bin2hex(fread($fp, 10))); 18 var_dump(bin2hex(fread($fp, 5))); 19 var_dump(bin2hex(fread($fp, 1))); 20 fclose($fp); 27 var_dump(bin2hex(fread($fp, 1)) != "0a"); [all …]
|
/PHP-8.4/ext/zip/examples/ |
H A D | fopen.php | 7 $fp = fopen('zip://' . dirname(__FILE__) . '/test.zip#test', 'r'); variable 8 if (!$fp) { 11 while (!feof($fp)) { 12 $contents .= fread($fp, 2); 16 fclose($fp); 23 $fp = $z->getStream('test'); variable 25 var_dump($fp); 26 if(!$fp) exit("\n"); 27 while (!feof($fp)) { 28 $contents .= fread($fp, 2); [all …]
|
/PHP-8.4/ext/dba/libflatfile/ |
H A D | flatfile.c | 54 php_stream_flush(dba->fp); in flatfile_store() 59 php_stream_flush(dba->fp); in flatfile_store() 66 php_stream_flush(dba->fp); in flatfile_store() 76 php_stream_flush(dba->fp); in flatfile_store() 109 php_stream_rewind(dba->fp); in flatfile_delete() 110 while(!php_stream_eof(dba->fp)) { in flatfile_delete() 120 pos = php_stream_tell(dba->fp); in flatfile_delete() 127 php_stream_putc(dba->fp, 0); in flatfile_delete() 128 php_stream_flush(dba->fp); in flatfile_delete() 160 php_stream_rewind(dba->fp); in flatfile_findkey() [all …]
|
/PHP-8.4/ext/standard/tests/strings/ |
H A D | vfprintf_basic3.phpt | 26 vfprintf($fp, $format1,$arg1); 27 fprintf($fp, "\n"); 29 vfprintf($fp,$format11,$arg1); 30 fprintf($fp, "\n"); 32 vfprintf($fp,$format2,$arg2); 33 fprintf($fp, "\n"); 36 fprintf($fp, "\n"); 38 vfprintf($fp,$format3,$arg3); 39 fprintf($fp, "\n"); 42 fprintf($fp, "\n"); [all …]
|
H A D | vfprintf_basic9.phpt | 26 vfprintf($fp, $format1, $arg1); 27 fprintf($fp, "\n"); 28 vfprintf($fp, $format11, $arg1); 29 fprintf($fp, "\n"); 31 vfprintf($fp, $format2, $arg2); 32 fprintf($fp, "\n"); 34 fprintf($fp, "\n"); 36 vfprintf($fp, $format3, $arg3); 37 fprintf($fp, "\n"); 39 fprintf($fp, "\n"); [all …]
|
H A D | vfprintf_basic.phpt | 9 function writeAndDump($fp, $format, $args) 11 ftruncate( $fp, 0 ); 12 $length = vfprintf( $fp, $format, $args ); 13 rewind( $fp ); 14 $content = stream_get_contents( $fp ); 23 $fp = fopen( $file, "a+" ); 28 writeAndDump( $fp, "%d digit", array( '54' ) ); 29 writeAndDump( $fp, "%b %b", array( true, false ) ); 30 writeAndDump( $fp, "%c %c %c", array( 65, 66, 67 ) ); 32 writeAndDump( $fp, "%02d", array( 50 ) ); [all …]
|
/PHP-8.4/ext/bz2/tests/ |
H A D | 002.phpt | 11 var_dump(bzopen($fp, "w")); 14 var_dump(bzopen($fp, "r")); 18 var_dump(bzopen($fp, "w")); 22 var_dump(bzopen($fp, "r")); 25 var_dump(bzopen($fp, "r")); 28 var_dump(bzopen($fp, "w")); 45 var_dump(bzopen($fp, "w")); 48 var_dump(bzopen($fp, "r")); 51 var_dump(bzopen($fp, "w")); 54 var_dump(bzopen($fp, "r")); [all …]
|
/PHP-8.4/sapi/cli/tests/ |
H A D | bug70470.phpt | 12 $fp = php_cli_server_connect(); 14 fwrite($fp, "GET / HTTP/1.1\r\n"); 16 fwrite($fp, "Content"); 17 fflush($fp); 19 fwrite($fp, "-Type: text/html; charset=UTF-8\r\n"); 20 fwrite($fp, "Connection: clo"); 21 fflush($fp); 23 fwrite($fp, "se\r\n\r\n"); 24 while (!feof($fp)) { 25 echo fgets($fp); [all …]
|
H A D | php_cli_server_009.phpt | 18 if(fwrite($fp, <<<HEADER 25 while (!feof($fp)) { 26 echo fgets($fp); 30 fclose($fp); 34 if(fwrite($fp, <<<HEADER 41 while (!feof($fp)) { 42 echo fgets($fp); 46 fclose($fp); 50 if(fwrite($fp, <<<HEADER 57 while (!feof($fp)) { [all …]
|
/PHP-8.4/ext/standard/ |
H A D | iptc.c | 93 c = getc(fp); in php_iptc_get1() 145 c = php_iptc_get1(fp, spool, spoolbuf); in php_iptc_next_marker() 156 c = php_iptc_get1(fp, 0, 0); in php_iptc_next_marker() 176 FILE *fp; in PHP_FUNCTION() local 200 if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { in PHP_FUNCTION() 206 if (zend_fstat(fileno(fp), &sb) != 0) { in PHP_FUNCTION() 216 fclose(fp); in PHP_FUNCTION() 224 fclose(fp); in PHP_FUNCTION() 243 php_iptc_skip_variable(fp, 0, 0); in PHP_FUNCTION() 244 fgetc(fp); /* skip already copied 0xFF byte */ in PHP_FUNCTION() [all …]
|
/PHP-8.4/ext/zlib/tests/ |
H A D | zlib_filter_inflate2.phpt | 12 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 13 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ); 14 echo fread($fp, 2000); 15 fclose($fp); 17 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 19 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 22 echo fread($fp, 2000); 23 fclose($fp); 25 $fp = fopen(__DIR__ . '/test.txt.gz', 'r'); 28 echo fread($fp, 2000); [all …]
|
/PHP-8.4/ext/gd/tests/ |
H A D | createfromwbmp2.phpt | 12 $fp = fopen($filename,"wb"); 13 if (!$fp) { 19 fputs($fp, chr($c), 1); 20 fputs($fp, $c, 1); 24 fputs($fp, chr($c), 1); 26 fputs($fp, chr($c), 1); 27 fputs($fp, chr($c), 1); 28 fputs($fp, chr($c), 1); 30 fputs($fp, chr($c), 1); 34 fputs($fp, chr($c), 1); [all …]
|