cvs: php4 /tests/lang bug21800.phpt
| From: | Moriyoshi Koizumi | Date: | Tue, 21 Jan 2003 19:38:08 +0000 |
| Subject: | cvs: php4 /tests/lang bug21800.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18077@lists.php.net to get a copy of this message | ||
moriyoshi Tue Jan 21 14:38:08 2003 EDT
Added files:
/php4/tests/lang bug21800.phpt
Log:
Added test case for bug #21800
Index: php4/tests/lang/bug21800.phpt
+++ php4/tests/lang/bug21800.phpt
--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: