Edit report at https://bugs.php.net/bug.php?id=60920&edit=1
ID: 60920 Updated by: ras...@php.net Reported by: the...@php.net Summary: CLI: php -v on STDERR -Status: Open +Status: Critical Type: Bug Package: PHP options/info functions PHP Version: 5.4SVN-2012-01-28 (SVN) Block user comment: N Private report: N New Comment: No, not intentional. We need to have a close look at this one. Previous Comments: ------------------------------------------------------------------------ [2012-01-29 16:31:55] b...@php.net This is causing sapi/cli/tests/001.phpt to fail - Is the fix intentional and does the unit test need updating, or should --version be outputting to STDOUT? ------------------------------------------------------------------------ [2012-01-28 22:25:20] the...@php.net Same goes for startup errors, e.g. $ F:/Programme/php-5.4.0RC6-nts-Win32-VC9-x86/php.exe -dmagic_quotes_gpc=on 2>/dev/null Fatal error: Directive 'magic_quotes_gpc' is no longer available in PHP in Unknown on line 0 vs. $ ~/devel/php/php/branches/PHP_5_4/Release/php.exe -dmagic_quotes_gpc=on 2>/dev/null ------------------------------------------------------------------------ [2012-01-28 22:22:49] the...@php.net Description: ------------ The PHP version info lands on STDERR now, not on STDOUT. Caused by http://svn.php.net/viewvc/php/php-src/branches/PHP_5_4/main/output.c?r1=322743&r2=322742&pathrev=322743 Test script: --------------- $ php -v 2>/dev/null Expected result: ---------------- Something like: PHP 5.4.0RC7-dev (cli) (built: Jan 28 2012 22:23:46) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies Actual result: -------------- (nothing) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60920&edit=1