|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-21 12:58 UTC] rainer dot jung at kippdata dot de
[2018-03-09 13:44 UTC] cmb@php.net
-Package: CGI/CLI related
+Package: Testing related
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 16:00:02 2025 UTC |
Description: ------------ Test sapi/cli/tests/016.phpt fails when either readline is build as a dynamically loadable extension. One reason is that the test expects in the output the string "Interactive shell", but due to the following code #if (HAVE_LIBREADLINE || HAVE_LIBEDIT) && !defined(COMPILE_DL_READLINE) printf("Interactive shell\n\n"); #else printf("Interactive mode enabled\n\n"); #endif in sapi/cli/php_cli.c the test actually prints "Interactive mode enabled". There are output deltas, mostly due to the fact, that the test expects more output from running the snippets. Example expected for snippet1: -------------- Snippet no. 1: -------------- Interactive shell php > echo 'Hello world'; Hello world php > exit Actually for snippet 1: -------------- Snippet no. 1: -------------- Interactive mode enabled echo 'Hello world'; exit Either we disable the test when the readline extension is dynamically loaded, or the output which we test against must be modified. Unfortuanetyl as the test currently is designed, in the dynamic extension case the remaining output doesn't provide much test coverage. The problem happens for the latest 5.4-5.6 releases and for 7RC3.