Edit report at https://bugs.php.net/bug.php?id=60749&edit=1

 ID:                 60749
 Updated by:         lytbo...@php.net
 Reported by:        lytbo...@php.net
 Summary:            SNMP module should not strip non-standard SNMP port
                     from hostname
-Status:             Assigned
+Status:             Feedback
 Type:               Bug
 Package:            SNMP related
 Operating System:   *
 PHP Version:        5.4.0RC5
 Assigned To:        lytboris
 Block user comment: N
 Private report:     N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.4-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/




Previous Comments:
------------------------------------------------------------------------
[2012-01-13 18:46:27] lytbo...@php.net

Automatic comment from SVN on behalf of lytboris
Revision: http://svn.php.net/viewvc/?view=revision&revision=322214
Log: merge from trunk:
Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is 
disabled
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from 
hostname

------------------------------------------------------------------------
[2012-01-13 18:33:52] lytbo...@php.net

Automatic comment from SVN on behalf of lytboris
Revision: http://svn.php.net/viewvc/?view=revision&revision=322213
Log: Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is 
disabled)
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from 
hostname)
Fixed ipv6 test skipto if IPv6 support is disabled

------------------------------------------------------------------------
[2012-01-13 17:39:50] lytbo...@php.net

Description:
------------
>From net-snmp/include/net-snmp/types.h, struct snmp_session:
    /** name or address of default peer (may include transport specifier and/or 
port number) */
    char           *peername;
    /** UDP port number of peer. (NO LONGER USED - USE peername INSTEAD) */
    u_short         remote_port;

php-snmp should place non-standard SNMP port into peername after name 
resolution.

Test script:
---------------
$session = new SNMP(SNMP::VERSION_1, "$hostname:$port", $community, $timeout, 
$retries);
$session->get(".1");


Expected result:
----------------
$session->get() will send request to "$hostname:$port"


Actual result:
--------------
$session->get() will send request to "$hostname:161"


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60749&edit=1

Reply via email to