--TEST-- CLI -a and libedit --EXTENSIONS-- readline --SKIPIF-- --FILE-- $code) { echo "\n--------------\nSnippet no. $key:\n--------------\n"; $proc = proc_open("$php $ini -a", $descriptorspec, $pipes); fwrite($pipes[0], $code); fclose($pipes[0]); proc_close($proc); } echo "\nDone\n"; ?> --EXPECT-- -------------- Snippet no. 1: -------------- Interactive shell Hello world -------------- Snippet no. 2: -------------- Interactive shell multine single quote -------------- Snippet no. 3: -------------- Interactive shell Here comes the doc -------------- Snippet no. 4: -------------- Interactive shell Done -------------- Snippet no. 5: -------------- Interactive shell Parse error: Unmatched ')' in php shell code on line 1 Done