diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/standard/tests/file/file_put_contents.phpt | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/standard/tests/file/file_put_contents.phpt')
-rw-r--r-- | ext/standard/tests/file/file_put_contents.phpt | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/ext/standard/tests/file/file_put_contents.phpt b/ext/standard/tests/file/file_put_contents.phpt deleted file mode 100644 index de08141b80..0000000000 --- a/ext/standard/tests/file/file_put_contents.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -file_put_contents() and invalid parameters ---FILE-- -<?php - -$file = dirname(__FILE__)."/file_put_contents.txt"; - -$context = stream_context_create(); - -var_dump(file_put_contents($file, $context)); -var_dump(file_put_contents($file, new stdClass)); -$fp = fopen($file, "r"); -var_dump(file_put_contents($file, "string", 0, $fp)); - -@unlink($file); - -echo "Done\n"; -?> ---EXPECTF-- -Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on line %d -bool(false) - -Warning: file_put_contents(): The 2nd parameter should be either a string or an array in %s on line %d -bool(false) - -Warning: file_put_contents(): supplied resource is not a valid Stream-Context resource in %s on line %d -int(6) -Done |