/PHP-7.2/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_stmt_blobfromsteam.phpt | 14 $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 D | pdo_mysql___construct_uri.phpt | 23 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.2/ext/zlib/tests/ |
H A D | bug_40189.phpt | 13 $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);
|
/PHP-7.2/ext/standard/tests/file/ |
H A D | fstat.phpt | 8 $fp = fopen($filename, "w"); 9 var_dump(fstat($fp)); 10 fclose($fp); 11 var_dump(fstat($fp));
|
H A D | bug12556.phpt | 5 $fp = fopen(dirname(__FILE__)."/test.csv", "r"); 6 while($line = fgetcsv($fp, 24)) { 10 fclose($fp);
|
H A D | fstat_error.phpt | 5 $fp = fopen (__FILE__, 'r'); 8 var_dump(fstat( $fp, $extra_arg ) ); 11 fclose($fp);
|
H A D | flock_error.phpt | 14 $fp = fopen($file, "w"); 32 var_dump(flock($fp, $operation)); 38 $fp = fopen($file, "w"); 39 fclose($fp); 40 var_dump(flock($fp, LOCK_SH|LOCK_NB)); 46 var_dump(flock($fp)); 49 var_dump(flock($fp, "", $var, ""));
|
/PHP-7.2/ext/xmlwriter/tests/ |
H A D | xmlwriter_set_indent_string_error_001.phpt | 8 $fp = fopen($temp_filename, "w"); 9 fwrite ($fp, "Hi"); 10 fclose($fp);
|
/PHP-7.2/ext/standard/tests/filters/ |
H A D | chunked_001.phpt | 22 $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.2/ext/standard/tests/array/ |
H A D | sizeof_variation2.phpt | 15 $fp = fopen(__FILE__, "r"); 21 /* 1 */ array($fp, "resource" => $fp), 34 /* 14 */ array($fp, "resource1" => $fp, 'resource2' => $fp, array( $fp, 'type' => $fp) )
|
/PHP-7.2/pear/ |
H A D | fetch.php | 66 $fp = fopen($argv[1], "r", false, $ctx); variable 67 if (is_resource($fp) && file_put_contents($argv[2], $fp)) {
|
/PHP-7.2/sapi/cli/tests/ |
H A D | bug43177.phpt | 42 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 43 if (!$fp) { 47 if(fwrite($fp, <<<HEADER 54 while (!feof($fp)) { 55 echo fgets($fp);
|
/PHP-7.2/ext/zip/lib/ |
H A D | zip_fdopen.c | 45 FILE *fp; in zip_fdopen() local 63 if ((fp=fdopen(fd, "rb")) == NULL) { in zip_fdopen() 70 if ((src = zip_source_filep_create(fp, 0, -1, &error)) == NULL) { in zip_fdopen()
|
/PHP-7.2/ext/standard/tests/streams/ |
H A D | bug67626.phpt | 29 $fp = fopen('my://foobar', 'r+'); 32 fread($fp, 42); 38 fwrite($fp, 'foobar');
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | vfprintf_error1.phpt | 17 $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);
|
H A D | vfprintf_error2.phpt | 17 $fp = fopen( $file, "a+" ); 21 var_dump( vfprintf($fp, $format) ); 22 var_dump( vfprintf( $fp ) ); 26 fclose($fp);
|
/PHP-7.2/ext/curl/tests/ |
H A D | bug54798-win32.phpt | 14 $fp = fopen(dirname(__FILE__) . '/bug54798.tmp', 'w+'); 27 curl_setopt($ch, $curl_option, $fp); 32 fclose($fp); // <-- premature close of $fp caused a crash!
|
H A D | bug54798.phpt | 14 $fp = fopen(dirname(__FILE__) . '/bug54798.tmp', 'w+'); 27 curl_setopt($ch, $curl_option, $fp); 32 fclose($fp); // <-- premature close of $fp caused a crash!
|
H A D | curl_reset.phpt | 13 $fp = fopen($log_file, 'w+'); 14 fwrite($fp, "test"); 15 fclose($fp);
|
/PHP-7.2/ext/phar/ |
H A D | shortarc.php | 115 $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);
|
H A D | util.c | 109 return entry->fp; in phar_get_efp() 112 if (!entry->fp) { in phar_get_efp() 115 return entry->fp; in phar_get_efp() 125 if (!fp) { in phar_seek_efp() 558 if (!etemp.fp) { in phar_get_or_create_entry_data() 611 ret->fp = entry->fp; in phar_get_or_create_entry_data() 796 dummy.fp = ufp; in phar_open_entry_fp() 836 if (!entry->fp) { in phar_create_writeable_entry() 859 php_stream *fp; in phar_separate_entry_fp() local 871 if (fp == NULL) { in phar_separate_entry_fp() [all …]
|
/PHP-7.2/ext/dba/libcdb/ |
H A D | cdb.c | 95 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.2/ext/opcache/ |
H A D | shared_alloc_win32.c | 145 FILE *fp = fopen(mmap_base_file, "r"); in zend_shared_alloc_reattach() local 148 if (!fp) { in zend_shared_alloc_reattach() 155 if (!fscanf(fp, "%p", &wanted_mapping_base)) { in zend_shared_alloc_reattach() 159 fclose(fp); in zend_shared_alloc_reattach() 162 fclose(fp); in zend_shared_alloc_reattach() 329 FILE *fp = fopen(mmap_base_file, "w"); in create_segments() local 330 if (!fp) { in create_segments() 337 fprintf(fp, "%p\n", mapping_base); in create_segments() 338 fclose(fp); in create_segments()
|
/PHP-7.2/ext/standard/tests/dir/ |
H A D | rewinddir_variation3.phpt | 18 var_dump($fp = fopen(__FILE__, 'r')); 20 $result1 = fread($fp, 5); 21 var_dump(rewinddir($fp)); 22 $result2 = fread($fp, 5);
|
/PHP-7.2/ext/xml/tests/ |
H A D | xml_closures_001.phpt | 28 $fp = fopen("xmltest.xml", "r"); 29 while ($data = fread($fp, 4096)) { 30 xml_parse($xp, $data, feof($fp));
|