From c1eb810304a1075ac7c37a69aeaf6ecef01a1eff Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 15 May 2026 00:31:59 +0900 Subject: feat(port): port BufferIO.php Add fseek, rewind, strip_tags shim functions and PHP_EOL constant. --- crates/shirabe-php-shim/src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 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 06dd64a..48508a4 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -141,6 +141,20 @@ pub fn gzclose(file: PhpMixed) { todo!() } +pub fn fseek(stream: PhpMixed, offset: i64) -> i64 { + todo!() +} + +pub fn rewind(stream: PhpMixed) -> bool { + todo!() +} + +pub fn strip_tags(str: &str) -> String { + todo!() +} + +pub const PHP_EOL: &str = "\n"; + pub fn fopen(file: &str, mode: &str) -> PhpMixed { todo!() } -- cgit v1.3.1