PHP_STREAM_TO_ZVAL
| From: | Thomas Hruska | Date: | Thu, 24 Nov 2022 15:35:21 +0000 |
| Subject: | PHP_STREAM_TO_ZVAL | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-119027@lists.php.net to get a copy of this message | ||
In ext/standard/file.c:
#define PHP_STREAM_TO_ZVAL(stream, arg) \
ZEND_ASSERT(Z_TYPE_P(arg) == IS_RESOURCE); \
php_stream_from_res(stream, Z_RES_P(arg));
Can someone clarify why that macro is named PHP_STREAM_TO_ZVAL? The current name seems to imply the inverse of what actually happens.
--
Thomas Hruska
CubicleSoft President
CubicleSoft has over 80 original open source projects and counting.
Plus a couple of commercial/retail products.
What software are you looking to build?