Project

General

Profile

Actions

Regression #13781

closed

Feature #13446: Upgrade PHP from 7.4 to 8.1

DNS Forwarder: PHP error in ``services_dnsmasq_edit``

Added by Steve Wheeler almost 2 years ago. Updated almost 2 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
DNS Forwarder
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.01
Release Notes:
Force Exclusion
Affected Version:
2.7.0
Affected Architecture:

Description

Trying to add a host override in a clean DNSmasq config throws a PHP error.

Using:

    <dnsmasq>
        <enable></enable>
        <interface></interface>
    </dnsmasq>

Gives:

PHP ERROR: Type: 1, File: /usr/local/www/services_dnsmasq_edit.php, Line: 154, Message: Uncaught TypeError: Cannot access offset of type string on string in /usr/local/www/services_dnsmasq_edit.php:154
Stack trace:
#0 {main}
thrown @ 2022-12-19 22:59:57

Tested:

23.01-BETA (amd64)
built on Sat Dec 17 14:33:51 UTC 2022
FreeBSD 14.0-CURRENT

Actions #1

Updated by Jim Pingle almost 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Jim Pingle
Actions #2

Updated by Jim Pingle almost 2 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by Steve Wheeler almost 2 years ago

That fixes it for my test case.

Waiting for new build to confirm.

Actions #4

Updated by Jim Pingle almost 2 years ago

  • Status changed from Feedback to Resolved

Works without error on current snapshot in cases which failed easily before.

Actions #5

Updated by Jim Pingle almost 2 years ago

  • Subject changed from DNS Forwarder: php error in services_dnsmasq_edit to DNS Forwarder: PHP error in ``services_dnsmasq_edit``
  • Release Notes changed from Default to Force Exclusion
Actions

Also available in: Atom PDF