opensolutions / OSS_SNMP

A PHP SNMP library for people who hate SNMP, MIBs and OIDs!
https://github.com/opensolutions/OSS_SNMP/wiki
Other
107 stars 58 forks source link

getSerialNumber should not return "(not implemented)" #55

Closed nickhilliard closed 2 years ago

nickhilliard commented 6 years ago

The getSerialNumber() method should return either a discrete value or else null, rather than returning the string "(not implemented)".

This impacts downstream consumers of OSS_SNMP, because it means that the only way to check if there's no serial number is to run a string match against "(not implemented)" rather than the more obvious isset().