diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-15 00:31:59 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-15 02:37:37 +0900 |
| commit | c1eb810304a1075ac7c37a69aeaf6ecef01a1eff (patch) | |
| tree | bc5045b0ad80359bef3bc111bd9d8a2598a1adfb /crates/shirabe-php-shim | |
| parent | b21e16434be1b7bf86a7fd31184998425a6ee9bf (diff) | |
| download | php-shirabe-c1eb810304a1075ac7c37a69aeaf6ecef01a1eff.tar.gz php-shirabe-c1eb810304a1075ac7c37a69aeaf6ecef01a1eff.tar.zst php-shirabe-c1eb810304a1075ac7c37a69aeaf6ecef01a1eff.zip | |
feat(port): port BufferIO.php
Add fseek, rewind, strip_tags shim functions and PHP_EOL constant.
Diffstat (limited to 'crates/shirabe-php-shim')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
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!() } |
