[BUG] Updating CLI version (WAMP 3.1.1)
Posted by: FakE (---.dynamic.kabel-deutschland.de)
Date: January 14, 2018 06:16PM

Huy guys,

additionally to last reported bug, the current version 3.1.1.
has the possibility to change the CLI version for example to
a newer PHP version.

--

I have installed php7.2.1 through your update package.

After suspressing all unused versions (not the currently version 5.6.31 used for CLI) the
possibility to change the CLI version has gone in the (right click) menu of WAMP > Tools.

The menu has just disappear and is not showing up again,
even after reloading WAMPserver or exiting and opening the app.


**wampmanager.conf**

[phpCli]
phpCliVersion ="5.6.31"
phpExeFile = php.exe
phpCliFile = php-win.exe

--

I guess it is a bug the menu to change the CLI version disappears after
removing unused PHP versions but still have a newer version installed
than the (not deleteable php5.6.31).


Greetings

FakE



Edited 1 time(s). Last edit at 01/14/2018 06:24PM by FakE.

Options: ReplyQuote
Re: [BUG] Updating CLI version (WAMP 3.1.1)
Posted by: Otomatic (Moderator)
Date: January 15, 2018 10:13AM

Hi,

The option disappears if there is only one PHP version available.
Correction of the bug (will be done with update 3.1.2).

In the file wamp\scripts\refresh.php line 1690
Replace:
if(count($versionsPHP) > 1) {
by
if(count($versionsPHP) >= 1) {

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: [BUG] Updating CLI version (WAMP 3.1.1)
Posted by: walas74 (---.une.net.co)
Date: January 24, 2018 11:51AM

Hi!

I have Wampserver 3.1.0 64bit and I don't see what you say about changing wamp\scripts\refresh.php line 1690. refresh.php has only 1657 lines.

How can I change the PHP version so I can work with PHP 7.1?

Thanks!

Options: ReplyQuote
Re: [BUG] Updating CLI version (WAMP 3.1.1)
Posted by: Otomatic (Moderator)
Date: January 24, 2018 12:19PM

Hi,

> I don't see what you say about changing wamp\scripts\refresh.php line 1690.
> refresh.php has only 1657 lines.

You are replying in a thread where you have not even read the title, or even posts.
You answer that you don't even know what it's about.
Do you know what the PHP CLI version is?

If you want to change PHP version to use PHP 7.1, it's very simple:
Left click icon Wampmanager -> PHP -> Version

In the basic version of Wampserver 3.1.0, there is PHP 7.1.9. If you want another version, you install a PHP addon that you will find here [wampserver.aviatechno.net]

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
Re: [BUG] Updating CLI version (WAMP 3.1.1)
Posted by: walas74 (---.une.net.co)
Date: January 24, 2018 12:27PM

I'm very sorry. I was right-clicking.


My apologies.

Options: ReplyQuote


Sorry, only registered users may post in this forum.