8
8
* License: GNU/GPLv2
9
9
* @see LICENSE.txt
10
10
*
11
- * This file: The scanner (last modified: 2025.03.24 ).
11
+ * This file: The scanner (last modified: 2025.03.28 ).
12
12
*/
13
13
14
14
namespace phpMussel \Core ;
@@ -600,11 +600,11 @@ public function implodeBits(string $Input): string
600
600
*/
601
601
public function setScanDebugArray (&$ Arr ): void
602
602
{
603
- unset($ this ->debugArr );
603
+ unset($ this ->Loader -> InstanceCache [ ' DebugArr ' ] );
604
604
if (!is_array ($ Arr )) {
605
605
$ Arr = [];
606
606
}
607
- $ this ->debugArr = &$ Arr ;
607
+ $ this ->Loader -> InstanceCache [ ' DebugArr ' ] = &$ Arr ;
608
608
}
609
609
610
610
/**
@@ -615,7 +615,7 @@ public function setScanDebugArray(&$Arr): void
615
615
*/
616
616
public function destroyScanDebugArray (&$ Arr ): void
617
617
{
618
- unset($ this ->Loader ->InstanceCache ['DebugArrKey ' ], $ this ->debugArr );
618
+ unset($ this ->Loader ->InstanceCache ['DebugArrKey ' ], $ this ->Loader -> InstanceCache [ ' DebugArr ' ] );
619
619
$ Arr = null ;
620
620
}
621
621
@@ -1202,9 +1202,9 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
1202
1202
}
1203
1203
1204
1204
/** Set debug values, if this has been enabled. */
1205
- if (isset ($ this ->debugArr )) {
1206
- $ this ->Loader ->InstanceCache ['DebugArrKey ' ] = count ($ this ->debugArr );
1207
- $ this ->debugArr [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]] = [
1205
+ if (isset ($ this ->Loader -> InstanceCache [ ' DebugArr ' ] )) {
1206
+ $ this ->Loader ->InstanceCache ['DebugArrKey ' ] = count ($ this ->Loader -> InstanceCache [ ' DebugArr ' ] );
1207
+ $ this ->Loader -> InstanceCache [ ' DebugArr ' ] [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]] = [
1208
1208
'Filename ' => $ OriginalFilename ,
1209
1209
'FromCache ' => true ,
1210
1210
'Depth ' => $ Depth ,
@@ -1682,9 +1682,9 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
1682
1682
) || $ is_pe || $ fileswitch === 'mp4 ' );
1683
1683
1684
1684
/** Set debug values, if this has been enabled. */
1685
- if (isset ($ this ->debugArr )) {
1686
- $ this ->Loader ->InstanceCache ['DebugArrKey ' ] = count ($ this ->debugArr );
1687
- $ this ->debugArr [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]] = [
1685
+ if (isset ($ this ->Loader -> InstanceCache [ ' DebugArr ' ] )) {
1686
+ $ this ->Loader ->InstanceCache ['DebugArrKey ' ] = count ($ this ->Loader -> InstanceCache [ ' DebugArr ' ] );
1687
+ $ this ->Loader -> InstanceCache [ ' DebugArr ' ] [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]] = [
1688
1688
'Filename ' => $ OriginalFilename ,
1689
1689
'FromCache ' => false ,
1690
1690
'Depth ' => $ Depth ,
@@ -1711,7 +1711,7 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
1711
1711
'Is_Not_PHP ' => $ is_not_php
1712
1712
];
1713
1713
if ($ is_pe ) {
1714
- $ this ->debugArr [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]] += [
1714
+ $ this ->Loader -> InstanceCache [ ' DebugArr ' ] [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]] += [
1715
1715
'NumOfSections ' => $ NumOfSections ,
1716
1716
'PEFileDescription ' => $ PEFileDescription ,
1717
1717
'PEFileVersion ' => $ PEFileVersion ,
@@ -2745,9 +2745,9 @@ private function dataHandler(string $str = '', int $Depth = 0, string $OriginalF
2745
2745
}
2746
2746
2747
2747
/** Set final debug values, if this has been enabled. */
2748
- if (isset ($ this ->debugArr , $ this ->Loader ->InstanceCache ['DebugArrKey ' ])) {
2749
- $ this ->debugArr [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]]['Results ' ] = $ this ->Loader ->ScanResultsIntegers [$ AtInstanceLookupKey ] ?? 1 ;
2750
- $ this ->debugArr [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]]['Output ' ] = $ this ->Loader ->ScanResultsText [$ AtInstanceLookupKey ] ?? '' ;
2748
+ if (isset ($ this ->Loader -> InstanceCache [ ' DebugArr ' ] , $ this ->Loader ->InstanceCache ['DebugArrKey ' ])) {
2749
+ $ this ->Loader -> InstanceCache [ ' DebugArr ' ] [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]]['Results ' ] = $ this ->Loader ->ScanResultsIntegers [$ AtInstanceLookupKey ] ?? 1 ;
2750
+ $ this ->Loader -> InstanceCache [ ' DebugArr ' ] [$ this ->Loader ->InstanceCache ['DebugArrKey ' ]]['Output ' ] = $ this ->Loader ->ScanResultsText [$ AtInstanceLookupKey ] ?? '' ;
2751
2751
}
2752
2752
2753
2753
/** Register object flagged. */
0 commit comments