From 340164c64e90d44b1bdf620b514166db1f76cc98 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 24 Jun 2026 00:47:20 +0900 Subject: test: port more unimplemented tests Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe-php-shim/src/fs.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/shirabe-php-shim/src/fs.rs') diff --git a/crates/shirabe-php-shim/src/fs.rs b/crates/shirabe-php-shim/src/fs.rs index ecbe5c4..f12d7bf 100644 --- a/crates/shirabe-php-shim/src/fs.rs +++ b/crates/shirabe-php-shim/src/fs.rs @@ -260,8 +260,11 @@ pub fn fopen(file: &str, mode: &str) -> Result { StreamBacking::Memory(std::io::Cursor::new(Vec::new())), readable, writable, + mode.to_string(), + file.to_string(), )); } + let uri = file.to_string(); let mut options = std::fs::OpenOptions::new(); match base_mode.as_str() { "r" => options.read(true), @@ -282,6 +285,8 @@ pub fn fopen(file: &str, mode: &str) -> Result { StreamBacking::File(file), readable, writable, + mode.to_string(), + uri, )) } -- cgit v1.3.1