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
Updated by Anonymous over 6 years ago
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Applied in changeset 5c674b1ecca83d42261f5e166e0d968dc318cee2.
Updated by Anonymous over 6 years ago
On 2.4.4.a.20180803.1120, cannot reproduce.