⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 file_put_contents.phpt

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻 PHPT
字号:
--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 %dbool(false)Warning: file_put_contents(): 2nd parameter must be non-object (for now) in %s on line %dbool(false)Warning: file_put_contents(): supplied resource is not a valid Stream-Context resource in %s on line %dint(6)Done--UEXPECTF--Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on line %dbool(false)Warning: file_put_contents(): 2nd parameter must be non-object (for now) in %s on line %dbool(false)Warning: file_put_contents(): supplied resource is not a valid Stream-Context resource in %s on line %dNotice: file_put_contents(): 6 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %dint(6)Done

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -