php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75479 warning: passing argument 1 of 'ap_hook_child_init' from incompatible pointer t
Submitted: 2017-11-03 12:10 UTC Modified: -
Votes:4
Avg. Score:4.2 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:0 (0.0%)
From: spam2 at rhsoft dot net Assigned:
Status: Closed Package: Compile Warning
PHP Version: 7.1Git-2017-11-03 (Git) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: spam2 at rhsoft dot net
New email:
PHP Version: OS:

 

 [2017-11-03 12:10 UTC] spam2 at rhsoft dot net
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))
 ^~~~~~~~~~~~~~~


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-01-17 21:48 UTC] carter_aaron at bah dot com
Same warning when compiling php-7.2.1
 [2018-01-17 22:06 UTC] carter_aaron at bah dot com
Operating System: Red Hat Enterprise Linux Server 7.4 (Maipo)
            Kernel: Linux 3.10.0-693.5.2.el7.x86_64
 [2018-09-30 18:09 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=db80e0e2ad016cbff55cc6e1311b7ffe9ad7101e
Log: Fixed bug #75479
 [2018-09-30 18:09 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 07:01:31 2024 UTC