|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43410 SNMP cause "PHP has encountered an Access Violation" when wrong IP or CommStr
Submitted: 2007-11-26 11:50 UTC Modified: 2011-09-02 20:27 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: andy_wolk at mail dot ru Assigned:
Status: No Feedback Package: SNMP related
PHP Version: 5.2.5 OS: Windows 2003 Server Enterprise
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
9 - 9 = ?
Subscribe to this entry?

 [2007-11-26 11:50 UTC] andy_wolk at mail dot ru
SNMP functions cause "PHP has encountered an Access Violation" when wrong IP or Community String.

IIS 6 + PHP5.2.2dev isapi module.
PHP_snmp.dll (ver
All next php versions has the same problem.

After this error, IIS does not can operate with snmp module and needs to be restarted.

Event viewer: Faulting application w3wp.exe, version 6.0.3790.3959, faulting module unknown, version, fault address 0x010cfdf4.

No errors in php_error.log

Reproduce code:



 echo "Start...";
 $communitystring=''; // Your device must have this string no empty!
 $ip=''; // Sometimes this error occured, when there is no Device in a network with this IP.
 for ($i=1;$i<14;$i++)




 echo "Finish";




Expected result:

Actual result:
Start...PHP has encountered an Access Violation at xxxxxxxx


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-21 12:06 UTC]
Please try using this CVS snapshot:
For Windows:

Do not paste such huge texts here. Put them somewhere in net (like where we can check them out.

 [2008-10-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-09-14 08:29 UTC] andy_wolk at mail dot ru
Still got the problem. We use the latest 5.2.x version as isapi. But no luck.
I think we are not alone. Check this out (a post from Mar 2010)
 [2010-09-14 10:55 UTC]
-Status: No Feedback +Status: Feedback
 [2010-09-14 10:55 UTC]
Please try using this snapshot:
For Windows:

 [2011-09-02 20:27 UTC]
-Status: Feedback +Status: No Feedback
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 17:01:28 2024 UTC