php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/sapi/cli/tests/ |
| files >> //proc/self/root/var/www/html/sub/images/Rm19_symconf/root/php-7.1.11/sapi/cli/tests/bug64529.phpt |
--TEST--
Bug #64529 (Ran out of opcode space)
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) == "WIN") {
die("skip non windows test");
}
if (!extension_loaded("readline") || !readline_info("done")) {
die("skip readline support required");
}
exec('which expect', $output, $ret);
if ($ret) {
die("skip no expect installed");
}
?>
--FILE--
<?php
$expect_executable = trim(`which expect`);
$php_executable = getenv('TEST_PHP_EXECUTABLE');
$script = __DIR__ . "/expect.sh";
if (extension_loaded("readline")) {
$expect_script = <<<SCRIPT
set php_executable [lindex \$argv 0]
spawn \$php_executable -n -d cli.prompt="" -a
expect "php >"
send "echo 'hello world';\n"
send "\04"
expect eof
exit
SCRIPT;
} else {
$expect_script = <<<SCRIPT
set php_executable [lindex \$argv 0]
spawn \$php_executable -n -d cli.prompt="" -a
expect "Interactive mode enabled"
send "<?php echo 'hello world';\n"
send "\04"
expect eof
exit
SCRIPT;
}
file_put_contents($script, $expect_script);
system($expect_executable . " " . $script . " " . $php_executable);
@unlink($script);
?>
--EXPECTF--
spawn %sphp -n -d cli.prompt="" -a
Interactive %s
%Secho 'hello world';
%Shello world
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`