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?

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to