Bug #70543 [NEW]: Test sapi/cli/tests/016.phpt fails when readline is dynamic extension

From: Date: Mon, 21 Sep 2015 09:58:32 +0000
Subject: Bug #70543 [NEW]: Test sapi/cli/tests/016.phpt fails when readline is dynamic extension
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-196126@lists.php.net to get a copy of this message
From: rainer dot jung at kippdata dot de Operating system: Any PHP version: 7.0.0RC3 Package: CGI/CLI related Bug Type: Bug Bug description:Test sapi/cli/tests/016.phpt fails when readline is dynamic extension 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. -- Edit bug report at https://bugs.php.net/bug.php?id=70543&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70543&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70543&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70543&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70543&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70543&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70543&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70543&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70543&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70543&r=support Expected behavior: https://bugs.php.net/fix.php?id=70543&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70543&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70543&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70543&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70543&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70543&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70543&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70543&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70543&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70543&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70543&r=mysqlcfg

« previous php.bugs (#196126) next »