php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60920 CLI: php -v on STDERR
Submitted: 2012-01-28 22:22 UTC Modified: 2012-01-30 12:19 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: thekid@php.net Assigned: mike (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.4SVN-2012-01-28 (SVN) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thekid@php.net
New email:
PHP Version: OS:

 

 [2012-01-28 22:22 UTC] thekid@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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-28 22:25 UTC] thekid@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-29 16:31 UTC] ben@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-29 19:11 UTC] rasmus@php.net
No, not intentional. We need to have a close look at this one.
 [2012-01-29 19:11 UTC] rasmus@php.net
-Status: Open +Status: Critical
 [2012-01-29 23:28 UTC] stas@php.net
-Assigned To: +Assigned To: mike
 [2012-01-30 12:17 UTC] mike@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-30 12:19 UTC] mike@php.net
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.


 [2012-01-30 12:19 UTC] mike@php.net
-Status: Critical +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu May 28 12:01:26 2020 UTC