Home
last modified time | relevance | path

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

12345678910>>...37

/PHP-5.6/ext/phar/tests/
H A Dopen_for_write_existing.phpt20 $fp = fopen($pname . '/b/c.php', 'wb');
21 fwrite($fp, b'extra');
22 fclose($fp);
H A Dopen_for_write_newfile.phpt20 $fp = fopen($pname . '/b/new.php', 'wb');
21 fwrite($fp, b'extra');
22 fclose($fp);
/PHP-5.6/ext/standard/tests/strings/
H A Dstr_replace_basic.phpt29 $fp = fopen( __FILE__, "r" );
30 $fp_copy = $fp;
33 fclose($fp);
H A Dvfprintf_variation20.phpt88 if (!($fp = fopen($data_file, 'wt')))
91 fprintf($fp, "\n*** Testing vprintf() with with unexpected values for format argument ***\n");
95 fprintf( $fp, "\n-- Iteration %d --\n",$counter);
96 vfprintf($fp, $value, $args);
100 fclose($fp);
H A Dvfprintf_variation21.phpt85 if (!($fp = fopen($data_file, 'wt')))
88 fprintf($fp, "\n*** Testing vprintf() with unexpected values for args argument ***\n");
92 fprintf($fp, "\n-- Iteration %d --\n",$counter);
93 vfprintf($fp, $format, $value);
97 fclose($fp);
/PHP-5.6/sapi/fpm/tests/
H A D002.phpt29 while (($i++ < 30) && !($fp = @fsockopen('127.0.0.1', $port))) {
32 if ($fp) {
34 fclose($fp);
H A D014.phpt30 while (($i++ < 30) && !($fp = @fsockopen('127.0.0.1', $port))) {
33 if ($fp) {
35 fclose($fp);
H A D003.phpt32 while (($i++ < 30) && !($fp = fsockopen('[::1]', $port))) {
35 if ($fp) {
37 fclose($fp);
/PHP-5.6/ext/curl/tests/
H A Dcurl_write_file.phpt16 $fp = fopen($log_file, 'w+');
17 fwrite($fp, "test");
18 fclose($fp);
/PHP-5.6/ext/standard/tests/file/
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);
H A Dfseek_variation2.phpt7 /* Prototype : proto int fseek(resource fp, int offset [, int whence])
15 $fp = fopen(__FILE__, 'r');
65 var_dump( fseek($fp, $offset, $value) );
66 var_dump( ftell($fp));
69 fclose($fp);
/PHP-5.6/Zend/
H A Dzend_stream.c117 if (file_handle->handle.fp && fstat(fileno(file_handle->handle.fp), &buf) == 0) { in zend_stream_fsize()
136 handle->handle.fp = zend_fopen(filename, &handle->opened_path TSRMLS_CC); in zend_stream_open()
141 return (handle->handle.fp) ? SUCCESS : FAILURE; in zend_stream_open()
195 file_handle->handle.fp = fdopen(file_handle->handle.fd, "rb");
198 if (!file_handle->handle.fp) {
234 if (file_handle->handle.fp &&
238 … *buf = mmap(0, size + ZEND_MMAP_AHEAD, PROT_READ, MAP_PRIVATE, fileno(file_handle->handle.fp), 0);
240 long offset = ftell(file_handle->handle.fp);
310 fclose(fh->handle.fp);
345 return fh1->handle.fp == fh2->handle.fp;
/PHP-5.6/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-5.6/ext/phar/tests/zip/
H A Dopen_for_write_existing.phpt28 $fp = fopen($alias . '/b/c.php', 'wb');
29 fwrite($fp, b'extra');
30 fclose($fp);
H A Dopen_for_write_newfile.phpt28 $fp = fopen($alias . '/b/new.php', 'wb');
29 fwrite($fp, b'extra');
30 fclose($fp);
/PHP-5.6/ext/phar/tests/tar/
H A Dopen_for_write_existing.phpt29 $fp = fopen($alias . '/b/c.php', 'wb');
30 fwrite($fp, b'extra');
31 fclose($fp);
H A Dopen_for_write_newfile.phpt29 $fp = fopen($alias . '/b/new.php', 'wb');
30 fwrite($fp, b'extra');
31 fclose($fp);
/PHP-5.6/ext/pdo/tests/
H A Dbug_34630.phpt27 $fp = tmpfile();
28 fwrite($fp, "I am the LOB data");
29 rewind($fp);
40 $insert->bindValue(':blob', $fp, PDO::PARAM_LOB);
/PHP-5.6/Zend/tests/
H A Dstrict_001.phpt8 $fp = fopen(__FILE__, 'r');
12 var_dump($array[$fp]);
/PHP-5.6/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-5.6/ext/posix/tests/
H A Dposix_access_error_modes.phpt24 $fp = fopen($filename,"w");
25 fwrite($fp,"foo");
26 fclose($fp);
/PHP-5.6/ext/libxml/tests/
H A Dbug63389.phpt7 $fp = fopen("php://input", "r");
8 libxml_set_streams_context($fp);
/PHP-5.6/ext/mysqli/tests/
H A D061.phpt24 function my_read($fp, &$buffer, $buflen, &$error) {
25 $buffer = strrev(fread($fp, $buflen));
34 $fp = fopen($filename, "w");
35 fwrite($fp, b"foo;bar");
36 fclose($fp);

Completed in 49 milliseconds

12345678910>>...37