[php-src] PR #17102: Add FFI::offsetof()

From: Date: Mon, 09 Dec 2024 22:08:16 +0000
Subject: [php-src] PR #17102: Add FFI::offsetof()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29964@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17102 Author: nielsdos I don't know if you think this is useful too. This is useful for a couple of different applications: - Some object oriented / generic features are implemented by using field offsets (e.g. container_of like in the Linux kernel). - Tracking extra allocation data, this is where the first "offsetof()" feature request comes from: https://bugs.php.net/bug.php?id=79066 - Serialization/deserialization purposes with direct pointer arithmetic Would resolve https://bugs.php.net/bug.php?id=79066

« previous php.git-pulls (#29964) next »