Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am andymilga on github.
  • I am milga (https://keybase.io/milga) on keybase.
  • I have a public key ASBDi0vLeicTxWWFgguFKp7aCPwWn2al0xGAly8BR7MvGgo

To claim this, I am signing this object:

<?php
//error_reporting(E_ALL);
ignore_user_abort(true);
function syscall ($cmd, $cwd) {
$descriptorspec = array(
1 => array('pipe', 'w') // stdout is a pipe that the child will write to
);
$resource = proc_open($cmd, $descriptorspec, $pipes, $cwd);
<?php
//error_reporting(E_ALL);
ignore_user_abort(true);
function syscall ($cmd, $cwd) {
$descriptorspec = array(
1 => array('pipe', 'w') // stdout is a pipe that the child will write to
);
$resource = proc_open($cmd, $descriptorspec, $pipes, $cwd);