hallo,
ich habe das problem aus dem thread der prozesssteuerung minimiert aber ich verstehe das immer noch nicht;
hier noch mal übersichtlicher vll fällt dann jamanden dazu etwas ein:
wenn $i aus der schleife von 100 auf 1000 setze terminiert tshark nicht mehr, warum?
ich habe das problem aus dem thread der prozesssteuerung minimiert aber ich verstehe das immer noch nicht;
hier noch mal übersichtlicher vll fällt dann jamanden dazu etwas ein:
PHP:
public function open($command)
{
$descriptorspec = array(
0 => array('pipe', 'r'),
1 => array('pipe', 'w'),
2 => array('pipe', 'r')
);
$this->resource = proc_open($command, $descriptorspec, $pipes,null, $_ENV);
if (is_resource($this->resource))
{
$this->stdin = $pipes[0];
$this->stdout = $pipes[1];
$this->stderr = $pipes[2];
for($i=0;$i<1000;$i++) echo "$i<br>";
fclose($this->stdin);
fclose($this->stdout);
fclose($this->stderr);
proc_terminate($this->resource);
}else die('FEHLER: kein resource');
}
wenn $i aus der schleife von 100 auf 1000 setze terminiert tshark nicht mehr, warum?