diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-05-16 21:44:09 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-05-16 21:44:09 +0900 |
| commit | 4df65852d90b973ce56442c768ed78f5e4f6a200 (patch) | |
| tree | 989c6defd48d690e91fd9c9d4af7dc19c6c5ea21 /crates/shirabe-php-shim/src/lib.rs | |
| parent | 06de6b2873124a01dcfb1b9c9712c26ee871507a (diff) | |
| download | php-shirabe-4df65852d90b973ce56442c768ed78f5e4f6a200.tar.gz php-shirabe-4df65852d90b973ce56442c768ed78f5e4f6a200.tar.zst php-shirabe-4df65852d90b973ce56442c768ed78f5e4f6a200.zip | |
feat(port): port SelfUpdateCommand.php
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/lib.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index 8a5809a..5797450 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -272,9 +272,27 @@ impl Phar { pub fn extract_to(&self, a: &str, b: Option<()>, c: bool) { todo!() } + + pub fn running(return_full: bool) -> String { + todo!() + } } #[derive(Debug)] +pub struct PharException { + pub message: String, + pub code: i64, +} + +impl std::fmt::Display for PharException { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.message) + } +} + +impl std::error::Error for PharException {} + +#[derive(Debug)] pub struct PharFileInfo; impl PharFileInfo { @@ -816,6 +834,56 @@ pub fn array_diff(array1: &[String], array2: &[String]) -> Vec<String> { todo!() } +pub fn copy(source: &str, dest: &str) -> bool { + todo!() +} + +pub fn exec(command: &str, output: Option<&mut Vec<String>>, exit_code: Option<&mut i64>) -> Option<String> { + todo!() +} + +pub fn tempnam(dir: &str, prefix: &str) -> Option<String> { + todo!() +} + +pub fn openssl_verify(data: &str, signature: &[u8], pub_key_id: PhpMixed, algorithm: PhpMixed) -> i64 { + todo!() +} + +pub fn openssl_pkey_get_public(public_key: &str) -> PhpMixed { + todo!() +} + +pub fn openssl_get_md_methods() -> Vec<String> { + todo!() +} + +pub fn openssl_free_key(key: PhpMixed) { + todo!() +} + +pub fn iterator_to_array<T>(iter: T) -> Vec<PhpMixed> +where + T: IntoIterator<Item = PhpMixed>, +{ + todo!() +} + +pub fn end_arr<V: Clone>(array: &IndexMap<String, V>) -> Option<V> { + todo!() +} + +pub fn fileowner(filename: &str) -> Option<i64> { + todo!() +} + +pub fn unlink_silent(path: &str) -> bool { + todo!() +} + +pub const OPENSSL_ALGO_SHA384: i64 = 9; +pub const PHP_VERSION_ID: i64 = 80100; + pub fn array_intersect_key(array1: &IndexMap<String, Box<PhpMixed>>, array2: &IndexMap<String, Box<PhpMixed>>) -> IndexMap<String, Box<PhpMixed>> { todo!() } |
