source: branches/version-2_13-dev/data/module/Compat/tests/function/file_get_contents.phpt @ 20119

Revision 20119, 407 bytes checked in by nanasess, 15 years ago (diff)

module 以下は svn:keywords を除外

  • Property svn:eol-style set to LF
Line 
1--TEST--
2Function -- file_get_contents
3--SKIPIF--
4<?php if (function_exists('file_get_contents')) { echo 'skip'; } ?>
5--FILE--
6<?php
7require_once 'PHP/Compat.php';
8PHP_Compat::loadFunction('file_get_contents');
9
10$tmpfname = tempnam('/tmp', 'php');
11$handle = fopen($tmpfname, 'w');
12fwrite($handle, "test test");
13fclose($handle);
14
15echo file_get_contents($tmpfname);
16
17unlink($tmpfname);
18?>
19--EXPECT--
20test test
Note: See TracBrowser for help on using the repository browser.