Felipe Pena
7552edc481
- MFH: New parameter parsing API
2008-08-13 14:06:21 +00:00
Felipe Pena
0a61cda2c7
- Added arginfo
2008-07-01 19:13:44 +00:00
Felipe Pena
84a8bb038a
MFH: New way for check void parameters
2008-03-10 22:15:36 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Jani Taskinen
8af7bc2044
MFH: Fix some lib vs $PHP_LIBDIR issues
2007-07-31 13:02:00 +00:00
Jani Taskinen
45c85130af
MFH: Changed AC_ARG_ENABLE to PHP_ARG_ENABLE
2007-07-11 08:47:45 +00:00
Jani Taskinen
21290220f7
MFH: use defined values instead of plain integers
2007-07-09 13:42:05 +00:00
foobar
7ed3c4536d
MFH: Fix some configure --help texts
2007-07-03 17:25:43 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
foobar
f58da213ff
MFH: - Fixed bug #37164 (snmp_set_oid_numeric_print() misbehaves)
...
MFH: . Renamed the function to snmp_set_oid_output_format() which describes
MFH: it's behaviour better. Old one was left as an alias for it.
MFH: . Added 2 new constants: SNMP_OID_OUTPUT_FULL and SNMP_OID_OUTPUT_NUMERIC
MFH: - Fixed some memleaks
2006-07-27 05:17:34 +00:00
foobar
67a82e5106
MFH: - Fixed bug #37564 (AES privacy encryption not possible due to net-snmp 5.2 compatibility issue)
2006-07-26 23:57:43 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
Antony Dovgal
1cbe552f4d
change "-o" to "||" (fixes potential problems on weird systems where test doesn't support -o)
2005-11-29 18:26:02 +00:00
foobar
9477097564
MFH: Nuked EOLs from error messages
2005-08-18 13:34:41 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
foobar
924b4c016d
ws
2005-05-10 12:19:33 +00:00
foobar
760b955dd1
MFB: - Fixed bug #32613 (ext/snmp: use of snmp_shutdown() causes snmpapp.conf
...
access errors). (Jani, ric at arizona dot edu)
2005-05-10 12:17:01 +00:00
foobar
56b3cac365
Better use zval_ptr_dtor() instead (thanks Andi)
2005-04-27 23:27:37 +00:00
foobar
0eb271add6
- Fix memleak
2005-04-23 21:15:24 +00:00
foobar
82819f3061
- Use correct type (bug #32720 )
2005-04-15 22:06:03 +00:00
Harrie Hazewinkel
e9224d0bd1
Converting the usage of the integer based internal commands into
...
MACROS to ease future extensions.
2005-04-11 14:59:42 +00:00
Harrie Hazewinkel
452b4cdba1
Adding support for a getbulk oriented walk.
...
The getbulk can only be used for SNMPv2c and SNMPv3.
2005-04-11 14:56:44 +00:00
Harrie Hazewinkel
e6ae6fc62d
Adding SNMPv2 community based (i.e. protocol version) functions.
2005-03-16 14:29:40 +00:00
foobar
f485fc1a83
Missed one place..
2005-02-12 18:29:42 +00:00
foobar
751712628a
This was not good idea.
2005-02-12 18:27:22 +00:00
foobar
9ea10c5cec
- Fix some memory leaks
2005-01-08 12:02:22 +00:00
Ilia Alshanetsky
d0cbaa911f
Fixed bug #30995 (snmp extension does not build with net-snmp 5.2).
2004-12-07 00:33:24 +00:00
Anantha Kesari H Y
e510e26aa6
removed unwanted NEW_LIBC checks and comments
2004-09-27 14:19:07 +00:00
Ilia Alshanetsky
0bdfab022a
Fixed bug #27661 (snmpget() does not close the socket in some cases).
2004-03-23 23:12:50 +00:00
Ilia Alshanetsky
6dca37c50c
Fixed possible overflow.
2004-02-03 03:10:28 +00:00
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Wez Furlong
51c342efae
Make these build with new win32 build system.
2003-12-19 17:00:14 +00:00
Ilia Alshanetsky
4c4d5a02b9
Fixed formatting issues (patch by: Joe Orton)
2003-10-17 02:21:27 +00:00
Ilia Alshanetsky
b9823393ea
Fixed bug #25636 (SNMP Session not closed on success).
...
Patch by: nesslage[at]mwsc[dot]edu
2003-09-23 18:26:02 +00:00
foobar
a299e943f8
- Fixed bug #25604 (HAVE_SNMP_PARSE_OID undefined with phpize build)
2003-09-23 08:15:49 +00:00
Zeev Suraski
9db05a36a5
Remove 'proto' from internal functions
2003-08-07 16:46:11 +00:00
Harrie Hazewinkel
4d2229d6a3
Bug 24760 fix, in which the port number when non-default is not handled
...
correctly and ends up as the default port. This seems to be caused by
some buffer overflow where the port number is assign zero, even though
it it is not assigned to the port variable.
FIx was reported and a fix proposed by "chuck+php at 2003 dot snew dot com"
2003-07-24 21:48:55 +00:00
foobar
704a7e5653
- Added snmp_read_mib() which reads a MIB file into the active MIB tree.
2003-07-16 09:28:47 +00:00
foobar
82701d48c2
- Fixes some problems (debug mode only). (bug #23051 and bug #23685 )
2003-07-16 06:03:46 +00:00
foobar
9887afad9c
Remove extra proto. (copy/paste error?)
2003-07-16 05:10:29 +00:00
foobar
6676e6f2e9
Fixed bug #22529 (object_id parameter in all snmp*() functions broken.)
2003-07-16 04:54:40 +00:00
Harrie Hazewinkel
ecef612862
Applying the correct format of the CREDITS.
2003-07-14 18:55:35 +00:00
Harrie Hazewinkel
68a7ce29d1
Updating the CREDITS with those who are indicated as authors in the code.
2003-07-14 18:19:34 +00:00
Harrie Hazewinkel
a8d156177f
Adding an SNMP GETNEXT.
...
This is a basic SNMP operation that retrieves the next value as the
one provided to the command.
NOTE: snmpgetnext does not follow the official naming convetions of
functions, but now it is equal to it version 1 equivalents snmpget
and snmpset.
I also would like to reserve the snmp_getnext for a function to
which a session can be given instead of the multiple values to
create the session internally. (Work in progress).
2003-07-14 18:10:22 +00:00
Harrie Hazewinkel
fa910bd2b0
(RE applying)
...
Cleaning up some very old definitions of version 3.3.1 until 3.5.3.
Those versions are that old that people better upgrade the SNMP libraries.
2003-07-14 17:34:56 +00:00
Harrie Hazewinkel
6dd04c368e
(RE-)Applying the contributed patch of Johan Hanne to the main tree.
...
The patch enables control on the way the values are returned
into the PHP script, instaed of always strings. Also the
type of the value is now returned when configured to do so.
This enables better management scripts to do more automatic
processing and value calculations.
(By default the values are returned as strings, as was before)
2003-07-14 17:11:04 +00:00
foobar
e3cd8fac9b
- Unified PHP_SETUP_OPENSSL with other PHP_SETUP_* macros.
2003-06-24 14:05:26 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
foobar
7d256c1ae1
MFB
2003-02-21 10:43:32 +00:00
foobar
5c63fad55c
MFB: Sanity check.
2003-02-17 22:45:50 +00:00
Zeev Suraski
4934744b93
Win32 build improvements
2003-02-17 13:29:59 +00:00
Wez Furlong
0a18a9d744
A add much more useful select(2) implementation than is provided by
...
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.
This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.
Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
foobar
e771bdb23d
Fixed bug: #20857 , snmpset() fails
2003-01-24 09:52:46 +00:00
foobar
45f1f1711d
ws fixes
2003-01-24 09:40:53 +00:00
Ilia Alshanetsky
3d8e54f3a2
Changed php_error to php_error_docref.
2003-01-19 00:45:53 +00:00
Ilia Alshanetsky
a354531144
Getting rid of the old API parsing code.
2003-01-15 02:54:54 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Edin Kadribasic
28c32e1fc8
MFB: Fix ZTS build.
2002-12-10 17:07:40 +00:00
Derick Rethans
83741be445
- Renamed snmpv3_* to snmp3_*
...
- Conversion to php_error_docref
- Whitespace fixes
2002-12-05 19:33:03 +00:00
Harrie Hazewinkel
6a14b16e34
Adding a more detail print functions, that assist/make it easier for
...
creating SNMP scripts.
They are only supported when you have NET-SNMP.
Need to be documented still though.
2002-11-11 21:37:19 +00:00
Harrie Hazewinkel
957f651708
Adding SNMPv3 support.
...
This splits the old php_snmp function into an argument parsing part and
a data retrieval part. The data retrieval part is reused for SNMPv3.
SNMPv3 has only a different argument parsing.
THe code is not extremely beautiful, but having NET-SNMP and
UCD-SNMP support creates this. :-(
Documentation must still be done.
2002-11-11 21:09:19 +00:00
Harrie Hazewinkel
e1f884c4bc
Fixing the php_info function.
...
Print UCD-SNMP when UCD-SNMP is used.
Print NET-SNMP when NET-SNMP is used.
2002-11-11 18:45:50 +00:00
foobar
9870028d05
Fix this for Wez and his antique ucd-snmp
2002-10-17 06:39:55 +00:00
foobar
8aaa004980
ws fixes
2002-10-17 02:51:22 +00:00
foobar
16de7dd8a7
- Fixed memleak when connection fails.
...
- Fixed snmpget() to work with net-snmp
- Fixed the error messages to use the new style.
2002-10-16 02:33:47 +00:00
foobar
e99b3cdff2
Some more compatibility fixes for net-snmp vs ucd-snmp
2002-10-16 00:58:15 +00:00
foobar
3c863a6da1
- Fix the last commit..(thanks to Harrie Hazewinkel <harrie@lisanza.net>)
2002-10-16 00:29:56 +00:00
foobar
23706f18d6
Make this thing to compile with net-snmp-5.0.x
2002-10-15 00:43:34 +00:00
foobar
1fa263a4ec
This is not zval..
2002-10-14 02:46:52 +00:00
Anantha Kesari H Y
bbc162d164
NetWare related additions/modifications
2002-09-05 11:50:43 +00:00
foobar
3624b97ff1
Kill compile warning
2002-07-13 05:42:01 +00:00
Stefan Roehrich
506282af5c
WS change to make very old compilers/preprocessors (e.g. HP/UX 9)
...
happy (thanks to Andreas Ley for recognizing this).
2002-06-01 20:14:58 +00:00
Sterling Hughes
e15a3c42f3
remove stale 1
2002-05-11 17:41:16 +00:00
Sterling Hughes
2e72f8cc1f
WS Fixes (and similair stylistic changes)
2002-05-11 17:00:49 +00:00
Sascha Schumann
5cba3a99c2
extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed
2002-03-12 16:44:00 +00:00
Yasuo Ohgaki
d5412f3952
Fix compiler warnings
2002-03-01 03:31:01 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Rasmus Lerdorf
8f1eb93e0a
Fix typo
2002-01-16 22:32:40 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
foobar
f1397d5339
Unified the configure messages.
2001-11-30 19:00:13 +00:00
Stig Bakken
0130405168
fix bug #13479
2001-10-15 18:36:43 +00:00
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
...
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Jeroen van Wolffelaar
6cfba2a3ea
2nd phase in back-substitution those macro's
...
I've got pretty much everything now...
2001-09-25 22:49:04 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
foobar
e4df7dc7bf
if test -f /usr/local/lib/libexample.s?; then <-- no workie
...
if test -f /usr/local/lib/libexample.so; then <-- workie
#
# You can all point at me and laugh now.. :(
#
2001-09-07 00:24:06 +00:00
foobar
abeb4bd2e5
Cleaning. And made the check for SSL support in SNMP to really work.
2001-08-20 14:04:48 +00:00
Zeev Suraski
0116a7b911
Fix crashes in parse_parameters calls
...
HEADS UP: Make sure you supply TSRMLS_CC for this function!
I'll try to think of a way that'd allow us to find this issue using
the compiler.
2001-08-13 19:31:18 +00:00
Rasmus Lerdorf
4d11d90880
Track down a few more functions that don't check for 0 args and use
...
faster mechanism
2001-08-13 07:55:39 +00:00
Rasmus Lerdorf
8c497f05c4
We don't consistently check for args passed to functions that don't
...
take any args. In some cases we probably want to skip the check for
performance reasons, but in other cases where performance is unlikely
to be a factor, not throwing a warning on the wrong number of args passed
to a function is at best inconsistent, and at worst it could hide a bug.
So, add a few such checks. There are still lots of cases out there.
2001-08-13 06:43:47 +00:00
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
...
- whitespace fixes
2001-08-05 01:43:02 +00:00
foobar
74f07c5278
Simplified a bit and made more readable.
2001-07-27 14:26:39 +00:00
Rasmus Lerdorf
65c8679b26
Fix for bug #12081
...
@ - Fix return value for a failed snmpset() - now returns false (Rasmus)
2001-07-13 05:21:37 +00:00
Rasmus Lerdorf
60c8e4409f
Add port support to snmp functions
...
@ - Add hostname:port support to snmp functions
@ (nbougues@axialys.net , Rasmus)
2001-07-13 05:09:40 +00:00