From 817c056859a32bee55781899ae3e2b352c5a5457 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Wed, 6 May 2026 19:43:46 +0800 Subject: [PATCH] =?UTF-8?q?example(error):=20=E6=B7=BB=E5=8A=A0=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E7=B1=BB=E5=9E=8B=E5=8F=82=E6=95=B0=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建了 resource.php 示例文件 - 定义了接受 resource 类型参数的函数 foo - 实现了通过 fopen 打开 stdin 流的功能 - 添加了主函数调用演示 resource 参数传递 --- examples/error/resource.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/error/resource.php diff --git a/examples/error/resource.php b/examples/error/resource.php new file mode 100644 index 00000000..6e757278 --- /dev/null +++ b/examples/error/resource.php @@ -0,0 +1,11 @@ +