Skip to content

Commit 888b5dc

Browse files
committed
PHP 5.3 compatibility for tools.php
1 parent bfb1b86 commit 888b5dc

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/utils/tools.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,16 @@ function START($id, array $options = array()) {
147147
}
148148

149149
$options += array("name" => "mongod", "id" => $id);
150-
$opts = [
151-
"http" => [
150+
$opts = array(
151+
"http" => array(
152152
"timeout" => 30,
153153
"method" => "PUT",
154154
"header" => "Accept: application/json\r\n" .
155155
"Content-type: application/x-www-form-urlencoded",
156156
"content" => json_encode($options),
157157
"ignore_errors" => true,
158-
],
159-
];
158+
),
159+
);
160160
$ctx = stream_context_create($opts);
161161
$json = file_get_contents(getMOUri() . "/servers/$id", false, $ctx);
162162
$result = json_decode($json, true);
@@ -176,14 +176,14 @@ function START($id, array $options = array()) {
176176
}
177177
}
178178
function DELETE($id) {
179-
$opts = [
180-
"http" => [
179+
$opts = array(
180+
"http" => array(
181181
"timeout" => 30,
182182
"method" => "DELETE",
183183
"header" => "Accept: application/json\r\n",
184184
"ignore_errors" => true,
185-
],
186-
];
185+
),
186+
);
187187
$ctx = stream_context_create($opts);
188188
$json = file_get_contents(getMOUri() . "/servers/$id", false, $ctx);
189189
$FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json";

0 commit comments

Comments
 (0)