Home
last modified time | relevance | path

Searched refs:fp (Results 176 – 200 of 624) sorted by relevance

12345678910>>...25

/PHP-7.4/ext/fileinfo/libmagic/
H A Dapptype.c52 FILE *fp; in file_os2_apptype() local
68 if ((fp = fopen(path, "wb")) == NULL) { in file_os2_apptype()
72 if (fwrite(buf, 1, nb, fp) != nb) { in file_os2_apptype()
75 (void)fclose(fp); in file_os2_apptype()
78 (void)fclose(fp); in file_os2_apptype()
/PHP-7.4/sapi/cli/tests/
H A Dupload_2G.phpt53 $fp = php_cli_server_connect();
61 fwrite($fp, <<<EOF
73 fwrite($fp, $data) or die("write failed @ ($i)");
76 fwrite($fp, $post) or die("write post failed");
78 while (!feof($fp)) {
79 $output .= fgets($fp);
82 fclose($fp);
/PHP-7.4/ext/standard/tests/file/
H A Duserstreams.phpt180 if (!$fp || !is_resource($fp)) {
240 rewind($fp);
250 $upb = ftell($fp);
252 $upa = ftell($fp);
288 if (ftell($fp) != ftell($tf)) {
293 while(!feof($fp)) {
294 $uline = fgets($fp, 1024);
310 rewind($fp);
311 var_dump(ftell($fp));
312 $data = fgets($fp);
[all …]
H A Dbug26003.phpt5 $fp = fopen(__DIR__.'/test3.csv', 'r');
6 var_dump(fgetcsv($fp, 4096));
H A Dflock_error.phpt16 $fp = fopen($file, "w");
34 var_dump(flock($fp, $operation));
40 $fp = fopen($file, "w");
41 fclose($fp);
42 var_dump(flock($fp, LOCK_SH|LOCK_NB));
48 var_dump(flock($fp));
51 var_dump(flock($fp, "", $var, ""));
H A Dfstat_basic.phpt5 $fp = fopen (__FILE__, 'r');
6 var_dump(fstat( $fp ) );
7 fclose($fp);
H A Dfstat_variation8.phpt7 $fp = fopen (__FILE__, 'r');
8 $fstat_result = fstat($fp);
9 fclose($fp);
/PHP-7.4/ext/zlib/tests/
H A Dbug_40189.phpt13 $fp = fopen('data://text/plain;base64,AwCFRi98wqppK23l2/7kIY8AlyEdAgAAAEdCTUI=', 'r');
14 stream_filter_append($fp, 'zlib.inflate', STREAM_FILTER_READ);
15 var_dump(stream_copy_to_stream($fp, $gp, 5));
16 fclose($fp);
H A Dzlib_wrapper_level.phpt15 $fp = fopen("compress.zlib://$filename", 'w', false, $ctx);
17 fwrite($fp, $thisfile);
19 fclose($fp);
/PHP-7.4/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_blobfromsteam.phpt14 $fp = fopen($file, 'w');
15 if (!$fp)
18 if (4 != fwrite($fp, 'test')) {
21 fclose($fp);
42 $fp = fopen($file, 'w');
43 if (!$fp || !fwrite($fp, $blob)) {
48 fclose($fp);
64 $fp = fopen($file, 'r');
65 if (!$fp) {
73 if (true !== ($tmp = $stmt->bindParam(2, $fp, PDO::PARAM_LOB))) {
H A Dpdo_mysql___construct_uri.phpt23 if ($fp = @fopen($file, 'w')) {
25 fwrite($fp, $dsn);
26 fclose($fp);
40 if ($fp = @fopen($file, 'w')) {
41 fwrite($fp, sprintf('mysql:dbname=letshopeinvalid;%s%s',
43 fclose($fp);
/PHP-7.4/pear/
H A Dfetch.php66 $fp = fopen($argv[1], "r", false, $ctx); variable
67 if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
/PHP-7.4/ext/standard/tests/filters/
H A Dchunked_001.phpt22 $fp = fopen($name, "r");
23 stream_filter_append($fp, "dechunk", STREAM_FILTER_READ);
24 var_dump(stream_get_contents($fp));
25 fclose($fp);
/PHP-7.4/ext/standard/tests/streams/
H A Dbug67626.phpt29 $fp = fopen('my://foobar', 'r+');
32 fread($fp, 42);
38 fwrite($fp, 'foobar');
/PHP-7.4/ext/curl/tests/
H A Dbug54798-unix.phpt14 $fp = fopen(__DIR__ . '/bug54798.tmp', 'w+');
27 curl_setopt($ch, $curl_option, $fp);
32 fclose($fp); // <-- premature close of $fp caused a crash!
H A Dbug54798.phpt11 $fp = fopen(__DIR__ . '/bug54798.tmp', 'w+');
24 curl_setopt($ch, $curl_option, $fp);
29 fclose($fp); // <-- premature close of $fp caused a crash!
H A Dcurl_reset.phpt13 $fp = fopen($log_file, 'w+');
14 fwrite($fp, "test");
15 fclose($fp);
H A Dcurl_write_callback.phpt21 $fp = fopen($log_file, 'w+');
22 fwrite($fp, "test");
23 fclose($fp);
H A Dcurl_write_return.phpt16 $fp = fopen($log_file, 'w+');
17 fwrite($fp, "test");
18 fclose($fp);
/PHP-7.4/ext/standard/tests/array/
H A Dsizeof_variation2.phpt15 $fp = fopen(__FILE__, "r");
21 /* 1 */ array($fp, "resource" => $fp),
34 /* 14 */ array($fp, "resource1" => $fp, 'resource2' => $fp, array( $fp, 'type' => $fp) )
/PHP-7.4/ext/xml/tests/
H A Dxml_closures_001.phpt28 $fp = fopen("xmltest.xml", "r");
29 while ($data = fread($fp, 4096)) {
30 xml_parse($xp, $data, feof($fp));
/PHP-7.4/ext/standard/tests/strings/
H A Dvfprintf_error1.phpt17 $fp = fopen( $file, "a+" );
23 var_dump( vfprintf( $fp, $format, $args, $extra_arg ) );
24 var_dump( vfprintf( $fp, "Foo %d", array(6), "bar" ) );
27 fclose($fp);
/PHP-7.4/ext/dba/libcdb/
H A Dcdb.c95 void cdb_init(struct cdb *c, php_stream *fp) in cdb_init() argument
99 c->fp = fp; in cdb_init()
106 if (php_stream_seek(c->fp, pos, SEEK_SET) == -1) { in cdb_read()
113 r = php_stream_read(c->fp, buf, len); in cdb_read()
/PHP-7.4/ext/standard/tests/dir/
H A Drewinddir_variation3.phpt18 var_dump($fp = fopen(__FILE__, 'r'));
20 $result1 = fread($fp, 5);
21 var_dump(rewinddir($fp));
22 $result2 = fread($fp, 5);
/PHP-7.4/ext/phar/
H A Dshortarc.php115 $fp = fopen(__FILE__, 'rb');
116 fseek($fp, self::LEN);
117 $L = unpack('V', $a = (binary)fread($fp, 4));
125 $last = (binary)fread($fp, $read);
183 file_put_contents($temp . '/' . $path, self::extractFile($path, $file, $fp));
245 static function extractFile($path, $entry, $fp) argument
252 $data .= @fread($fp, $c);
256 $data .= @fread($fp, 8192);

Completed in 34 milliseconds

12345678910>>...25