From 33550b03c1724fbc8c1c8630c3b03fca1f0c0dc7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Jun 2026 21:44:46 +0900 Subject: feat(binary-installer): use file_get_contents with offset and length Add file_get_contents5 shim supporting use_include_path/context/offset/ length, and wire it into BinaryInstaller to read the first 500 bytes of the bin file, replacing the offset-less stub and its phase-b TODO. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe-php-shim/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crates/shirabe-php-shim/src') diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 9282795..6acdd0e 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1421,6 +1421,16 @@ pub fn file_get_contents(_path: &str) -> Option { todo!() } +pub fn file_get_contents5( + _path: &str, + _use_include_path: bool, + _context: PhpMixed, + _offset: i64, + _length: Option, +) -> Option { + todo!() +} + pub fn strtolower(_s: &str) -> String { todo!() } -- cgit v1.3.1