/PHP-7.4/ext/xml/tests/ |
H A D | xml004.phpt | 12 $fp = fopen("xmltest.xml", "r"); 13 while ($data = fread($fp, 4096)) { 14 xml_parse($xp, $data, feof($fp)); 20 $fp = fopen("xmltest.xml", "r"); 21 while ($data = fread($fp, 4096)) { 22 xml_parse($xp, $data, feof($fp));
|
/PHP-7.4/ext/openssl/tests/ |
H A D | bug72333.phpt | 16 $fp = stream_socket_server("ssl://127.0.0.1:10011", $errornum, $errorstr, $flags, $context); 18 $conn = stream_socket_accept($fp); 43 …$fp = stream_socket_client("ssl://127.0.0.1:10011", $errornum, $errorstr, 3000, STREAM_CLIENT_CONN… 44 stream_set_blocking($fp, false); 46 function blocking_fwrite($fp, $buf) { 47 $write = [$fp]; 50 $result = fwrite($fp, $buf); 62 blocking_fwrite($fp, $str1);
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | fprintf_variation_008.phpt | 15 if (!($fp = fopen($data_file, 'wt'))) 19 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n"); 21 fprintf( $fp, "\n"); 22 fprintf( $fp, "%x", $hexa_num ); 25 fclose($fp);
|
H A D | fprintf_variation_008_64bit.phpt | 15 if (!($fp = fopen($data_file, 'wt'))) 19 fprintf($fp, "\n*** Testing fprintf() for hexadecimals ***\n"); 21 fprintf( $fp, "\n"); 22 fprintf( $fp, "%x", $hexa_num ); 25 fclose($fp);
|
/PHP-7.4/sapi/cli/tests/ |
H A D | php_cli_server_016.phpt | 23 $fp = php_cli_server_connect(); 25 if(fwrite($fp, <<<HEADER 32 while (!feof($fp)) { 33 echo fgets($fp); 38 fclose($fp);
|
H A D | bug66606_2.phpt | 15 $fp = php_cli_server_connect(); 17 if (fwrite($fp, <<<HEADER 26 while (!feof($fp)) { 27 echo fgets($fp); 31 fclose($fp);
|
H A D | php_cli_server_020.phpt | 13 $fp = php_cli_server_connect(); 15 if(fwrite($fp, <<<HEADER 22 while (!feof($fp)) { 23 echo fgets($fp);
|
H A D | bug65066_100.phpt | 15 $fp = php_cli_server_connect(); 17 if(fwrite($fp, <<<HEADER 24 while (!feof($fp)) { 25 echo fgets($fp);
|
H A D | bug71005.phpt | 19 $fp = php_cli_server_connect(); 21 if(fwrite($fp, <<<HEADER 28 while (!feof($fp)) { 29 echo fgets($fp);
|
H A D | bug81305.phpt | 13 $fp = php_cli_server_connect(); 15 if (fwrite($fp, <<<HEADER 23 fpassthru($fp); 26 fclose($fp);
|
H A D | php_cli_server_012.phpt | 15 $fp = php_cli_server_connect(); 17 if(fwrite($fp, <<<HEADER 26 while (!feof($fp)) { 27 echo fgets($fp); 31 fclose($fp);
|
/PHP-7.4/ext/zlib/tests/ |
H A D | compress_zlib_wrapper.phpt | 12 $fp = fopen("compress.zlib://{$pfx}ext/xsl/tests/xslt.xsl.gz", "rb"); 13 fclose($fp); 16 $fp = fopen("compress.zlib://". __DIR__. "/../../../ext/xsl/tests/xslt.xsl.gz", "rb"); 17 fclose($fp);
|
H A D | zlib_filter_deflate2.phpt | 9 $fp = fopen('php://stdout', 'w'); 10 stream_filter_append($fp, 'zlib.deflate', STREAM_FILTER_WRITE, array('level' => 9)); 11 fwrite($fp, $text); 12 fclose($fp);
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation4.phpt | 8 $fp = fopen('File://' . $filename, 'w+'); 10 var_dump(stream_get_meta_data($fp)); 12 fclose($fp); 20 $fp = fopen($relative_filename, 'r'); 21 var_dump(stream_get_meta_data($fp)); 23 fclose($fp);
|
H A D | stream_get_meta_data_file_error.phpt | 5 /* Prototype : proto array stream_get_meta_data(resource fp) 20 $fp = null; 22 var_dump( stream_get_meta_data($fp, $extra_arg) ); 25 $fp = null; 26 var_dump(stream_get_meta_data($fp)); 29 $fp = fopen(__FILE__, 'r'); 30 fclose($fp); 31 var_dump(stream_get_meta_data($fp));
|
/PHP-7.4/ext/gd/tests/ |
H A D | imageloadfont_end_of_file_while_reading_header.phpt | 16 $fp = fopen($filename, 'wb'); 17 fwrite($fp, $bin); 18 fclose($fp); 23 $fp = fopen($filename, 'wb'); 24 fwrite($fp, $bin); 25 fclose($fp);
|
/PHP-7.4/ext/phar/ |
H A D | zip.c | 224 php_stream_close(fp); in phar_parse_zipfile() 282 php_stream_close(fp); in phar_parse_zipfile() 600 fp->writepos = 0; in phar_parse_zipfile() 601 fp->readpos = 0; in phar_parse_zipfile() 603 fp->writepos = 0; in phar_parse_zipfile() 604 fp->readpos = 0; in phar_parse_zipfile() 700 mydata->fp = fp; in phar_parse_zipfile() 897 … if (entry->fp_type == PHAR_MOD && entry->fp != entry->phar->fp && entry->fp != entry->phar->ufp) { in phar_zip_changed_apply_int() 899 entry->fp = NULL; in phar_zip_changed_apply_int() 1120 entry->fp = NULL; in phar_zip_changed_apply_int() [all …]
|
H A D | phar.c | 249 phar->fp = 0; in PHP_INI_END() 437 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_delref() 463 …if (idata->fp && idata->fp != idata->phar->fp && idata->fp != idata->phar->ufp && idata->fp != ida… in phar_entry_remove() 481 if (fp) {\ 1209 mydata->fp = fp; in phar_parse_pharfile() 1221 fp = NULL; in phar_parse_pharfile() 1363 if (fp) { in phar_create_or_parse_filename() 1520 if (!fp) { in phar_open_from_filename() 2316 if (!fp) { in phar_open_executed_filename() 2348 php_stream *fp = idata->fp; in phar_postprocess_file() local [all …]
|
/PHP-7.4/Zend/tests/ |
H A D | halt02.phpt | 6 $fp = fopen(__FILE__, "r"); 7 fseek($fp, __COMPILER_HALT_OFFSET__+1); 8 print fread($fp, 1000);
|
/PHP-7.4/ext/standard/tests/filters/ |
H A D | bug35916.phpt | 31 $fp=fopen($file, "w"); 32 stream_filter_append($fp, "strtoupper"); 33 fread($fp, 1024); 34 fwrite($fp, "Thank you\n"); 35 fclose($fp);
|
/PHP-7.4/ext/curl/tests/ |
H A D | bug45161.phpt | 18 $fp = fopen(PHP_OS_FAMILY === 'Windows' ? 'nul' : '/dev/null', 'w'); 24 curl_setopt($ch, CURLOPT_FILE, $fp); 33 curl_setopt($ch, CURLOPT_FILE, $fp); 42 fclose($fp); 43 unset($fp);
|
/PHP-7.4/win32/build/ |
H A D | mkdist.php | 161 $fp = fopen($dest, "w"); 162 fwrite($fp, $text); 163 fclose($fp); 178 $fp = gzopen($tarball, 'rb'); 183 $hdr_data = gzread($fp, 512); 219 gzseek($fp, gztell($fp) + $size); 277 fwrite($fp, <<<EOT 292 fprintf($fp, "%s\r\n", $ext); 294 fwrite($fp, "\r\n\r\n"); 307 fwrite($fp, "\r\n"); [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | bug38450.phpt | 89 $fp = fopen("var://myvar", "r+"); 91 fwrite($fp, "line1\n"); 92 fwrite($fp, "line2\n"); 93 fwrite($fp, "line3\n"); 95 rewind($fp); 96 while (!feof($fp)) { 97 echo fgets($fp); 99 fclose($fp);
|
H A D | bug38450_1.phpt | 89 $fp = fopen("var://myvar", "r+"); 91 fwrite($fp, "line1\n"); 92 fwrite($fp, "line2\n"); 93 fwrite($fp, "line3\n"); 95 rewind($fp); 96 while (!feof($fp)) { 97 echo fgets($fp); 99 fclose($fp);
|
/PHP-7.4/ext/fileinfo/tests/ |
H A D | finfo_file_stream_001.phpt | 9 $fp = finfo_open(FILEINFO_MIME_TYPE); 18 finfo_file($fp, $zip), 19 finfo_file($fp, $dir), 20 finfo_file($fp, $png)
|