Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119027 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56033 invoked from network); 24 Nov 2022 15:35:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Nov 2022 15:35:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id AF75B1804BE for ; Thu, 24 Nov 2022 07:35:24 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS16276 149.56.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from tls2.org (tls2.org [149.56.142.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 24 Nov 2022 07:35:24 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: thruska@cubiclesoft.com) with ESMTPSA id 4611D3EDA6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cubiclesoft.com; s=default; t=1669304123; bh=AYG3q2tZO88yJ4aVG5Fzc6tI/4XQ8qKKsJxnxbgy6Ng=; h=Date:From:Subject:To:From; b=A8FuCHABaei6AMRYonrBONCPmndihN94cvX6CD3GJZRjroPE8JQvSgKIKtN4s2rYv wXx/0AVHLLVBOYCSv96h17hQc39rhSj9u63oePW9fy5RQsfJRz7CRZ5k8ZghDDlltS +IEbHzroYd0hudlokCWKfi7AtuWRiASr+QJnKh3Vw8rxqpYESeRIrek3JOvimOWq0l yVrJxFMf3afcmFGf3aQFc5pf8u6w2tmqOo30WmkjW53ZLl+kX176jPT9Ni4XzGqIPy aM8ZKTo1iZW+IryYQZ2ZKYq6Hfo5znmiuj+QLYGHHAVkSNBnVcQE3+wP7LTlL2Kivp d/LFnF++1Dhhw== Message-ID: <5a5bf716-1c4a-aec8-f48f-5dc92166e1a2@cubiclesoft.com> Date: Thu, 24 Nov 2022 08:35:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 Content-Language: en-US To: PHP Development Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: PHP_STREAM_TO_ZVAL From: thruska@cubiclesoft.com (Thomas Hruska) 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?