--TEST-- CLI -a and libedit --EXTENSIONS-- readline --ENV-- PHP_HISTFILE= --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); } } $codes = array(); $codes[1] = << --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 bool(true) bool(false) -------------- Snippet no. 6: -------------- Interactive shell Hello World Done bool(true)