Bug #79724 [PATCH]: Return type does not match in ext/session/mod_mm.c
| From: | velemas@gmail.com | Date: | Mon, 22 Jun 2020 12:06:06 +0000 |
| Subject: | Bug #79724 [PATCH]: Return type does not match in ext/session/mod_mm.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227600@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79724&edit=1
ID: 79724
Patch added by: velemas@gmail.com
Reported by: velemas at gmail dot com
Summary: Return type does not match in ext/session/mod_mm.c
Status: Open
Type: Bug
Package: Compile Failure
Operating System: Unix
PHP Version: 7.4.7
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2020-06-22 12:03:59] 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;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79724&edit=1