Bug #80823 [NEW]: TSRMG macros sometimes used directly instead of going through ZEND_TSRMG
| From: | theultramage at gmail dot com | Date: | Wed, 03 Mar 2021 00:29:42 +0000 |
| Subject: | Bug #80823 [NEW]: TSRMG macros sometimes used directly instead of going through ZEND_TSRMG | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-232484@lists.php.net to get a copy of this message | ||
From: theultramage at gmail dot com
Operating system: FreeBSD 12.2
PHP version: 8.0.2
Package: Unknown/Other Function
Bug Type: Bug
Bug description:TSRMG macros sometimes used directly instead of going through ZEND_TSRMG
Description:
------------
While investigating a TSRM problem, I noticed that several places use
TSRMG_* macros from TSRM.h directly instead of using the ZEND_TSRMG_*
wrappers from zend.h. In the case that ZEND_ENABLE_STATIC_TSRMLS_CACHE
is disabled (or forcefully patched out, since currently it's hardcoded
into every m4 makefile), some parts will not switch over to the no-cache
macros and cause a compilation error.
I am not sure if these omissions are intended, but some of these have
been there since 2001 and the wrapper was added in 2014, so my guess is
they were just skipped by accident.
ext/oci8/php_oci8_int.h
ext/readline/readline_cli.h
ext/snmp/php_snmp.h
main/output.c
sapi/phpdbg/phpdbg.c
sapi/phpdbg/phpdbg_utils.h
--
Edit bug report at https://bugs.php.net/bug.php?id=80823&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80823&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80823&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80823&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80823&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80823&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80823&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80823&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80823&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80823&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80823&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80823&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80823&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80823&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80823&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80823&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80823&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80823&r=mysqlcfg