d4a83eff40
net/phpldapadmin (version 1) was written some years ago. The developer of PLA (https://github.com/leenooks/phpLDAPadmin) officially dropped support for PLA1, but PLA2 is still not full functional as PLA1. I've made small patches which enable support for php84 (changes of some builtin php functions, declarations of variables and so on). With these patches PLA1 (still) is working corectly. PR: 287238 Event: Wiesbaden Hackathon 202604
27 lines
998 B
PHP
27 lines
998 B
PHP
--- lib/xml2array.php.orig 2024-01-10 22:23:54 UTC
|
|
+++ lib/xml2array.php
|
|
@@ -20,6 +20,7 @@ class xml2array {
|
|
var $arrOutput = array();
|
|
var $resParser;
|
|
var $strXmlData;
|
|
+ // var $parser;
|
|
|
|
private function push_pos(&$pos) {
|
|
$this->stack[count($this->stack)] = &$pos;
|
|
@@ -33,10 +34,12 @@ class xml2array {
|
|
|
|
public function parseXML($strInputXML,$filename) {
|
|
$this->resParser = xml_parser_create();
|
|
- xml_set_object($this->resParser,$this);
|
|
- xml_set_element_handler($this->resParser,'tagOpen','tagClosed');
|
|
+ // xml_set_object($this->resParser,$this);
|
|
+ // xml_set_element_handler($this->resParser,'tagOpen','tagClosed');
|
|
|
|
- xml_set_character_data_handler($this->resParser,'tagData');
|
|
+ // xml_set_character_data_handler($this->resParser,'tagData');
|
|
+ xml_set_element_handler($this->resParser, array( $this, 'tagOpen' ), array( $this, 'tagClosed' ) );
|
|
+ xml_set_character_data_handler( $this->resParser, array( $this, 'tagData' ));
|
|
|
|
$this->push_pos($this->arrOutput);
|
|
|