Use PHP7.4 proc_open() option to start without shell #64

Closed
opened 2021-04-06 03:42:18 +00:00 by jamie · 3 comments
jamie commented 2021-04-06 03:42:18 +00:00 (Migrated from git.hazaar.io)

As of PHP7.4 the cmd parameter may be passed as an array which will cause the program to be started directly without going through shell. See description of cmd at https://www.php.net/manual/en/function.proc-open for details.

I would like to try and get this working where we detect the PHP version and if we are >=7.4 we will use this feature so we can limit the amount of processes running. This aids in admin when using ps on linux to see if services are running.

As of PHP7.4 the **cmd** parameter may be passed as an array which will cause the program to be started directly without going through shell. See description of **cmd** at https://www.php.net/manual/en/function.proc-open for details. I would like to try and get this working where we detect the PHP version and if we are >=7.4 we will use this feature so we can limit the amount of processes running. This aids in admin when using `ps` on linux to see if services are running.
jamie commented 2021-04-06 03:42:21 +00:00 (Migrated from git.hazaar.io)

created merge request !35 to address this issue

created merge request !35 to address this issue
jamie commented 2021-04-06 03:42:21 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !35

mentioned in merge request !35
jamie commented 2021-04-06 03:58:41 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 6970f360e5

mentioned in commit 6970f360e5f0e420c2e42ebf8b6b8c2934586155
jamie (Migrated from git.hazaar.io) closed this issue 2021-04-06 03:58:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-warlock#64
No description provided.