|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-01-22 18:26 UTC] thewitness at cacti dot net
Description: ------------ The various native snmp commands for some time have supported what is referred to as a string out put format of: GUESS ASCII HEX However, the current php-snmp implementation can not take advantage of those directives when performing a walk or a get of a variable. Test script: --------------- N/A PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 22:00:01 2025 UTC |
Here is what I get with stock master: [root@vmhost3 php-src-master]# make /bin/sh /root/php-src-master/libtool --silent --preserve-dup-deps --mode=compile cc -std=gnu99 -Iext/snmp/ -I/root/php-src-master/ext/snmp/ -I/root/php-src-master/include -I/root/php-src-master/main -I/root/php-src-master -I/root/php-src-master/ext/date/lib -I/usr/include/libxml2 -I/root/php-src-master/TSRM -I/root/php-src-master/Zend -fno-common -Wlogical-op -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS -c /root/php-src-master/ext/snmp/snmp.c -o ext/snmp/snmp.lo In file included from /root/php-src-master/main/php.h:35:0, from /root/php-src-master/ext/snmp/snmp.c:26: /root/php-src-master/Zend/zend_API.h:77:88: error: expected expression before ‘,’ token #define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags) { zend_name, name, arg_info, (uint32_t) (sizeof(arg_info)/sizeof(struct _zend_internal_arg_info)-1), flags }, ^ /root/php-src-master/Zend/zend_API.h:83:38: note: in expansion of macro ‘ZEND_RAW_FENTRY’ #define ZEND_FE(name, arg_info) ZEND_RAW_FENTRY(#name, zif_##name, arg_info, 0) ^ /root/php-src-master/ext/snmp/snmp_arginfo.h:217:2: note: in expansion of macro ‘ZEND_FE’ ZEND_FE(snmp_set_string_output_format, arginfo_snmp_set_string_output_format) ^ /root/php-src-master/Zend/zend_API.h:77:88: warning: missing initializer for field ‘arg_info’ of ‘zend_function_entry’ [-Wmissing-field-initializers] #define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags) { zend_name, name, arg_info, (uint32_t) (sizeof(arg_info)/sizeof(struct _zend_internal_arg_info)-1), flags }, ^ /root/php-src-master/Zend/zend_API.h:83:38: note: in expansion of macro ‘ZEND_RAW_FENTRY’ #define ZEND_FE(name, arg_info) ZEND_RAW_FENTRY(#name, zif_##name, arg_info, 0) ^ /root/php-src-master/ext/snmp/snmp_arginfo.h:217:2: note: in expansion of macro ‘ZEND_FE’ ZEND_FE(snmp_set_string_output_format, arginfo_snmp_set_string_output_format) ^ In file included from /root/php-src-master/main/php.h:35:0, from /root/php-src-master/ext/snmp/snmp.c:26: /root/php-src-master/Zend/zend_API.h:38:40: note: ‘arg_info’ declared here const struct _zend_internal_arg_info *arg_info; ^ cc1: warning: unrecognized command line option "-Wno-implicit-fallthrough" [enabled by default] make: *** [ext/snmp/snmp.lo] Error 1