Home
last modified time | relevance | path

Searched refs:fp (Results 201 – 225 of 901) sorted by relevance

12345678910>>...37

/PHP-7.2/ext/curl/tests/
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);
H A Dcurl_write_stdout.phpt15 $fp = fopen($log_file, 'w+');
16 fwrite($fp, "test");
17 fclose($fp);
H A Dcurl_write_file.phpt16 $fp = fopen($log_file, 'w+');
17 fwrite($fp, "test");
18 fclose($fp);
/PHP-7.2/ext/standard/tests/file/
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);
H A Dbug26003.phpt5 $fp = fopen(dirname(__FILE__).'/test3.csv', 'r');
6 var_dump(fgetcsv($fp, 4096));
H A Dfgets_error.phpt17 $fp = fopen(__FILE__, "r");
18 var_dump( fgets($fp, 10, $fp) );
23 var_dump( fgets($fp, $len) );
25 var_dump( fgets($fp, $len) );
27 var_dump( fgets($fp, $len) ); // return length - 1 always, expect false
48 fclose($fp);
49 var_dump(fgets($fp,10));
H A Dfgetss_error.phpt17 $fp = fopen(__FILE__, "r");
18 var_dump( fgetss($fp, 100, '<p><a>', $fp) );
24 var_dump( fgetss($fp, $len, $allowable_tags) );
26 var_dump( fgetss($fp, $len, $allowable_tags) );
28 var_dump( fgetss($fp, $len, $allowable_tags) ); // return length - 1 always, expect false
47 fclose($fp);
48 var_dump(fgetss($fp,10,$allowable_tags));
H A Dunlink_variation1.phpt10 $fp = fopen($filename, 'w');
11 fclose($fp);
41 $fp = fopen($filename, "w");
42 fclose($fp);
60 $fp = fopen($filename, "w");
61 fclose($fp);
H A Drename_variation3-win32.phpt26 $fp = fopen($filename, "w");
27 if (!$fp) {
30 fclose($fp);
46 $fp = fopen($filename, "w");
47 fclose($fp);
H A Dreadfile_variation1.phpt24 $fp = fopen($filename, "w");
25 fill_file($fp, "text_with_new_line", 50);
26 fclose($fp);
/PHP-7.2/Zend/
H A Dzend_stream.c116 if (file_handle->handle.fp && zend_fstat(fileno(file_handle->handle.fp), &buf) == 0) { in zend_stream_fsize()
135 handle->handle.fp = zend_fopen(filename, &handle->opened_path); in zend_stream_open()
140 return (handle->handle.fp) ? SUCCESS : FAILURE; in zend_stream_open()
185 file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb"); in zend_stream_fixup()
188 if (!file_handle->handle.fp) { in zend_stream_fixup()
224 if (file_handle->handle.fp && in zend_stream_fixup()
228 … *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0); in zend_stream_fixup()
230 zend_long offset = ftell(file_handle->handle.fp); in zend_stream_fixup()
300 fclose(fh->handle.fp); in zend_file_handle_dtor()
335 return fh1->handle.fp == fh2->handle.fp; in zend_compare_file_handles()
/PHP-7.2/ext/gd/tests/
H A Dimageloadfont_invalid.phpt11 $fp = fopen($filename, 'wb');
12 fwrite($fp, $bin);
13 fclose($fp);
/PHP-7.2/ext/opcache/tests/
H A Dphp_cli_server.inc36 $fp = @fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT);
43 if ($fp) {
49 if ($fp) {
50 fclose($fp);
/PHP-7.2/ext/phar/tests/
H A Dopen_for_write_existing.phpt20 $fp = fopen($pname . '/b/c.php', 'wb');
21 fwrite($fp, 'extra');
22 fclose($fp);
H A Dopen_for_write_newfile.phpt20 $fp = fopen($pname . '/b/new.php', 'wb');
21 fwrite($fp, 'extra');
22 fclose($fp);
/PHP-7.2/ext/standard/tests/strings/
H A Dstr_replace_basic.phpt29 $fp = fopen( __FILE__, "r" );
30 $fp_copy = $fp;
33 fclose($fp);
/PHP-7.2/ext/dba/libcdb/
H A Dcdb_make.c42 return php_stream_write(c->fp, buf, sz) == sz ? 0 : -1; in cdb_make_write()
65 c->fp = f; in cdb_make_start()
71 return php_stream_tell(c->fp); in cdb_make_start()
229 if (php_stream_flush(c->fp) != 0) in cdb_make_finish()
231 php_stream_rewind(c->fp); in cdb_make_finish()
232 if (php_stream_tell(c->fp) != 0) in cdb_make_finish()
236 return php_stream_flush(c->fp); in cdb_make_finish()
/PHP-7.2/ext/dba/
H A Ddba.c434 if (info->fp && info->fp != info->lock.fp) { in dba_close()
441 if (info->lock.fp) { in dba_close()
898 if (!info->lock.fp) { in php_dba_open()
908 if (!info->lock.fp) { in php_dba_open()
910 if (info->lock.fp) { in php_dba_open()
924 if (!info->lock.fp) { in php_dba_open()
941 info->fp = info->lock.fp; /* use the same stream for locking and database access */ in php_dba_open()
945 if (!info->fp) { in php_dba_open()
968 close_both = (info->fp != info->lock.fp); in php_dba_open()
973 info->fp = NULL; in php_dba_open()
[all …]
/PHP-7.2/Zend/tests/function_arguments/
H A Dargument_count_correct.phpt15 $fp = fopen(__FILE__, "r");
16 fclose($fp);
H A Dargument_count_correct_strict.phpt15 $fp = fopen(__FILE__, "r");
16 fclose($fp);
/PHP-7.2/ext/standard/tests/array/
H A Darray_product_variation1.phpt16 $fp = fopen(__FILE__, "r");
20 "resource" => $fp, "object" => new A(), "null" => null,
29 fclose($fp);
/PHP-7.2/ext/phar/tests/tar/
H A Dopen_for_write_existing.phpt29 $fp = fopen($alias . '/b/c.php', 'wb');
30 fwrite($fp, 'extra');
31 fclose($fp);
/PHP-7.2/ext/phar/tests/zip/
H A Dopen_for_write_existing.phpt28 $fp = fopen($alias . '/b/c.php', 'wb');
29 fwrite($fp, 'extra');
30 fclose($fp);

Completed in 36 milliseconds

12345678910>>...37