php-src/tests/lang/bug21800.phpt
2003-01-21 19:38:08 +00:00

19 lines
362 B
PHP

--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: