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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sun Dec 22 01:01:30 2024 UTC