diff options
author | Wez Furlong <wez@php.net> | 2003-01-09 17:29:31 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-01-09 17:29:31 +0000 |
commit | 59e4fdcc10673faf313196141cd2d030715ab11a (patch) | |
tree | 20c0e72d8eb8e9419ecfdcb39440c84139cb423a /tests | |
parent | 32eb31719a6eb5514d43d9ee3e26d3446817fffa (diff) | |
download | php-git-59e4fdcc10673faf313196141cd2d030715ab11a.tar.gz |
Implement fprintf() and vfprintf().
Add a couple of tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/strings/002.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/strings/002.phpt b/tests/strings/002.phpt index 4b89506b7b..cadb5b0eb5 100644 --- a/tests/strings/002.phpt +++ b/tests/strings/002.phpt @@ -39,6 +39,13 @@ printf("printf test 27:%3\$d %d %d\n", 1, 2, 3); printf("printf test 28:%2\$02d %1\$2d\n", 1, 2); printf("printf test 29:%2\$-2d %1\$2d\n", 1, 2); print("printf test 30:"); printf("%0\$s", 1); print("x\n"); +vprintf("vprintf test 1:%2\$-2d %1\$2d\n", array(1, 2)); + +$fp = fopen("php://stdout", "w") or die("Arrggsgg!!"); +$x = fprintf($fp, "fprintf test 1:%.5s\n", "abcdefghij"); +var_dump($x); +fclose($fp); + ?> --EXPECT-- @@ -74,3 +81,6 @@ printf test 27:3 1 2 printf test 28:02 1 printf test 29:2 1 printf test 30:x +vprintf test 1:2 1 +fprintf test 1:abcde +int(20) |