1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 02:02:32 +01:00
Files
archived-php-src/tests/lang/bug21800.phpt

20 lines
374 B
PHP

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