|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79724 Return type does not match in ext/session/mod_mm.c
Submitted: 2020-06-22 12:03 UTC Modified: 2020-08-13 09:45 UTC
From: velemas at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.4.7 OS: Unix
Private report: No CVE-ID: None
 [2020-06-22 12:03 UTC] velemas at gmail dot com
(php-7.4.7/ext/session/mod_mm.c) /    469: return value type does not match the function type
          return nrdels;

This points to PS_GC_FUNC(mm).

#define PS_GC_FUNC(x)           zend_long ps_gc_##x(PS_GC_ARGS)  <-- Note zend_long return type

And PS_GC_ARGS is:
#define PS_GC_ARGS       void **mod_data, zend_long maxlifetime, zend_long *nrdels  <-- Note zend_long* pointer type

PS_GC_FUNC(mm) returns nrdels which is a zend_long pointer but its return type is just a zend_long value.

The returns statement should be:
return *nrdels;


mod_mm.patch (last revision 2020-06-22 12:06 UTC by velemas at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-06-22 12:06 UTC] velemas at gmail dot com
The following patch has been added/updated:

Patch Name: mod_mm.patch
Revision:   1592827566
 [2020-06-22 12:10 UTC]
-Status: Open +Status: Verified
 [2020-08-13 09:45 UTC]
-Assigned To: +Assigned To: nikic
 [2020-08-13 15:26 UTC]
Automatic comment on behalf of
Log: Fixed bug #79724
 [2020-08-13 15:26 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 14:01:29 2024 UTC