php.net |  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
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: velemas at gmail dot com
New email:
PHP Version: OS:

 

 [2020-06-22 12:03 UTC] velemas at gmail dot com
Description:
------------
(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).

PS_GC_FUNC is:
#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;


Patches

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

Pull Requests

History

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
URL:        https://bugs.php.net/patch-display.php?bug=79724&patch=mod_mm.patch&revision=1592827566
 [2020-06-22 12:10 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2020-08-13 09:45 UTC] nikic@php.net
-Assigned To: +Assigned To: nikic
 [2020-08-13 15:26 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=8bda799d6f6b3027117105ab717dacdcab597032
Log: Fixed bug #79724
 [2020-08-13 15:26 UTC] nikic@php.net
-Status: Verified +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC