Apache Test Port Script - BUG?
Posted by: live4therisk (---.dyn.optonline.net)
Date: June 19, 2017 09:40PM

Hey,

I have upgraded to WAMP 3.0.8, and when right clicking -> Tools > Test Port 80 Apache, it is broken.

I am getting the following errors:

Notice: Undefined variable: port in C:\wamp\scripts\testPort.php on line 18

This seems to have broke on the new update.

Just wanted to let you know if you weren't aware of it.

Options: ReplyQuote
Re: Apache Test Port Script - BUG?
Posted by: Otomatic (Moderator)
Date: June 20, 2017 10:43AM

Hi,

Thank you. Indeed, there is a bug in the file: wamp\scripts\testPort.php
Replace lines 8 to 16:
if(!empty($_SERVER['argv'][2])) {
	if($_SERVER['argv'][2] == $c_mysqlService || $_SERVER['argv'][2] == $c_mariadbService) {
		$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '3306';
		$only_process = true;
		$mysqlTest = true;
	}
}
else
	$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '80';
by
if(!empty($_SERVER['argv'][2])) {
	if($_SERVER['argv'][2] == $c_mysqlService || $_SERVER['argv'][2] == $c_mariadbService) {
		$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '3306';
		$only_process = true;
		$mysqlTest = true;
	}
	else
		$port = isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : '80';
}

I'm going to create a new note: Wampserver 3: fixing bugs

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.1 32 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
Wampserver 3.1.1 64 bit - Apache 2.4.29 - PHP 7.1.12/7.0.26/5.6.32 - MySQL 5.7.20 - MariaDB 10.2.9
PhPMyAdmin 4.7.5 - 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


Sorry, only registered users may post in this forum.