peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.37k stars 203 forks source link

SNMP not found #960

Open RenFontes opened 3 years ago

RenFontes commented 3 years ago

I get the following error: Unhandled exception. Error: Class 'SNMP' not found in (folder name omitted)

php-snmp was installed using apt on ubuntu, seems to be working on native php. Using the latest (stable) .net core.

Is it actually supported? Is there some work around to get it to work?

jakubmisek commented 3 years ago

Hi, thank you for posting the issue.

PeachPie is a fully managed reimplementation of the PHP language; hence native PHP nor native PHP extensions are not used by PeachPie.

Supported extensions are listed on https://docs.peachpie.io/compatibility-status/ . SNMP is not yet supported. It was not requested until now.

May I ask if it's a requirement of some open-source project we can test it on?

RenFontes commented 3 years ago

Hey, no sorry. It's a private project.

Thanks for the reply. I'll try replacing it with some SNMP nuget package.