/PHP-5.5/ext/phar/tests/cache_list/files/ |
H A D | phar_test.inc | 67 $fp = gzopen($fname, 'w'); 68 fwrite($fp, $file); 69 fclose($fp); 73 $fp = bzopen($fname, 'w'); 74 fwrite($fp, $file); 75 fclose($fp);
|
/PHP-5.5/ext/phar/tests/files/ |
H A D | phar_test.inc | 67 $fp = gzopen($fname, 'w'); 68 fwrite($fp, $file); 69 fclose($fp); 73 $fp = bzopen($fname, 'w'); 74 fwrite($fp, $file); 75 fclose($fp);
|
/PHP-5.5/ext/fileinfo/libmagic/ |
H A D | apptype.c | 52 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-5.5/ext/spl/tests/ |
H A D | SplFileObject_fgetcsv_delimiter_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_enclosure_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fputcsv($fp, array( 12 fclose($fp);
|
H A D | SplFileObject_fgetcsv_escape_error.phpt | 5 $fp = fopen('SplFileObject__fgetcsv.csv', 'w+'); 6 fwrite($fp, '"aaa","b""bb","ccc"'); 7 fclose($fp);
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_filerange_crc.c | 45 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, in _zip_filerange_crc() argument 53 if (fseeko(fp, start, SEEK_SET) != 0) { in _zip_filerange_crc() 60 if ((n=fread(buf, 1, n, fp)) <= 0) { in _zip_filerange_crc()
|
/PHP-5.5/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 | fstat_error.phpt | 5 $fp = fopen (__FILE__, 'r'); 8 var_dump(fstat( $fp, $extra_arg ) ); 11 fclose($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 | 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-5.5/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-5.5/ext/xmlwriter/tests/ |
H A D | xmlwriter_set_indent_string_basic_001.phpt | 8 $fp = fopen($temp_filename, "w"); 9 fwrite ($fp, "Hi"); 10 fclose($fp);
|
H A D | xmlwriter_set_indent_string_error_001.phpt | 8 $fp = fopen($temp_filename, "w"); 9 fwrite ($fp, "Hi"); 10 fclose($fp);
|
/PHP-5.5/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-5.5/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.5/ext/mysql/tests/ |
H A D | mysql_query_load_data_openbasedir.phpt | 15 if (!$fp = fopen('./simple.csv', 'w')) 18 fclose($fp); 62 if (!$fp = fopen('./simple.csv', 'w')) 66 if (!fwrite($fp, (binary)"'97';'x';\n") || 67 !fwrite($fp, (binary)"'98';'y';\n") || 68 !fwrite($fp, (binary)"99;'z';\n")) { 72 if (!fwrite($fp, "97;'x';\n") || 73 !fwrite($fp, "98;'y';\n") || 74 !fwrite($fp, "99;'z';\n")) { 78 fclose($fp);
|
/PHP-5.5/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-5.5/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-5.5/ext/opcache/ |
H A D | shared_alloc_win32.c | 131 FILE *fp = fopen(mmap_base_file, "r"); in zend_shared_alloc_reattach() local 135 if (!fp) { in zend_shared_alloc_reattach() 141 if (!fscanf(fp, "%p", &wanted_mapping_base)) { in zend_shared_alloc_reattach() 145 fclose(fp); in zend_shared_alloc_reattach() 148 fclose(fp); in zend_shared_alloc_reattach() 303 FILE *fp = fopen(mmap_base_file, "w"); in create_segments() local 305 if (!fp) { in create_segments() 311 fprintf(fp, "%p\n", mapping_base); in create_segments() 312 fclose(fp); in create_segments()
|
/PHP-5.5/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-5.5/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!
|
/PHP-5.5/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.5/ext/standard/tests/strings/ |
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);
|