Edit report at https://bugs.php.net/bug.php?id=60920&edit=1
ID: 60920 Updated by: m...@php.net Reported by: the...@php.net Summary: CLI: php -v on STDERR -Status: Critical +Status: Closed Type: Bug Package: PHP options/info functions PHP Version: 5.4SVN-2012-01-28 (SVN) Assigned To: mike Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2012-01-30 12:17:48] m...@php.net Automatic comment from SVN on behalf of mike Revision: http://svn.php.net/viewvc/?view=revision&revision=322931 Log: use stderr before, stdout after php_output_startup() and sapi_module.ub_write() after php_output_activate() - fixes Bug #60920 CLI: php -v on STDERR - fixes Bug #60923 Failing tests for sapi/cli ------------------------------------------------------------------------ [2012-01-29 19:11:01] ras...@php.net No, not intentional. We need to have a close look at this one. ------------------------------------------------------------------------ [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