1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
use indexmap::IndexMap;
#[derive(Debug)]
pub enum PhpMixed {
Null,
Bool(bool),
Int(i64),
Float(f64),
String(String),
List(Vec<Box<PhpMixed>>),
Array(IndexMap<String, Box<PhpMixed>>),
}
#[derive(Debug)]
pub struct Exception {
pub message: String,
pub code: i64,
}
#[derive(Debug)]
pub struct RuntimeException {
pub message: String,
pub code: i64,
}
#[derive(Debug)]
pub struct UnexpectedValueException {
pub message: String,
pub code: i64,
}
#[derive(Debug)]
pub struct InvalidArgumentException {
pub message: String,
pub code: i64,
}
pub fn get_debug_type(value: &PhpMixed) -> String {
todo!()
}
pub fn defined(name: &str) -> bool {
todo!()
}
pub fn hash(algo: &str, data: &str) -> String {
todo!()
}
pub const HHVM_VERSION: Option<&str> = None;
#[derive(Debug)]
pub struct Phar {
path: String,
}
impl Phar {
pub fn new(a: String) -> Self {
todo!()
}
pub fn extract_to(&self, a: &str, b: Option<()>, c: bool) {
todo!()
}
}
#[derive(Debug)]
pub struct PharFileInfo;
impl PharFileInfo {
pub fn get_content(&self) -> String {
todo!()
}
pub fn get_basename(&self) -> String {
todo!()
}
pub fn is_dir(&self) -> bool {
todo!()
}
}
#[derive(Debug)]
pub struct PharData {
path: String,
}
impl PharData {
pub fn new(a: String) -> Self {
todo!()
}
pub fn valid(&self) -> bool {
todo!()
}
pub fn get(&self, key: &str) -> Option<PharFileInfo> {
todo!()
}
pub fn iter(&self) -> impl Iterator<Item = PharFileInfo> {
todo!();
std::iter::empty()
}
pub fn extract_to(&self, a: &str, b: Option<()>, c: bool) {
todo!()
}
pub fn add_empty_dir(&self, a: &str) {
todo!()
}
}
|