CouscousPHP / Couscous

Couscous is good.
https://couscous.io
Other
841 stars 104 forks source link

proc_open() expects parameter 1 to be string, array given #227

Closed romovs closed 5 years ago

romovs commented 5 years ago

Happens with PHP 7.2.11 Worked previously with PHP 7.1.23

$ couscous preview
Generating /home/rom/projects/docs to /home/rom/projects/docs/.couscous/generated
PHP Warning:  proc_open() expects parameter 1 to be string, array given in phar:///usr/local/bin/couscous/vendor/symfony/process/Process.php on line 285

  [Symfony\Component\Process\Exception\RuntimeException]  
  Unable to launch a new process.                         

preview [--target TARGET] [--livereload [LIVERELOAD]] [--config CONFIG] [--] [<address>] [<source>]
kana-ki commented 5 years ago

I'm getting this too, on PHP 5.6.38, PHP 7.1.24 and PHP 7.2.12.

rkling01 commented 5 years ago

I have recently received the same error - PHP 7.1.16

dantleech commented 5 years ago

It seems this can be fixed by updating to Symfony Console ^3.0 which passes a string to proc_open, the locked version seems to pass an array. Not sure why this has become an issue.