FreeDSx / SNMP

A Pure PHP SNMP Library.
MIT License
58 stars 15 forks source link

Fix empty evaluation #5

Closed simPod closed 5 years ago

simPod commented 5 years ago

image

ChadSikorra commented 5 years ago

Intersting...I figured the if (!$this->next) { should evaluate false for an empty array. Does this cause it to actually work as expected for what you mentioned in the issue?

simPod commented 5 years ago

It evaluated as true -> threw exception even though there were 100 items in $next.

And that was the reason why it returned no data.

ChadSikorra commented 5 years ago

Weird. Thanks for taking the time to help fix that!