summaryrefslogtreecommitdiff
path: root/ext/readline/tests/readline_write_history_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline/tests/readline_write_history_001.phpt')
-rw-r--r--ext/readline/tests/readline_write_history_001.phpt5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/readline/tests/readline_write_history_001.phpt b/ext/readline/tests/readline_write_history_001.phpt
index 95c34e3e89..b1e934c3b0 100644
--- a/ext/readline/tests/readline_write_history_001.phpt
+++ b/ext/readline/tests/readline_write_history_001.phpt
@@ -3,6 +3,7 @@ readline_write_history(): Basic test
--SKIPIF--
<?php if (!extension_loaded("readline") || !function_exists('readline_add_history')) die("skip");
if (READLINE_LIB == "libedit") die("skip readline only");
+if (getenv('SKIP_REPEAT')) die("skip readline has global state");
?>
--FILE--
<?php
@@ -12,7 +13,6 @@ $name = tempnam('/tmp', 'readline.tmp');
readline_add_history('foo');
readline_add_history('');
readline_add_history(1);
-readline_add_history(NULL);
readline_write_history($name);
var_dump(file_get_contents($name));
@@ -21,8 +21,7 @@ unlink($name);
?>
--EXPECT--
-string(8) "foo
+string(7) "foo
1
-
"