Bug #79724 [Ver->Csd]: Return type does not match in ext/session/mod_mm.c

From: Date: Thu, 13 Aug 2020 15:26:38 +0000
Subject: Bug #79724 [Ver->Csd]: 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-228584@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 Updated by: nikic@php.net Reported by: velemas at gmail dot com Summary: Return type does not match in ext/session/mod_mm.c -Status: Verified +Status: Closed Type: Bug Package: Compile Failure Operating System: Unix PHP Version: 7.4.7 Assigned To: nikic Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2020-06-22 12:06:06] 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: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

« previous php.bugs (#228584) next »