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

:test: