Bug #75479 [NEW]: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t

From: Date: Fri, 03 Nov 2017 12:10:31 +0000
Subject: Bug #75479 [NEW]: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212425@lists.php.net to get a copy of this message
From: spam2 at rhsoft dot net Operating system: PHP version: 7.1Git-2017-11-03 (Git) Package: Compile Warning Bug Type: Bug Bug description:warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t Description: ------------ /home/builduser/rpmbuild/BUILD/php-7.1.11/sapi/apache2handler/sapi_apache2.c: In function 'php_ap2_register_hook': /home/builduser/rpmbuild/BUILD/php-7.1.11/sapi/apache2handler/sapi_apache2.c:755:21: warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer type [-Wincompatible-pointer-types] ap_hook_child_init(zend_signal_init, NULL, NULL, APR_HOOK_MIDDLE); ^~~~~~~~~~~~~~~~ In file included from /usr/include/httpd/ap_hooks.h:40:0, from /usr/include/httpd/ap_config.h:25, from /home/builduser/rpmbuild/BUILD/php-7.1.11/sapi/apache2handler/sapi_apache2.c:41: /usr/include/httpd/ap_hooks.h:75:35: note: expected 'void (*)(apr_pool_t *, server_rec *) {aka void (*)(struct apr_pool_t *, struct server_rec *)}' but argument is of type 'void (*)(void)' APR_DECLARE_EXTERNAL_HOOK(ap,AP,ret,name,args) ^ /usr/include/apr-1/apr_hooks.h:120:22: note: in definition of macro 'APR_DECLARE_EXTERNAL_HOOK' link##_DECLARE(void) ns##_hook_##name(ns##_HOOK_##name##_t *pf, \ ^~ /usr/include/httpd/http_config.h:1312:1: note: in expansion of macro 'AP_DECLARE_HOOK' AP_DECLARE_HOOK(void,child_init,(apr_pool_t *pchild, server_rec *s)) ^~~~~~~~~~~~~~~ -- Edit bug report at https://bugs.php.net/bug.php?id=75479&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75479&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75479&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75479&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75479&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75479&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75479&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75479&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75479&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75479&r=support Expected behavior: https://bugs.php.net/fix.php?id=75479&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75479&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75479&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75479&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75479&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75479&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75479&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75479&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75479&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75479&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75479&r=mysqlcfg

« previous php.bugs (#212425) next »