Different PHP Cli interpretations by Custom Build commands

jeffrey

Verified User
Joined
Sep 9, 2013
Messages
10
Hi!

The two commands below give two different installed CLI versions.

Code:
./build php n
./build update_versions

The PHP settings in options.conf

Code:
#PHP Settings
php1_release=7.2
php1_mode=php-fpm
php2_release=7.0
php2_mode=mod_php

Outcomes with ./build php n

Code:
# php -v
PHP 7.2.3 (cli) (built: Mar 26 2018 10:30:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Outcomes with ./build update_versions

Code:
# php -v
PHP 7.0.28 (cli) (built: Mar 26 2018 09:30:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

My first conclusion is that the doVersions() runs a php_expert [ doPhp_build $2 $3 ] instant of doPhp(). The reason why this difference is there is not (yet) clear to me. So two questions I have;

  1. How can we ensure that update_versions gives the right results?
  2. Can I get an explanation of the problem(s) why there is a need to introduce two PHP installations in CustomBuild?
 
Back
Top