/PHP-5.6/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); 38 fwrite($fp, $file); 39 fclose($fp); 43 $phar->setStub($fp); 44 fclose($fp); 48 fclose($fp); 52 fclose($fp); 59 fclose($fp); 66 fclose($fp); [all …]
|
/PHP-5.6/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; 33 if (!$this->fp) { 55 if (!$fp) { 59 fwrite($fp, b"line1\n"); 60 fwrite($fp, b"line2\n"); 61 fwrite($fp, b"line3\n"); 64 rewind($fp); 65 echo ftell($fp) . "\n"; 67 while ($fp && !feof($fp)) { 68 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 | 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 | fscanf.phpt | 14 $fp = fopen($filename, "rt"); 17 fclose($fp); 19 $fp = fopen($filename, "rt"); 22 fclose($fp); 24 $fp = fopen($filename, "rt"); 28 fclose($fp); 32 $fp = fopen($filename, "rt"); 36 fclose($fp); 40 $fp = fopen($filename, "rt"); 44 fclose($fp); [all …]
|
H A D | flock.phpt | 11 $fp = fopen($file, "w"); 12 fclose($fp); 14 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 16 $fp = fopen($file, "w"); 18 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 19 var_dump(flock($fp, LOCK_UN)); 20 var_dump(flock($fp, LOCK_EX)); 21 var_dump(flock($fp, LOCK_UN)); 26 var_dump(flock($fp, LOCK_UN, $would)); 33 var_dump(flock($fp, -1)); [all …]
|
H A D | fgetcsv_variation23.phpt | 17 $fp = fopen ($filename, "w"); 18 fclose($fp); 19 $fp = fopen ($filename, "r"); 20 if (!$fp) { 24 var_dump( fgetcsv($fp) ); 25 var_dump( ftell($fp) ); 26 var_dump( fgetcsv($fp, 1024) ); 27 var_dump( ftell($fp) ); 29 var_dump( ftell($fp) ); 31 var_dump( ftell($fp) ); [all …]
|
/PHP-5.6/ext/ |
H A D | ext_skel_win32.php | 38 $fp = fopen("$skel/skeleton.dsp", "rb"); variable 39 if ($fp) { 41 fclose($fp); 46 if ($fp) { 47 fwrite($fp, $dsp_file); 48 fclose($fp); 53 if ($fp) { 55 fclose($fp); 59 if ($fp) { 60 fwrite($fp, $php_file); [all …]
|
/PHP-5.6/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 | 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); 26 var_dump(bin2hex(fread($fp, 5)) != "69636f6e76"); 27 var_dump(bin2hex(fread($fp, 1)) != "0a"); [all …]
|
/PHP-5.6/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-5.6/ext/dba/libflatfile/ |
H A D | flatfile.c | 57 php_stream_flush(dba->fp); in flatfile_store() 62 php_stream_flush(dba->fp); in flatfile_store() 69 php_stream_flush(dba->fp); in flatfile_store() 79 php_stream_flush(dba->fp); in flatfile_store() 114 php_stream_rewind(dba->fp); in flatfile_delete() 115 while(!php_stream_eof(dba->fp)) { in flatfile_delete() 125 pos = php_stream_tell(dba->fp); in flatfile_delete() 132 php_stream_putc(dba->fp, 0); in flatfile_delete() 133 php_stream_flush(dba->fp); in flatfile_delete() 166 php_stream_rewind(dba->fp); in flatfile_findkey() [all …]
|
/PHP-5.6/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")); 31 var_dump(bzopen($fp, "r")); 34 var_dump(bzopen($fp, "w")); 37 var_dump(bzopen($fp, "w")); 40 var_dump(bzopen($fp, "r")); [all …]
|
/PHP-5.6/sapi/cli/tests/ |
H A D | bug70470.phpt | 16 if (!$fp) { 20 fwrite($fp, "GET / HTTP/1.1\r\n"); 22 fwrite($fp, "Content"); 23 fflush($fp); 25 fwrite($fp, "-Type: text/html; charset=UTF-8\r\n"); 26 fwrite($fp, "Connection: clo"); 27 fflush($fp); 29 fwrite($fp, "se\r\n\r\n"); 30 while (!feof($fp)) { 31 echo fgets($fp); [all …]
|
H A D | php_cli_server_009.phpt | 19 if (!$fp) { 30 while (!feof($fp)) { 31 echo fgets($fp); 35 fclose($fp); 38 if (!$fp) { 50 while (!feof($fp)) { 51 echo fgets($fp); 55 fclose($fp); 58 if (!$fp) { 71 echo fgets($fp); [all …]
|
H A D | php_cli_server_008.phpt | 15 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 16 if (!$fp) { 20 if(fwrite($fp, <<<HEADER 27 while (!feof($fp)) { 28 echo fgets($fp); 32 fclose($fp); 35 if (!$fp) { 40 if(fwrite($fp, <<<HEADER 47 while (!feof($fp)) { 48 echo fgets($fp); [all …]
|
/PHP-5.6/ext/standard/ |
H A D | iptc.c | 105 c = getc(fp); in php_iptc_get1() 160 c = php_iptc_get1(fp, spool, spoolbuf TSRMLS_CC); in php_iptc_next_marker() 171 c = php_iptc_get1(fp, 0, 0 TSRMLS_CC); in php_iptc_next_marker() 192 FILE *fp; in PHP_FUNCTION() local 212 if ((fp = VCWD_FOPEN(jpeg_file, "rb")) == 0) { in PHP_FUNCTION() 218 fstat(fileno(fp), &sb); in PHP_FUNCTION() 225 fclose(fp); in PHP_FUNCTION() 233 fclose(fp); in PHP_FUNCTION() 252 php_iptc_skip_variable(fp, 0, 0 TSRMLS_CC); in PHP_FUNCTION() 253 fgetc(fp); /* skip already copied 0xFF byte */ in PHP_FUNCTION() [all …]
|
/PHP-5.6/ext/zip/tests/ |
H A D | oo_stream.phpt | 17 $fp = $zip->getStream('foo'); 19 var_dump($fp); 20 if(!$fp) exit("\n"); 22 while (!feof($fp)) { 23 $contents .= fread($fp, 255); 26 fclose($fp); 31 $fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb'); 32 if (!$fp) { 36 while (!feof($fp)) { 37 $contents .= fread($fp, 2); [all …]
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | vfprintf_basic3.phpt | 31 vfprintf($fp, $format1,$arg1); 32 fprintf($fp, "\n"); 34 vfprintf($fp,$format11,$arg1); 35 fprintf($fp, "\n"); 37 vfprintf($fp,$format2,$arg2); 38 fprintf($fp, "\n"); 41 fprintf($fp, "\n"); 43 vfprintf($fp,$format3,$arg3); 44 fprintf($fp, "\n"); 47 fprintf($fp, "\n"); [all …]
|
H A D | vfprintf_basic9.phpt | 31 vfprintf($fp, $format1, $arg1); 32 fprintf($fp, "\n"); 33 vfprintf($fp, $format11, $arg1); 34 fprintf($fp, "\n"); 36 vfprintf($fp, $format2, $arg2); 37 fprintf($fp, "\n"); 39 fprintf($fp, "\n"); 41 vfprintf($fp, $format3, $arg3); 42 fprintf($fp, "\n"); 44 fprintf($fp, "\n"); [all …]
|
H A D | vfprintf_basic.phpt | 15 function writeAndDump($fp, $format, $args) 17 ftruncate( $fp, 0 ); 18 $length = vfprintf( $fp, $format, $args ); 19 rewind( $fp ); 20 $content = stream_get_contents( $fp ); 29 $fp = fopen( $file, "a+" ); 34 writeAndDump( $fp, "%d digit", array( '54' ) ); 35 writeAndDump( $fp, "%b %b", array( true, false ) ); 36 writeAndDump( $fp, "%c %c %c", array( 65, 66, 67 ) ); 38 writeAndDump( $fp, "%02d", array( 50 ) ); [all …]
|
/PHP-5.6/ext/zlib/tests/ |
H A D | zlib_filter_inflate2.phpt | 12 $fp = fopen(dirname(__FILE__) . '/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(dirname(__FILE__) . '/test.txt.gz', 'r'); 19 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r'); 22 echo fread($fp, 2000); 23 fclose($fp); 25 $fp = fopen(dirname(__FILE__) . '/test.txt.gz', 'r'); 28 echo fread($fp, 2000); [all …]
|
/PHP-5.6/ext/phar/ |
H A D | tar.c | 618 myphar->fp = fp; in phar_parse_tarfile() 727 if (fp->error) { in phar_tar_writeheaders() 737 if (fp->error) { in phar_tar_writeheaders() 751 if (fp->error) { in phar_tar_writeheaders() 758 if (fp->error) { in phar_tar_writeheaders() 777 if (fp->error) { in phar_tar_writeheaders() 787 if (fp->error) { in phar_tar_writeheaders() 802 if (fp->error) { in phar_tar_writeheaders() 809 if (fp->error) { in phar_tar_writeheaders() 834 if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_tar_writeheaders() [all …]
|