Req #75386 [Opn]: report architecture in "php -v", e.g. x86, x64

From: Date: Mon, 16 Oct 2017 10:35:09 +0000
Subject: Req #75386 [Opn]: report architecture in "php -v", e.g. x86, x64
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211716@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75386&edit=1 ID: 75386 Updated by: requinix@php.net Reported by: maggus dot staab at googlemail dot com Summary: report architecture in "php -v", e.g. x86, x64 Status: Open Type: Feature/Change Request Package: CGI/CLI related Operating System: any PHP Version: 7.0.24 Block user comment: N Private report: N New Comment: Consistently saying x86/x64 in -v would be nice (PHP 7.1+ on Windows does) but -i tells you everything too, eg: phpinfo() PHP Version => 7.0.9 System => Windows NT [name] 10.0 build 15063 (Windows 10) AMD64 Build Date => Jul 20 2016 10:41:23 Compiler => MSVC14 (Visual C++ 2015) Architecture => x64 Previous Comments: ------------------------------------------------------------------------ [2017-10-16 10:11:57] spam2 at rhsoft dot net > the absence of a architecture seem to indicate x86 no it don't [harry@rh:~]$ php -v PHP 7.1.12-dev (cli) (built: Oct 13 2017 14:01:54) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies [harry@rh:~]$ rpm -q php php-7.1.10-3.0.fc26.20171013.1356.rh.sandybridge.x86_64 ------------------------------------------------------------------------ [2017-10-16 10:08:54] maggus dot staab at googlemail dot com I just realized that x64 is mentioned as expected. the absence of a architecture seem to indicate x86. maybe this could be more explicit. php -v PHP 7.1.2 (cli) (built: Feb 14 2017 21:24:45) ( NTS MSVC14 (Visual C++ 2015) x64 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies ------------------------------------------------------------------------ [2017-10-16 10:05:37] maggus dot staab at googlemail dot com Description: ------------ when downloading extensions for your php installation you need to answer several questions to find the correct version. see e.g. http://windows.php.net/downloads/pecl/releases/ast/0.1.6/ there are variants like TS and NTS. also you need to know whether x86 or x64 fits your system. php -v already answers the question regarding TS/NTS but doesnt for x86 vs. x64 would be great to have this info contained in php -v. Test script: --------------- invoke "php -v" on CLI Expected result: ---------------- PHP 7.0.14 (cli) (built: Dec 6 2016 15:35:45) ( x64/x86, NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies (difference in the 1st line: x64/x86) Actual result: -------------- PHP 7.0.14 (cli) (built: Dec 6 2016 15:35:45) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75386&edit=1

« previous php.bugs (#211716) next »