Skip to content

PhpInterpreter: pass command to proc_open() as array - #468

Merged
dg merged 2 commits into
nette:masterfrom
milo:pr-proc-open-array
May 11, 2026
Merged

dg merged 2 commits into
nette:masterfrom
milo:pr-proc-open-array

Conversation

@milo

@milo milo commented Mar 27, 2026

Copy link
Copy Markdown
Member

I noticed in PHP manual that $command to proc_open() can be passed as an array. In that case:

  • PHP escapes arguments itself (seems more secure)
  • subshell call is bypassed on Linux too (micro speed-up)

dg and others added 2 commits March 9, 2026 03:05
- PHP escapes arguments itself
- subshell call is bypassed on Linux too
@dg
dg merged commit 11e04e8 into nette:master May 11, 2026
1 of 22 checks passed
@dg

dg commented May 11, 2026

Copy link
Copy Markdown
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants