/PHP-5.6/sapi/cli/tests/ |
H A D | bug43177.phpt | 39 $fp = fsockopen($host, $port, $errno, $errstr, 0.5); 40 if (!$fp) { 44 if(fwrite($fp, <<<HEADER 51 while (!feof($fp)) { 52 echo fgets($fp);
|
/PHP-5.6/ext/curl/tests/ |
H A D | bug54798.phpt | 11 $fp = fopen(dirname(__FILE__) . '/bug54798.tmp', 'w+'); 24 curl_setopt($ch, $curl_option, $fp); 29 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);
|
H A D | curl_write_callback.phpt | 21 $fp = fopen($log_file, 'w+'); 22 fwrite($fp, "test"); 23 fclose($fp);
|
H A D | curl_write_return.phpt | 16 $fp = fopen($log_file, 'w+'); 17 fwrite($fp, "test"); 18 fclose($fp);
|
H A D | curl_write_stdout.phpt | 15 $fp = fopen($log_file, 'w+'); 16 fwrite($fp, "test"); 17 fclose($fp);
|
/PHP-5.6/sapi/phpdbg/ |
H A D | phpdbg_utils.c | 227 PHPDBG_API int phpdbg_print(int type TSRMLS_DC, FILE *fp, const char *format, ...) /* {{{ */ in phpdbg_print() argument 244 rc = fprintf(fp, in phpdbg_print() 248 rc = fprintf(fp, "[%s]\n", buffer); in phpdbg_print() 254 rc = fprintf(fp, in phpdbg_print() 258 rc = fprintf(fp, "[%s]\n", buffer); in phpdbg_print() 264 rc = fprintf(fp, "%s\n", buffer); in phpdbg_print() 266 rc = fprintf(fp, "\n"); in phpdbg_print() 272 rc = fprintf(fp, "%s", buffer); in phpdbg_print() 281 rc = fprintf(fp, "[%ld %.8F]: %s\n", tp.tv_sec, tp.tv_usec / 1000000.00, buffer); in phpdbg_print() 296 PHPDBG_API int phpdbg_rlog(FILE *fp, const char *fmt, ...) { /* {{{ */ in phpdbg_rlog() argument [all …]
|
/PHP-5.6/ext/standard/tests/streams/ |
H A D | bug67626.phpt | 29 $fp = fopen('my://foobar', 'r+'); 32 fread($fp, 42); 38 fwrite($fp, 'foobar');
|
/PHP-5.6/ext/pdo_mysql/tests/ |
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-5.6/ext/standard/tests/file/ |
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, ""));
|
H A D | fstat_variation8.phpt | 7 $fp = fopen (__FILE__, 'r'); 8 $fstat_result = fstat($fp); 9 fclose($fp);
|
H A D | fstat_basic.phpt | 5 $fp = fopen (__FILE__, 'r'); 6 var_dump(fstat( $fp ) ); 7 fclose($fp);
|
H A D | fgets_error.phpt | 17 $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 D | fgetss_error.phpt | 17 $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 D | bug26003.phpt | 5 $fp = fopen(dirname(__FILE__).'/test3.csv', 'r'); 6 var_dump(fgetcsv($fp, 4096));
|
/PHP-5.6/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-5.6/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() 566 if (!etemp.fp) { in phar_get_or_create_entry_data() 619 ret->fp = entry->fp; in phar_get_or_create_entry_data() 804 dummy.fp = ufp; in phar_open_entry_fp() 844 if (!entry->fp) { in phar_create_writeable_entry() 867 php_stream *fp; in phar_separate_entry_fp() local 879 if (fp == NULL) { in phar_separate_entry_fp() [all …]
|
/PHP-5.6/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-5.6/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));
|
/PHP-5.6/ext/dba/libcdb/ |
H A D | cdb.c | 95 void cdb_init(struct cdb *c, php_stream *fp TSRMLS_DC) in cdb_init() 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-5.6/ext/opcache/ |
H A D | shared_alloc_win32.c | 173 FILE *fp = fopen(mmap_base_file, "r"); in zend_shared_alloc_reattach() local 177 if (!fp) { in zend_shared_alloc_reattach() 183 if (!fscanf(fp, "%p", &wanted_mapping_base)) { in zend_shared_alloc_reattach() 187 fclose(fp); in zend_shared_alloc_reattach() 190 fclose(fp); in zend_shared_alloc_reattach() 350 FILE *fp = fopen(mmap_base_file, "w"); in create_segments() local 352 if (!fp) { in create_segments() 358 fprintf(fp, "%p\n", mapping_base); in create_segments() 359 fclose(fp); in create_segments()
|
/PHP-5.6/ext/gd/tests/ |
H A D | imageloadfont_invalid.phpt | 11 $fp = fopen($filename, 'wb'); 12 fwrite($fp, $bin); 13 fclose($fp);
|
/PHP-5.6/sapi/fpm/tests/ |
H A D | 013.phpt | 30 while (($i++ < 30) && !($fp = @fsockopen('127.0.0.1', $port))) { 33 if ($fp) { 35 fclose($fp);
|