14
14
function apache_get_version (): string
15
15
{
16
16
error_clear_last ();
17
- $ result = \apache_get_version ();
18
- if ($ result === false ) {
17
+ $ safeResult = \apache_get_version ();
18
+ if ($ safeResult === false ) {
19
19
throw ApacheException::createFromPhpError ();
20
20
}
21
- return $ result ;
21
+ return $ safeResult ;
22
22
}
23
23
24
24
@@ -35,11 +35,11 @@ function apache_get_version(): string
35
35
function apache_getenv (string $ variable , bool $ walk_to_top = false ): string
36
36
{
37
37
error_clear_last ();
38
- $ result = \apache_getenv ($ variable , $ walk_to_top );
39
- if ($ result === false ) {
38
+ $ safeResult = \apache_getenv ($ variable , $ walk_to_top );
39
+ if ($ safeResult === false ) {
40
40
throw ApacheException::createFromPhpError ();
41
41
}
42
- return $ result ;
42
+ return $ safeResult ;
43
43
}
44
44
45
45
@@ -83,11 +83,11 @@ function apache_getenv(string $variable, bool $walk_to_top = false): string
83
83
function apache_lookup_uri (string $ filename ): object
84
84
{
85
85
error_clear_last ();
86
- $ result = \apache_lookup_uri ($ filename );
87
- if ($ result === false ) {
86
+ $ safeResult = \apache_lookup_uri ($ filename );
87
+ if ($ safeResult === false ) {
88
88
throw ApacheException::createFromPhpError ();
89
89
}
90
- return $ result ;
90
+ return $ safeResult ;
91
91
}
92
92
93
93
@@ -102,11 +102,11 @@ function apache_lookup_uri(string $filename): object
102
102
function apache_request_headers (): array
103
103
{
104
104
error_clear_last ();
105
- $ result = \apache_request_headers ();
106
- if ($ result === false ) {
105
+ $ safeResult = \apache_request_headers ();
106
+ if ($ safeResult === false ) {
107
107
throw ApacheException::createFromPhpError ();
108
108
}
109
- return $ result ;
109
+ return $ safeResult ;
110
110
}
111
111
112
112
@@ -121,11 +121,11 @@ function apache_request_headers(): array
121
121
function apache_response_headers (): array
122
122
{
123
123
error_clear_last ();
124
- $ result = \apache_response_headers ();
125
- if ($ result === false ) {
124
+ $ safeResult = \apache_response_headers ();
125
+ if ($ safeResult === false ) {
126
126
throw ApacheException::createFromPhpError ();
127
127
}
128
- return $ result ;
128
+ return $ safeResult ;
129
129
}
130
130
131
131
@@ -143,8 +143,8 @@ function apache_response_headers(): array
143
143
function apache_setenv (string $ variable , string $ value , bool $ walk_to_top = false ): void
144
144
{
145
145
error_clear_last ();
146
- $ result = \apache_setenv ($ variable , $ value , $ walk_to_top );
147
- if ($ result === false ) {
146
+ $ safeResult = \apache_setenv ($ variable , $ value , $ walk_to_top );
147
+ if ($ safeResult === false ) {
148
148
throw ApacheException::createFromPhpError ();
149
149
}
150
150
}
@@ -164,11 +164,11 @@ function apache_setenv(string $variable, string $value, bool $walk_to_top = fals
164
164
function getallheaders (): array
165
165
{
166
166
error_clear_last ();
167
- $ result = \getallheaders ();
168
- if ($ result === false ) {
167
+ $ safeResult = \getallheaders ();
168
+ if ($ safeResult === false ) {
169
169
throw ApacheException::createFromPhpError ();
170
170
}
171
- return $ result ;
171
+ return $ safeResult ;
172
172
}
173
173
174
174
@@ -192,8 +192,8 @@ function getallheaders(): array
192
192
function virtual (string $ uri ): void
193
193
{
194
194
error_clear_last ();
195
- $ result = \virtual ($ uri );
196
- if ($ result === false ) {
195
+ $ safeResult = \virtual ($ uri );
196
+ if ($ safeResult === false ) {
197
197
throw ApacheException::createFromPhpError ();
198
198
}
199
199
}
0 commit comments