]> granicus.if.org Git - php/commitdiff
Fix failing tests for readline() without input
authorPeter Kokot <peterkokot@gmail.com>
Sun, 10 Feb 2019 21:31:32 +0000 (22:31 +0100)
committerPeter Kokot <peterkokot@gmail.com>
Sun, 10 Feb 2019 21:31:32 +0000 (22:31 +0100)
If PHP readline extension is using libedit or readline the output is
different with the readline library also the prompt is output.

ext/readline/tests/readline_without_input.phpt

index 8d5720e13233e982b4c1ce942bd5bfd46af35724..e269c5eaa964b3dbe8d37cb9e1eeda149cb39178 100644 (file)
@@ -10,6 +10,6 @@ User Group: PHP-WVL & PHPGent #PHPTestFest
 var_dump(readline());
 var_dump(readline('Prompt:'));
 ?>
---EXPECT--
-bool(false)
+--EXPECTF--
 bool(false)
+%Abool(false)