Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

description field is always empty #2

Open
Jellyfrog opened this issue Aug 19, 2021 · 2 comments
Open

description field is always empty #2

Jellyfrog opened this issue Aug 19, 2021 · 2 comments

Comments

@Jellyfrog
Copy link

Jellyfrog commented Aug 19, 2021

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);

@Jellyfrog
Copy link
Author

@Jellyfrog
Copy link
Author

Ping @kiler129 any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant