Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119041 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 80879 invoked from network); 27 Nov 2022 14:17:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Nov 2022 14:17:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 8E3451804BE for ; Sun, 27 Nov 2022 06:17:52 -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 ; Sun, 27 Nov 2022 06:17:52 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: thruska@cubiclesoft.com) with ESMTPSA id 15AE43EEAE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cubiclesoft.com; s=default; t=1669558671; bh=Pah/AeVLQL4ErcG+PpbsW/RZNEcdfapg/Jp/snl9oN8=; h=Date:From:To:Subject:From; b=KRHLATnImI6U6OOGdO8lDvdykVvR+/E4s2B1bRiw/MqUyhMIazGkZMTz2U+9m1OUM VdXcNkiQrcgy/OpTNJ7z3qIJJoqWQ7xcLZfyhKkv5hHSZdIXxr+d8/TFMRIdgP+mDl 5dZARbMs9BTpjEhTsV+mS6CvO48OQrijORxMTN7Hkgo15RJUuf/y2Nh8XF0FM6sMsW 4Ee1kqwlJBZFjstCndzZm6GEosm1cA/2OTP/AxKrd71NtHfTrkhaPecnNIO5U5EAka zyV90wcW/ejR3gS9zEMifekJr9829Eem1vi+BPPRlbtvS9rdFjMYE3tZ6evI80GxDd P6dVYRJZblkDg== Message-ID: Date: Sun, 27 Nov 2022 07:17:49 -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: zval_ptr_dtor_str(return_value) From: thruska@cubiclesoft.com (Thomas Hruska) In ext/standard/file.c, when php_stream_read_to_str() fails, fread() calls: zval_ptr_dtor_str(return_value); Is there ever a situation where return_value can be a string that has to be freed? -- 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?