1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00
Files
archived-php-src/tests/lang/bug21800.phpt
T
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: