array_merge
laravel/octane
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Merge one or more arrays
array_merge
(array ...
$arrays
): array
exit(
1
);
}
$server
->
set
(
array_merge
(
$serverState
[
'defaultServerOptions'
],
$config
[
'swoole'
][
'options'
] ?? []
));
return
$server
;
bin/createSwooleServer.php
}
try {
$this
->
forever
(
'interval-'
.
$key
,
serialize
(
array_merge
(
$interval
, [
'lastRefreshedAt'
=>
Carbon
::
now
()->
getTimestamp
()],
)));
$this
->
forever
(
$key
,
$interval
[
'resolver'
]());
} catch (
Throwable $e
) {
src/Cache/OctaneStore.php
}
file_put_contents
(
$this
->
path
,
json_encode
(
array_merge
(
$this
->
read
(), [
'masterProcessId'
=>
$masterProcessId
]),
JSON_PRETTY_PRINT
));
}
src/RoadRunner/ServerStateFile.php
}
file_put_contents
(
$this
->
path
,
json_encode
(
array_merge
(
$this
->
read
(), [
'state'
=>
$newState
]),
JSON_PRETTY_PRINT
));
}
src/RoadRunner/ServerStateFile.php
$results
[
strtoupper
(
$key
)] =
$value
;
}
$results
=
array_merge
(
$results
,
$this
->
formatHttpHeadersIntoServerVariables
(
$headers
)
);
if (isset(
$results
[
'REQUEST_URI'
],
$results
[
'QUERY_STRING'
]) &&
strlen
(
$results
[
'QUERY_STRING'
]) >
0
&&
src/Swoole/Actions/ConvertSwooleRequestToIlluminateRequest.php
}
file_put_contents
(
$this
->
path
,
json_encode
(
array_merge
(
$this
->
read
(), [
'masterProcessId'
=>
$masterProcessId
,
'managerProcessId'
=>
$managerProcessId
,
]),
JSON_PRETTY_PRINT
));
}
src/Swoole/ServerStateFile.php
}
file_put_contents
(
$this
->
path
,
json_encode
(
array_merge
(
$this
->
read
(), [
'state'
=>
$newState
]),
JSON_PRETTY_PRINT
));
}
src/Swoole/ServerStateFile.php
$this
->
app
=
$app
=
$this
->
appFactory
->
createApplication
(
array_merge
(
$initialInstances
,
[
Client
::class =>
$this
->
client
],
)
);
$this
->
dispatchEvent
(
$app
, new
WorkerStarting
(
$app
));
src/Worker.php