jonnnnyw / php-phantomjs

Execute PhantomJS commands through PHP
MIT License
1.44k stars 433 forks source link

fix blocks infinitly under Windows #293

Open wvfeng opened 3 years ago

wvfeng commented 3 years ago

It seems that stream_get_contents() on STDOUT blocks infinitly under Windows when STDERR is filled under some circumstances. reference: https://www.php.net/manual/zh/function.proc-open.php#97012