Req #75491 [Wfx]: need structs, unions

From: Date: Mon, 06 Nov 2017 22:49:58 +0000
Subject: Req #75491 [Wfx]: need structs, unions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212487@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 User updated by: jmichae35 at gmail dot com Reported by: jmichae35 at gmail dot com Summary: need structs, unions 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 might try implementing some particularly useful ones like windows' SYSTEM_TIME and struct time_t. Previous Comments: ------------------------------------------------------------------------ [2017-11-06 22:08:44] pollita@php.net You're never going to find something like this in PHP because of the way PHP's memory layout works. ------------------------------------------------------------------------ [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

« previous php.bugs (#212487) next »