kphp icon indicating copy to clipboard operation
kphp copied to clipboard

Implemented popen(), pclose() functions.

Open comm644 opened this issue 1 year ago • 0 comments

Changes contain popen()/pclose() implementation. Please integrate it and add unit-tests. (code already working in our production build) New code added as hack without updating runtime.cmake , may be need fix it.

test/example:

<?php
error_reporting(E_ALL);

$handle = popen('/bin/ls', 'r');
echo "'$handle'; " . gettype($handle) . "\n";

while(($read = fread($handle, 512))) {
        echo "\nread: $read\n";
}
pclose($handle);

comm644 avatar Mar 11 '23 18:03 comm644