diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-24 05:14:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-24 05:19:49 +0900 |
| commit | 6dcc2125974e350d1844c5ce1bb3562e224f3435 (patch) | |
| tree | 7287119a8cd6aad599acb41e796095c3e204c35f /crates/shirabe-php-shim/src | |
| parent | a8623a5e867825400073d2597dfb3118d6624ef7 (diff) | |
| download | php-shirabe-6dcc2125974e350d1844c5ce1bb3562e224f3435.tar.gz php-shirabe-6dcc2125974e350d1844c5ce1bb3562e224f3435.tar.zst php-shirabe-6dcc2125974e350d1844c5ce1bb3562e224f3435.zip | |
refactor(php-shim): remove is_resource/is_resource_value
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/stream.rs | 4 | ||||
| -rw-r--r-- | crates/shirabe-php-shim/src/var.rs | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/crates/shirabe-php-shim/src/stream.rs b/crates/shirabe-php-shim/src/stream.rs index 2ecfc62..e5e5200 100644 --- a/crates/shirabe-php-shim/src/stream.rs +++ b/crates/shirabe-php-shim/src/stream.rs @@ -240,10 +240,6 @@ pub fn stream_get_contents3(stream: &PhpResource, max_length: i64, offset: i64) stream_read_remaining(stream, max) } -pub fn is_resource_value(_resource: &PhpResource) -> bool { - true -} - pub fn get_resource_type(resource: &PhpResource) -> String { match resource { PhpResource::Process(_) => "process".to_string(), diff --git a/crates/shirabe-php-shim/src/var.rs b/crates/shirabe-php-shim/src/var.rs index 0dc7523..adaacec 100644 --- a/crates/shirabe-php-shim/src/var.rs +++ b/crates/shirabe-php-shim/src/var.rs @@ -137,11 +137,6 @@ pub fn is_a(_object_or_class: &PhpMixed, _class: &str, _allow_string: bool) -> b todo!() } -pub fn is_resource(_value: &PhpMixed) -> bool { - // PhpMixed has no resource variant, so a PhpMixed is never a resource. - false -} - pub fn is_array(_value: &PhpMixed) -> bool { matches!(_value, PhpMixed::List(_) | PhpMixed::Array(_)) } |
