Bug 78215 - php-snmp stops php page processing when accessing snmp functions
php-snmp stops php page processing when accessing snmp functions
Status: CLOSED DUPLICATE of bug 74761
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
8.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-11-20 00:13 EST by Need Real Name
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-02-21 13:50:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Need Real Name 2002-11-20 00:13:05 EST
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 07:47:14 EST
See #74761 bug!
Comment 2 Joe Orton 2003-02-12 11:10:30 EST

*** This bug has been marked as a duplicate of 74761 ***
Comment 3 Red Hat Bugzilla 2006-02-21 13:50:10 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.