diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 21:44:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 21:44:46 +0900 |
| commit | 33550b03c1724fbc8c1c8630c3b03fca1f0c0dc7 (patch) | |
| tree | 5558f28ea897408607fd5008d594017b7ee27210 /crates/shirabe-php-shim/src | |
| parent | 8bd02532cd04ee12d7595029c206f3dc5ab9dd96 (diff) | |
| download | php-shirabe-33550b03c1724fbc8c1c8630c3b03fca1f0c0dc7.tar.gz php-shirabe-33550b03c1724fbc8c1c8630c3b03fca1f0c0dc7.tar.zst php-shirabe-33550b03c1724fbc8c1c8630c3b03fca1f0c0dc7.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<String> { todo!() } +pub fn file_get_contents5( + _path: &str, + _use_include_path: bool, + _context: PhpMixed, + _offset: i64, + _length: Option<i64>, +) -> Option<String> { + todo!() +} + pub fn strtolower(_s: &str) -> String { todo!() } |
