/PHP-5.4/ext/standard/tests/strings/ |
H A D | fprintf_variation_006_64bit.phpt | 6 if (!($fp = fopen($data_file, 'w'))) { 18 if (!($fp = fopen($data_file, 'wt'))) 22 fprintf($fp, "\n*** Testing fprintf() for unsigned integers ***\n"); 24 fprintf( $fp, "\n"); 25 fprintf( $fp, "%u", $unsig_num ); 28 fclose($fp);
|
H A D | fprintf_variation_007.phpt | 6 if (!($fp = fopen($data_file, 'w'))) { 18 if (!($fp = fopen($data_file, 'wt'))) 22 fprintf($fp, "\n*** Testing fprintf() for octals ***\n"); 24 fprintf( $fp, "\n"); 25 fprintf( $fp, "%o", $octal_num ); 28 fclose($fp);
|
H A D | fprintf_variation_007_64bit.phpt | 6 if (!($fp = fopen($data_file, 'w'))) { 18 if (!($fp = fopen($data_file, 'wt'))) 22 fprintf($fp, "\n*** Testing fprintf() for octals ***\n"); 24 fprintf( $fp, "\n"); 25 fprintf( $fp, "%o", $octal_num ); 28 fclose($fp);
|
H A D | fprintf_variation_008.phpt | 6 if (!($fp = fopen($data_file, 'w'))) { 19 if (!($fp = fopen($data_file, 'wt'))) 23 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n"); 25 fprintf( $fp, "\n"); 26 fprintf( $fp, "%x", $hexa_num ); 29 fclose($fp);
|
H A D | fprintf_variation_008_64bit.phpt | 6 if (!($fp = fopen($data_file, 'w'))) { 19 if (!($fp = fopen($data_file, 'wt'))) 23 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n"); 25 fprintf( $fp, "\n"); 26 fprintf( $fp, "%x", $hexa_num ); 29 fclose($fp);
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | bug37158.phpt | 19 $fp = fopen($file, 'w'); 21 fwrite($fp, $x); 23 fclose($fp); 25 $fp = fopen($file, 'r'); 26 $outsidecontents = fread($fp, 20000); 27 fclose($fp);
|
/PHP-5.4/sapi/cli/tests/ |
H A D | bug61679.phpt | 18 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 19 if (!$fp) { 25 if(fwrite($fp, <<<HEADER 32 while (!feof($fp)) { 33 echo fgets($fp); 40 fclose($fp);
|
H A D | php_cli_server_016.phpt | 25 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 26 if (!$fp) { 30 if(fwrite($fp, <<<HEADER 37 while (!feof($fp)) { 38 echo fgets($fp); 43 fclose($fp);
|
H A D | php_cli_server_012.phpt | 17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 18 if (!$fp) { 22 if(fwrite($fp, <<<HEADER 31 while (!feof($fp)) { 32 echo fgets($fp); 36 fclose($fp);
|
H A D | bug65066_100.phpt | 17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 18 if (!$fp) { 22 if(fwrite($fp, <<<HEADER 29 while (!feof($fp)) { 30 echo fgets($fp);
|
H A D | bug65066_511.phpt | 17 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 18 if (!$fp) { 22 if(fwrite($fp, <<<HEADER 29 while (!feof($fp)) { 30 echo fgets($fp);
|
/PHP-5.4/ext/zlib/tests/ |
H A D | zlib_filter_inflate.phpt | 9 $fp = fopen('php://stdout', 'w'); 10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE); 11 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_WRITE); 12 fwrite($fp, $text); 13 fclose($fp);
|
H A D | zlib_filter_deflate.phpt | 9 $fp = fopen('php://stdout', 'w'); 10 stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE); 11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE); 12 fwrite($fp, $text); 13 fclose($fp);
|
H A D | bug_52944-darwin.phpt | 15 $fp = fopen('data://text/plain;base64,' . $data, 'r'); 16 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ); 17 var_dump(fread($fp,1)); 18 var_dump(fread($fp,1)); 19 fclose($fp);
|
H A D | bug_52944-win.phpt | 15 $fp = fopen('data://text/plain;base64,' . $data, 'r'); 16 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ); 17 var_dump(fread($fp,1)); 18 var_dump(fread($fp,1)); 19 fclose($fp);
|
H A D | bug_52944.phpt | 18 $fp = fopen('data://text/plain;base64,' . $data, 'r'); 19 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ); 20 var_dump(fread($fp,1)); 21 var_dump(fread($fp,1)); 22 fclose($fp);
|
/PHP-5.4/ext/bz2/tests/ |
H A D | bz2_filter_compress.phpt | 9 $fp = fopen('php://stdout', 'w'); 10 stream_filter_append($fp, 'bzip2.compress', STREAM_FILTER_WRITE); 11 stream_filter_append($fp, 'convert.base64-encode', STREAM_FILTER_WRITE); 12 fwrite($fp, $text); 13 fclose($fp);
|
H A D | bz2_filter_decompress.phpt | 9 $fp = fopen('php://stdout', 'w'); 10 stream_filter_append($fp, 'convert.base64-decode', STREAM_FILTER_WRITE); 11 stream_filter_append($fp, 'bzip2.decompress', STREAM_FILTER_WRITE); 12 fwrite($fp, $text); 13 fclose($fp);
|
/PHP-5.4/ext/phar/tests/zip/files/ |
H A D | make_invalid_tar.php.inc | 7 $fp = fopen($this->path, 'r+b'); 8 fseek($fp, 20); 9 fwrite($fp, 'oopsie'); 10 fclose($fp);
|
/PHP-5.4/ext/standard/tests/filters/ |
H A D | stream_filter_remove_basic.phpt | 21 $fp = fopen( $file, 'w+' ); 23 $filter = stream_filter_append( $fp, "string.rot13", STREAM_FILTER_WRITE ); 24 fwrite( $fp, "Testing the rot13 filter which shifts some things around." ); 27 fwrite( $fp, "\nadd some more un-filtered foobar\n" ); 29 rewind( $fp ); 30 fpassthru( $fp ); 31 fclose( $fp );
|
H A D | basic.phpt | 12 $fp = tmpfile(); 13 fwrite($fp, $GLOBALS["text"]); 14 rewind($fp); 17 var_dump(stream_filter_prepend($fp, $name)); 19 var_dump(fgets($fp)); 20 fclose($fp);
|
/PHP-5.4/ext/standard/tests/network/ |
H A D | bug20134.phpt | 6 $fp = fsockopen("udp://localhost", 65534, $errno, $errstr); 7 if (!$fp) { 14 $x = fwrite($fp,b"\n"); 17 $content = fread($fp, 40); 19 fclose($fp);
|
/PHP-5.4/ext/phar/ |
H A D | zip.c | 194 php_stream_close(fp); in phar_parse_zipfile() 262 php_stream_close(fp); in phar_parse_zipfile() 583 fp->writepos = fp->readpos = 0; in phar_parse_zipfile() 587 fp->writepos = 0; in phar_parse_zipfile() 588 fp->readpos = 0; in phar_parse_zipfile() 590 fp->writepos = 0; in phar_parse_zipfile() 591 fp->readpos = 0; in phar_parse_zipfile() 652 mydata->fp = fp; in phar_parse_zipfile() 845 … if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_zip_changed_apply() 1069 entry->fp = NULL; in phar_zip_changed_apply() [all …]
|
/PHP-5.4/win32/build/ |
H A D | mkdist.php | 145 $fp = fopen($dest, "w"); 146 fwrite($fp, $text); 147 fclose($fp); 162 $fp = gzopen($tarball, 'rb'); 167 $hdr_data = gzread($fp, 512); 203 gzseek($fp, gztell($fp) + $size); 264 fwrite($fp, <<<EOT 279 fprintf($fp, "%s\r\n", $ext); 281 fwrite($fp, "\r\n\r\n"); 294 fwrite($fp, "\r\n"); [all …]
|
/PHP-5.4/Zend/tests/ |
H A D | bug21478.phpt | 23 $fp = fopen(dirname(__FILE__)."/test.txt","w"); 24 stream_filter_append($fp, "myfilter"); 25 stream_filter_append($fp, "myfilter"); 26 stream_filter_append($fp, "myfilter"); 27 fwrite($fp, "This is a test.\n"); 29 fclose($fp);
|