Actions
Bug #13249
openRunning playback comands multiple times results in PHP error
Status:
New
Priority:
Normal
Assignee:
-
Category:
Console Menu
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
Affected Architecture:
Description
Using the console, enter option 12 then run playback svc restart unbound
twice. On the second run, the following is logged:
Jun 6 01:08:28 php 98029 pfSsh.php: PHP ERROR: Type: 64, File: /usr/local/sbin/pfSsh.php(374) : eval()'d code, Line: 29, Message: Cannot redeclare usage() (previously declared in /usr/local/sbin/pfSsh.php(374) : eval()'d code:30) Jun 6 01:08:28 php 98029 pfSsh.php: New alert found: PHP ERROR: Type: 64, File: /usr/local/sbin/pfSsh.php(374) : eval()'d code, Line: 29, Message: Cannot redeclare usage() (previously declared in /usr/local/sbin/pfSsh.php(374) : eval()'d code:30)
Updated by Jim Pingle over 2 years ago
That is known and expected, they aren't designed to run more than once in the same session the way you are doing it. It's fixable, but each script would have to be considered separate as they may not all be as easy to fix.
Actions