Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

15
vendor/swoole/examples/process/python.php vendored Executable file
View File

@ -0,0 +1,15 @@
<?php
$process = new swoole_process('pyhon_process', true);
$pid = $process->start();
function pyhon_process(swoole_process $worker)
{
$worker->exec('/usr/bin/python', array("echo.py"));
}
$process->write("hello world\n");
echo $process->read();
$ret = swoole_process::wait();
var_dump($ret);