Skip to content

Implemented popen(), pclose() functions.#780

Open
comm644 wants to merge 1 commit intoVKCOM:masterfrom
comm644:comm644/runtime_popen
Open

Implemented popen(), pclose() functions.#780
comm644 wants to merge 1 commit intoVKCOM:masterfrom
comm644:comm644/runtime_popen

Conversation

@comm644
Copy link

@comm644 comm644 commented Mar 11, 2023

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);

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.

1 participant