Bug #8730
closedNAT PHP7 errors.
100%
Description
I found several PHP7 issues while running through some tests for NAT.
Warning: Illegal string offset 'rule' in /usr/local/www/firewall_nat.php on line 40 Warning: Illegal string offset 'rule' in /usr/local/www/firewall_nat.php on line 43 Fatal error: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_nat.php:43 Stack trace: #0 {main} thrown in /usr/local/www/firewall_nat.php on line 43 PHP ERROR: Type: 1, File: /usr/local/www/firewall_nat.php, Line: 43, Message: Uncaught Error: Cannot create references to/from string offsets in /usr/local/www/firewall_nat.php:43 Stack trace: #0 {main} thrown
Warning: Illegal string offset 'outbound' in /usr/local/www/firewall_nat_out.php on line 42 Warning: Illegal string offset 'outbound' in /usr/local/www/firewall_nat_out.php on line 46 Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out.php:46 Stack trace: #0 {main} thrown in /usr/local/www/firewall_nat_out.php on line 46 PHP ERROR: Type: 1, File: /usr/local/www/firewall_nat_out.php, Line: 46, Message: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out.php:46 Stack trace: #0 {main} thrown
Warning: Illegal string offset 'outbound' in /usr/local/www/firewall_nat_out_edit.php on line 39 Warning: Illegal string offset 'outbound' in /usr/local/www/firewall_nat_out_edit.php on line 43 Fatal error: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out_edit.php:43 Stack trace: #0 {main} thrown in /usr/local/www/firewall_nat_out_edit.php on line 43 PHP ERROR: Type: 1, File: /usr/local/www/firewall_nat_out_edit.php, Line: 43, Message: Uncaught Error: Cannot use string offset as an array in /usr/local/www/firewall_nat_out_edit.php:43 Stack trace: #0 {main} thrown