Bug #79724 [NEW]: Return type does not match in ext/session/mod_mm.c

From: Date: Mon, 22 Jun 2020 12:03:59 +0000
Subject: Bug #79724 [NEW]: Return type does not match in ext/session/mod_mm.c
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227599@lists.php.net to get a copy of this message
From: velemas at gmail dot com Operating system: Unix PHP version: 7.4.7 Package: Compile Failure Bug Type: Bug Bug description:Return type does not match in ext/session/mod_mm.c 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 bug report at https://bugs.php.net/bug.php?id=79724&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79724&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79724&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79724&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79724&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79724&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79724&r=support Expected behavior: https://bugs.php.net/fix.php?id=79724&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79724&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79724&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79724&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79724&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79724&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79724&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79724&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79724&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79724&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79724&r=mysqlcfg

« previous php.bugs (#227599) next »