Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126090 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 357021A00BD for ; Sun, 1 Dec 2024 20:32:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1733084980; bh=3/d+jJzf6ylSSyLVbH7Hc8nV1ek4inPqsDtg1fvyHx0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dddamgsbU9+cKyhbmqatCy+icXCQohZMuZUEpSveNfEXyqDv1/u/0Essenhj2Bup+ ACItKeoMJcW7bt/2FwdFQZprStmjjhk+9a5uFr7bkGCyg0kx5URhnsMkzbLQX+P9FV HILeYRHKqklnpVGJ5RFRbenqC42hNZOHhHk+vJEimuTN9q7xj9/IoJ84WOu3M7wj0b 1ohEGs26jtS7xX7GAWZLH45JrKES3aeVKosrkD4DxQdpHkWq9IXFVLeVTcZsRmVVPA A5cJcDlqtXL9+Hc6++5YNKhLlmoZMPPPq8KJzXdtxbBZ5H4d/YDo9QGvkTKthHI4JL 2AgLSXkP2VPvw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 3ABA1180047 for ; Sun, 1 Dec 2024 20:29:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 1 Dec 2024 20:29:35 +0000 (UTC) Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-29e2e768952so1320562fac.3 for ; Sun, 01 Dec 2024 12:32:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733085163; x=1733689963; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Dpeo1qT6yfw8IH0EQvYp+H0/0l6tDJgrHRAmd5hYhc8=; b=HYlWWsWB9+JWBYDz/vVWaq7bjeNJvtSTVGqrNHufkWa4gFir5Mr+ohKbHaRBmrWOvG A/JuAFHtSp3mAUHOrEoAXdcKCFBvsKuzXVOJP3ZyVQuzlTnYNuDgba600rF410KrezWV L79Fu/xufmF8AqCOyUdMZAPobtovB8yRmjKOblxarr8v8/wVVhmjlHwch3hSi1J5vd5X nc4NxDvS5vzzBhqWFn4ze28Ltw/iX7rd80zQyUDc0VDpoLUI3aArUQtW+6Qj0nVC6enF lXAU4YQNisjrIXi6eR89L38nJLN9SLzwR+XtG+W5xVAHA74YfeBBkMfqDTMPbtitdTFR OgYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733085163; x=1733689963; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Dpeo1qT6yfw8IH0EQvYp+H0/0l6tDJgrHRAmd5hYhc8=; b=YsWj3Ae5ojmw3Vi+o47BfLBAfwCD4g3QnVeUllYJeXeY5QiLUATLvM7v8VG3jpw8Q8 /Ycz0YiGxocsj+XjIfxxKeVoOvo2i64rjcfBabv6yhj+V961/8wibOmm9Ssy8Gb7uiki 07W2FyJXohl/0rpVv0DGItmUrp+85Fs8hSdq4Y/avFNy8HhPh4sXbvwV46dPbPi4cK7X VM4Ql642HpNdGdjT5qoDCkZO4ZZdmPPYmrTvhu4Ofu5Zf0WI5drPUyJvr2Gj4Z+iSy27 IcZKlQj0ZefeVXuNHTj0mVCDywrT7bXN1CctUaTkgmtz9kooOwgDU9OL9SrmS2IPWymu Jfsw== X-Forwarded-Encrypted: i=1; AJvYcCVRa8Qe3aGqzCTYO2i9xJORdvs94UVuf3RXa5yBthg0X6JGRA/VeoY8E5S0xxulI4az2DZ9ADNOs6g=@lists.php.net X-Gm-Message-State: AOJu0YzYYZ5hlRpdlVIEj8Wu9Nan81lqdOOKsfeRXxe3Cnb+t4UOyL6E GOJvTvjJY+BZtiQ1DG6uxv8PKRGY0jPcZZuJFWHHSNxNMtxM4tgxKt6voilz/uJ69GR0hhvYaVd oDlKroZ99XxTjhRRCAs7hPvIsnFU= X-Gm-Gg: ASbGncuuPe0gdA5dMF9njihk2DDOLsZTM56MbC1Ekwuvvd4c4IjktWHF/ktR98CHtMO VbiRTPrGL3H8JsabQPvie+rpvrUwqoSRawcSXstTDGQp3YSS8Ehg3gK0nkiepew== X-Google-Smtp-Source: AGHT+IFOK29ecvqilGR/VIgkpDCoflWpZCWFvR5kUQewOKKCrT7dggVzIdhKEIyVmxPP+be5vhlMYl1ZmxQYQ1HpJhI= X-Received: by 2002:a05:6870:7817:b0:29e:290f:7aea with SMTP id 586e51a60fabf-29e290f8049mr6984840fac.34.1733085163493; Sun, 01 Dec 2024 12:32:43 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 1 Dec 2024 21:32:29 +0100 Message-ID: Subject: Re: [PHP-DEV] Re: Inaccurate documentation on return values from native functions To: "Christoph M. Becker" Cc: mickmackusa , "Gina P. Banyard" , internals Content-Type: multipart/alternative; boundary="0000000000008921a206283b55cd" From: divinity76@gmail.com (Hans Henrik Bergan) --0000000000008921a206283b55cd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Dec 1, 2024, 20:12 Christoph M. Becker wrote: > On 01.12.2024 at 19:26, mickmackusa wrote: > > > On Sun, Dec 1, 2024 at 10:01=E2=80=AFPM Gina P. Banyard > wrote: > > > >> This should just have been an issue on the php/doc-en repo. > >> > >> Please open such an issue so that we can track it (or submit a PR). > > > > I am not sure that this is purely a problem with the documentation. > > It seems possible to me that someone updated the documentation to > reflect a > > new intention for these functions. > > Will it not be that these functions will be altered in the core to do > what > > the documentation says? > > If the docs are not correct, we cannot simply change the source to > conform for BC reasons. > > In this case, see . > > Christoph > The same way we can't simply stop curl_close from writing to CURLOPT_COOKIEFILE for BC reasons? ( https://github.com/php/doc-en/issues/2239 ) > --0000000000008921a206283b55cd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Dec 1, 2024, 20:12 Christoph M. Becker <cmbecker69@gmx.de> wrote:
On 01.12.2024 at 19:26, mickmackusa wrote:<= br>
> On Sun, Dec 1, 2024 at 10:01=E2=80=AFPM Gina P. Banyard <internals@= gpb.moe> wrote:
>
>> This should just have been an issue on the php/doc-en repo.
>>
>> Please open such an issue so that we can track it (or submit a PR)= .
>
> I am not sure that this is purely a problem with the documentation. > It seems possible to me that someone updated the documentation to refl= ect a
> new intention for these functions.
> Will it not be that these functions will be altered in the core to do = what
> the documentation says?

If the docs are not correct, we cannot simply change the source to
conform for BC reasons.

In this case, see <https://github.com/php/doc= -en/issues/3629>.

Christoph

The same way we can't simply stop curl_close from writing to = CURLOPT_COOKIEFILE for BC reasons?=C2=A0 ( https://github.com/php/doc-en/issues/2239 )
=
--0000000000008921a206283b55cd--