Bug 78215

Summary: php-snmp stops php page processing when accessing snmp functions
Product: [Retired] Red Hat Linux Reporter: Need Real Name <jeff.rendl>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED DUPLICATE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 18:50:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Need Real Name 2002-11-20 05:13:05 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; .NET 
CLR 1.0.3705)

Description of problem:
If a line like below is in the php page,
<?
$syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0");
?> 
the page will stop being processed at that line, no errors are displayed, it's 
as if you were to have put in the word "end".  I believe this has something to 
do with the fact that net-snmp doesn't support some of the called ucd-snmp 
supported.  Furthermore, when making a snmp call to net-snmp based commands 
like snmpget, a -c is required to specify the community string unlike with ucd-
snmp.  I don't think it's related to the PHP problem, but a lot things were 
based off ucd-snmp and the php-snmp that is included will not install with ucd-
snmp 4.2.3 installed (via packages), it thinks they aren't there.


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install a "vanilla" copy of RH 8
2. Install the php-snmp package
3. Make this simple php page and watch it not work:

//Begin Here
<html>
<body>
<?
echo "Hi";
$syscontact = snmpget("127.0.0.1", "public", "system.SysContact.0");
echo " there!";
?>
</body>
</html>


	

Actual Results:  You will just see a blank page with the word "Hi".

Expected Results:  I should have seen my name, or at least both Hi and there!

Additional info:

Comment 1 Need Real Name 2002-11-20 12:47:14 UTC
See #74761 bug!


Comment 2 Joe Orton 2003-02-12 16:10:30 UTC

*** This bug has been marked as a duplicate of 74761 ***

Comment 3 Red Hat Bugzilla 2006-02-21 18:50:10 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.