Req #80661 [Com]: Add string output format function for SNMP

From: Date: Tue, 15 Feb 2022 00:39:20 +0000
Subject: Req #80661 [Com]: Add string output format function for SNMP
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-239787@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80661&edit=1 ID: 80661 Comment by: master dot training365 at gmail dot com Reported by: thewitness at cacti dot net Summary: Add string output format function for SNMP Status: Open Type: Feature/Change Request Package: SNMP related PHP Version: Next minor version Block user comment: N Private report: N New Comment: https://pastelink.net/zjhwgdtj https://groups.google.com/g/soc.history.ancient/c/k9qBuUivgko http://glintpost.pbworks.com/w/page/147994755/anas01 Previous Comments: ------------------------------------------------------------------------ [2022-02-14 04:07:57] master dot training365 at gmail dot com https://bit.ly/3uK6A3K https://bit.ly/3BgLBH7 https://bit.ly/3GOMPKO https://bit.ly/3rLacQY https://bit.ly/3Jodek5 ------------------------------------------------------------------------ [2021-08-18 10:39:54] cmb@php.net The following pull request has been associated: Patch Name: Fix #80661: Add string output format function for SNMP On GitHub: https://github.com/php/php-src/pull/6633 Patch: https://github.com/php/php-src/pull/6633.patch ------------------------------------------------------------------------ [2021-01-24 02:46:00] thewitness at cacti dot net Pull request is here. Passed testing it looks. https://github.com/php/php-src/pull/6633 ------------------------------------------------------------------------ [2021-01-24 01:09:50] thewitness at cacti dot net Okay, getting a hang of the code now. ------------------------------------------------------------------------ [2021-01-23 22:34:27] thewitness at cacti dot net 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 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=80661 -- Edit this bug report at https://bugs.php.net/bug.php?id=80661&edit=1

« previous php.bugs (#239787) next »