Bug #81517 [NEW]: Bug in enums implementation.
| From: | general at langivi dot technology | Date: | Fri, 08 Oct 2021 18:47:59 +0000 |
| Subject: | Bug #81517 [NEW]: Bug in enums implementation. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-237112@lists.php.net to get a copy of this message | ||
From: general at langivi dot technology
Operating system: linux
PHP version: 8.1.0RC3
Package: *General Issues
Bug Type: Bug
Bug description:Bug in enums implementation.
Description:
------------
There is no way to create instance of enum in PHP extension as function
is not exported
Test script:
---------------
zval property___status_default_value;
ZVAL_NULL(&property___status_default_value);
zend_enum_new(&property___status_default_value, promise_enum,
zend_string_init("Resolving", sizeof("Resolving") - 1,
1), NULL);
zend_string * property___status = zend_string_init("status",
sizeof("status") - 1, 1);
Expected result:
----------------
Enum instance should be created.
Actual result:
--------------
php: symbol lookup error:
/opt/php/php8/lib/php/extensions/no-debug-non-zts-20210902/fileio.so:
undefined symbol: zend_enum_new
--
Edit bug report at https://bugs.php.net/bug.php?id=81517&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81517&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81517&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81517&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81517&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81517&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81517&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81517&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81517&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81517&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81517&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81517&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81517&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81517&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81517&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81517&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81517&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81517&r=mysqlcfg