Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 0 additions & 43 deletions ext/readline/tests/libedit_info_001-win32.phpt

This file was deleted.

7 changes: 0 additions & 7 deletions ext/readline/tests/libedit_info_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ readline_info(): Basic test
readline
--SKIPIF--
<?php if (READLINE_LIB != "libedit") die("skip libedit only");
if(substr(PHP_OS, 0, 3) == 'WIN' ) {
die('skip not for windows');
}
if (getenv('SKIP_REPEAT')) die("skip readline has global state");
?>
--FILE--
Expand All @@ -28,11 +25,7 @@ array(%d) {
["line_buffer"]=>
string(0) ""
["point"]=>
int(0)
["end"]=>
int(0)%A
["library_version"]=>
string(%d) "%s"
["readline_name"]=>
string(0) ""
["attempted_completion_over"]=>
Expand Down
30 changes: 0 additions & 30 deletions ext/readline/tests/libedit_write_history_001-win32.phpt

This file was deleted.

18 changes: 7 additions & 11 deletions ext/readline/tests/libedit_write_history_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,25 @@ readline
--SKIPIF--
<?php if (!function_exists('readline_add_history')) die("skip");
if (READLINE_LIB != "libedit") die("skip libedit only");
if(substr(PHP_OS, 0, 3) == 'WIN' ) {
die('skip not for windows');
}
if (getenv('SKIP_REPEAT')) die("skip readline has global state");
?>
--FILE--
<?php

$name = tempnam('/tmp', 'readline.tmp');
$name = tempnam(sys_get_temp_dir(), 'readline.tmp');

readline_add_history('foo');
readline_add_history('');
readline_add_history(1);
readline_write_history($name);

var_dump(file_get_contents($name));
echo(file_get_contents($name));

unlink($name);

?>
--EXPECT--
string(20) "_HiStOrY_V2_
foo

1
"
--EXPECTREGEX--
(_HiStOrY_V2_
)?foo
(
)?1
Loading