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

Revision 20119, 460 bytes checked in by nanasess, 13 years ago (diff)

module 以下は svn:keywords を除外

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