Req #75491 [Opn->Wfx]: need structs, unions
| From: | pollita@php.net | Date: | Mon, 06 Nov 2017 22:08:46 +0000 |
| Subject: | Req #75491 [Opn->Wfx]: need structs, unions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-212484@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75491&edit=1
ID: 75491
Updated by: pollita@php.net
Reported by: jmichae35 at gmail dot com
Summary: need structs, unions
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
PHP Version: 7.2.0RC5
Block user comment: N
Private report: N
New Comment:
You're never going to find something like this in PHP because of the way PHP's memory
layout works.
Previous Comments:
------------------------------------------------------------------------
[2017-11-06 21:18:43] jmichae35 at gmail dot com
Description:
------------
need structs and unions like in C/C++. an anon class comes close, but is not quite it. and it needs
to have byte alignment.
Expected result:
----------------
struct {
...
}
...
union {
...
}
if you can obtain it from ANSI spec
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75491&edit=1