Public bug reported: last char of lines to "php -R" seem to be missing final (non-whitespace chars).
example: root@www-vagrant (xenial) 9:22AM ~ > /usr/bin/php7.0 -v; echo; /bin/echo ruhro | /usr/bin/php7.0 -R 'echo > "$argn\n";'; echo PHP 7.0.4-7ubuntu2 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies ruhr In this example, it should print "ruhro" (same as the input). ( I am using vagrant on a mac: ubuntu/xenial64 (virtualbox, 20160418.0.0) ) lsb_release -rd Description: Ubuntu 16.04 LTS Release: 16.04 ** Affects: php7.0 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1572465 Title: php -R - $argn seems to have last char missing To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1572465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs