When using the example tree.php, $node-description is always NULL
It seems its empty even from the ffi data, if we add a var_dump($tree->description) in this function it also prints NULL:
|
private function buildNode( |
|
\FFI\CData $tree, |
|
int $softHeapLimit = \PHP_INT_MAX, |
|
int $hardHeapLimit = self::DEFAULT_MAX_DEPTH |
|
): TreeNode { |
|
if ($hardHeapLimit <= 0) { |
|
throw new HeapTooDeepException('Too many nesting levels while processing tree'); |
|
} |
|
|
|
$node = new TreeNode($tree->type, $tree->subid, \FFI::string($tree->label), $tree->access); |
|
|
When using the example tree.php,
$node-descriptionis always NULLIt seems its empty even from the ffi data, if we add a
var_dump($tree->description)in this function it also prints NULL:snmp-mib-parser/src/Snmp/TreeBuilder.php
Lines 27 to 37 in 9fcd430