summaryrefslogtreecommitdiff
path: root/tests/lang/bug21800.phpt
blob: b835425c3d1a43bfba06981caca8351107589bfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Bug #21800 (Segfault under interactive mode) 
--SKIPIF--
<?php (PHP_SAPI != 'cli') and print "SKIP PHP binary is not cli"; ?>
--FILE--
<?php
$fh = popen("{$_ENV['TEST_PHP_EXECUTABLE']} -a", 'w');
if ($fh !== false) {
	fwrite($fh, "<?php echo ':test:'; ?>\n\n");
	fclose($fh);
} else {
	echo "failure\n";
}
?>
--EXPECT--
Interactive mode enabled

:test: