Commit Graph

227 Commits

Author SHA1 Message Date
Boris Lytochkin
7a0bd8b967 remove PHP_VERSION_ID ifdef's, limiting to 5.4 branch 2011-06-12 12:26:51 +00:00
Boris Lytochkin
2b8026cfff merging from trunk (r312088...r312092):
move SNMP VERSION constants into SNMP class itself
fix typo in comment
no more method open
fix method names in header
2011-06-12 12:10:01 +00:00
Felipe Pena
32b5f8a1a3 - Added new parameter parsing option (p - for valid path (string without null byte in the middle))
# The tests will be fixed in the next commits
2011-06-06 21:28:16 +00:00
Boris Lytochkin
dbed284039 fixed typos in tests
ucd-snmp epoch is over, drop legacy memory allocation (non e*)
tune 'buggy snmp_snprint_value' detection on some systems
2011-05-10 20:04:26 +00:00
Boris Lytochkin
97930e9170 method renaming:
SNMP::get_errno() -> SNMP::getErrno()
SNMP::get_error() -> SNMP::getError()
2011-05-10 11:48:10 +00:00
Boris Lytochkin
9d2f7c1e3e remove method open, __construct is enough 2011-05-09 19:34:07 +00:00
Boris Lytochkin
ee0d7f3207 * new option for SNMP::get: force keys of return array be as in request array
* new option for SNMP::walk: use suffix of OID for keys in return array, not full OID
2011-05-08 13:58:37 +00:00
Boris Lytochkin
1dc02ac2de fix error reporting on OID not increasing
calling arguments markup
2011-05-08 09:20:58 +00:00
Boris Lytochkin
b1d9284901 fix typo 2011-04-12 08:00:14 +00:00
Boris Lytochkin
bbb4f679ae * Net-SNMP version detection and proper processing
* more UCD-SNMP-related code removal
2011-04-06 06:58:25 +00:00
Boris Lytochkin
cab643f615 * added detection and walkaround for net-snmp library bug (net-snmp BUGid 2027834)
* drop UCD-SNMP support, R.I.P.
2011-04-05 12:20:35 +00:00
Boris Lytochkin
14eaa5ac58 follow CS:
- method set_security should be named as setSecurity
 - SNMP_VERSION_2C constant
2011-03-20 20:07:33 +00:00
Boris Lytochkin
5d0c948296 revert r309111 (name_len was not a typo) 2011-03-19 20:50:39 +00:00
Boris Lytochkin
d890ece3fc fix typo in SNMP_SNPRINT_VALUE usage: use val_len, not name_length 2011-03-11 07:21:13 +00:00
Boris Lytochkin
8e600b817e * tune snmp2_walk.phpt
* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)
2011-03-04 19:23:25 +00:00
Boris Lytochkin
3c0f1d5b95 * fix warning about redefining REGISTER_PDO_CLASS_CONST_LONG (damn copy'n'paste)
* tuned two unit test that failed at gcov.php.net/PHP_HEAD
2011-03-04 18:58:01 +00:00
Boris Lytochkin
661b552938 fix warnings mentioned in 'Parameter Parsing Report' 2011-03-02 22:12:02 +00:00
Boris Lytochkin
e9920cce1c remove compiler warnings
fix various memory leaks seen with --enable-debug
2011-02-26 19:08:55 +00:00
Boris Lytochkin
1c65920819 * new methods get_errno, get_error to get errno and error string
of last SNMP-related error
* formatting markup
* some fixes in max_oids logic: NULL will set it to default value,
    do not allow non-positive user-supplied values
* unit tests for changes
2011-02-26 08:27:26 +00:00
Boris Lytochkin
3ab69c4cff fix parse errors for non_repeaters & max_repetitions: aligment errors 2011-02-25 19:22:15 +00:00
Boris Lytochkin
430af9a0ab push most of SNMP query options into objid_query structure 2011-02-19 11:13:10 +00:00
Boris Lytochkin
73f5ee551c enable HAVE_SHUTDOWN_SNMP_LOGGING 2011-02-17 12:12:22 +00:00
Boris Lytochkin
6b81a9ac2e * Fix memory leak on concurrent new, open
* change comments to ANSI-C style
* added compatibility with net-snmp prior 5.4
2011-02-17 12:02:16 +00:00
Felipe Pena
b58c6f5ede - Fixed crash on unserialize(serialize(new SNMP)) 2011-02-15 00:07:26 +00:00
Felipe Pena
aef9557333 - Fixed memory leak on serialize(new SNMP) 2011-02-14 23:58:52 +00:00
Felipe Pena
be2bfd1bcf - Fixed memory leak 2011-02-14 23:43:22 +00:00
Boris Lytochkin
c50b3d7add fix crash caused by incorrect offset altering 2011-02-05 13:22:38 +00:00
Boris Lytochkin
f69e1100ce added r/o info property with basic session info,
fix crash in _get_properties in trunk
2011-02-05 00:29:31 +00:00
Pierre Joye
fefe9fc5c7 - fix build, wrong version id 2011-02-01 13:57:06 +00:00
Boris Lytochkin
2bc31f8027 preprocessed changes made in rev.307894:
keeping ext/snmp backwards compatible
2011-02-01 08:20:13 +00:00
Boris Lytochkin
dc781e2520 - Improved SNMP extension:
. Allow ~infinite OIDs in GET/GETNEXT/SET queries. Autochunk them to max_oids
    upon request.
2011-02-01 07:45:30 +00:00
Felipe Pena
ca9b3511f8 - Fixed build 2011-02-01 01:02:00 +00:00
Boris Lytochkin
5e82e334dd Improved SNMP extension. FR #53594 2011-01-31 11:41:33 +00:00
Felipe Pena
0203cc3d44 - Year++ 2011-01-01 02:17:06 +00:00
Rob Richards
0a34d10783 revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
Kalle Sommer Nielsen
518a17e7bf Remove old dsp/dsw/makefile files, these arent used by the build system anymore and are barely updated nor available for all extensions 2010-04-21 23:36:49 +00:00
Pierre Joye
d010d0732c - improve netsnmp detection (and restor snmp on win) 2010-02-09 16:38:24 +00:00
Sebastian Bergmann
9ba1e81665 sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Jani Taskinen
70e8b40fc7 - Fixed bug #49990 (SNMP3 warning message about security level printed twice). 2009-10-25 20:17:04 +00:00
Stanislav Malyshev
fa2310b177 fix parameter parsing for SNMP 2009-08-17 22:15:18 +00:00
Ilia Alshanetsky
083ed5b3e5 Fixed bug #48273 (snmp*_real_walk() returns SNMP errors as values) 2009-06-01 13:10:18 +00:00
Ilia Alshanetsky
7c3e7f88c4 Fixed bug #48359 (Script hangs on snmprealwalk if OID is not increasing)
# Original patch by simonov at gmail dot com
2009-05-31 14:11:04 +00:00
Jani Taskinen
16c3b8f149 MFH:- Revert bad patch (which caused bug #48133) 2009-05-02 21:13:54 +00:00
Sebastian Bergmann
08659c2dcd MFH: Bump copyright year, 3 of 3. 2008-12-31 11:15:49 +00:00
Jani Taskinen
80d5100309 MFH 2008-11-21 16:41:04 +00:00
Felipe Pena
fc2fb50d09 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-11-17 11:28:01 +00:00
Kalle Sommer Nielsen
2b0df36f42 MFH: New parameter parsing API 2008-11-07 11:05:24 +00:00
Felipe Pena
7a37fa2d6b - Revert ZEND_BEGIN_ARG_INFO change 2008-11-02 21:19:39 +00:00
Felipe Pena
df10005563 - MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro 2008-10-24 14:35:40 +00:00
Alexey Zakhlestin
8a2461af4c Fixed bug #45405 (snmp extension memory leak) 2008-09-06 07:57:22 +00:00