Commit Graph
10 Commits
Author SHA1 Message Date
Stephan de Wit 00afadefce contrib: multiple deprecation fixes
- Replace xml_set_object() and string handlers with proper object callables.
- Remove xml_parser_free(), a no-op since PHP 8.0
2026-10-13 14:53:39 +02:00
Franco Fichtner daf7b799fc contrib: Non-canonical cast (boolean) is deprecated, use the (bool) cast instead 2026-07-07 22:36:55 +02:00
Stephan de Wit 305741f06e system: curl_close() is deprecated
This has been a no-op since 8.0.0, but deprecated since 8.5.0.
2026-06-17 16:51:12 +02:00
Franco Fichtner c00711e595 src: non-canonical cast (double) is deprecated 2026-06-16 17:11:56 +02:00
Ad Schellevis e190e9c138 System: High Availability: Status - backend code for https://github.com/opnsense/core/issues/7899
This commit wraps our xmlrpc functions via configd and wires them via an api controller.
In the long run we should consider moving to RESTful interfaces, but for now we will keep and cleanup the xmlrpc code.

configd action "system ha services_cached" caches the service list for a couple of seconds to improve searchability via our standard grid functions.
2024-12-15 20:09:09 +01:00
Ad Schellevis 5d59e86b4b IXR_Library.php - minor cleanups, partly borrowed from https://github.com/kissifrot/php-ixr. closes https://github.com/opnsense/core/issues/5911
At the moment it doesn't seem to make much sense replacing the IXR library, the latest release tag from https://github.com/kissifrot/php-ixr seems to be from a couple of years ago as well and most changes relate to splitting the file into separate class files.
2022-09-21 17:01:23 +02:00
Ad Schellevis 65ceba42f3 System / High Availability - fix for https://forum.opnsense.org/index.php?topic=29521.0, IXR_Library using incorrect constructor format for php 8 2022-07-29 11:08:09 +02:00
Ad Schellevis a65e793cb4 IXR_Library: do not trim xml values, there's no reason for. closes https://github.com/opnsense/core/pull/4707
xml-rpc isn't used very often these days, it proably doesn't make sense to try to upstream this change since the library doesn't seem to be very active anymore.
When values are of non string type, it makes sense to trim() for safety, for strings leading spaces can have a meaning.
2021-02-15 20:56:05 +01:00
Ad Schellevis 9452022307 xmlrpc, php7.2 migration, Warning: count(): Parameter must be. checking for an array should be enough here, other types aren't supported. closes https://github.com/opnsense/core/issues/3390 2019-04-07 11:33:45 +02:00
Franco Fichtner 30d0c1760c src/contrib: aaaaand it's gone ;) 2016-09-25 12:50:04 +02:00