Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130113 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 lists.php.net (Postfix) with ESMTPS id 879351A00BC for ; Fri, 20 Feb 2026 19:43:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771616585; bh=yeJ0YUcCsq2sYbfKGWFdUqHXy/8BMjjxgAB4F/hvJ4c=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Fj6Wu7s8/2OBhWvU9e6ECCj9VqXztyCELRNnsTNbluZ7BBCmZQ6kkyE19IXB64Ce1 375glDqh+/rOy/L73eiUL1jOcc25y2l8B8VdVc0blG3ncK/Fm9lGmDOm721mtPzujK NvfL0AMyYLk2kV4FIFJxAQjli4yVwQ91QeTf97dLPaQjXU+OIj6OYYKPSp5+CD0OlX lECH4lz1zykQX1oNYDJ97T2jPpYTQRz1G7bire36+Kl2TEnDDd3KyHSfn5PDuPjHH0 1osBK3v9OzwZtLtRq5lseli2+Lqfg94IjXYO0r6ntyvmg+3t2QTNvsWYljMR6x69Hb /1jdwRinBZAxA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 39EFF180081 for ; Fri, 20 Feb 2026 19:43:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) 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,DMARC_PASS,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from forward500d.mail.yandex.net (forward500d.mail.yandex.net [178.154.239.208]) (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 ; Fri, 20 Feb 2026 19:43:02 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-72.klg.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-72.klg.yp-c.yandex.net [IPv6:2a02:6b8:c42:27a5:0:640:93ca:0]) by forward500d.mail.yandex.net (Yandex) with ESMTPS id 4BE3A816DF for ; Fri, 20 Feb 2026 22:42:55 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-72.klg.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id rgiXmtnGoiE0-EnnL8w0W; Fri, 20 Feb 2026 22:42:54 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1771616574; bh=yeJ0YUcCsq2sYbfKGWFdUqHXy/8BMjjxgAB4F/hvJ4c=; h=To:Subject:Message-ID:References:Date:From:In-Reply-To:Cc; b=QwMP2LkDbF8ewpGM7bJDahXJfF6JtChow3kMVKfEZv+Ftew2epol8ec9xscyliib4 D0gm+neatcfDUUhzvD061F+oXgBfeCIzrT24akz3g130ofUdVUDkApGQvoPKFEm5oT QeokLeZWnpRZKylg1LdG9LcF4Aqk3/Oj4BCH0wdA= Authentication-Results: mail-nwsmtp-smtp-production-main-72.klg.yp-c.yandex.net; dkim=pass header.i=@php.watch Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-65c01595082so3501372a12.3 for ; Fri, 20 Feb 2026 11:42:53 -0800 (PST) X-Gm-Message-State: AOJu0Yw6iMoCKLCaJosDtkvQ3yx+64Xlc4aeftJu5Xgf14DTEVtqkjyA PEOgufdawOuw2cLXd5EsI6RI5smtSYd8LiADYye8ghLDkCFd0XeHRg5FF65HRmqIJ+ymbBMj8pU SC2Vq8JFRbTZP9HgSOX3stT215jSq6Jg= X-Received: by 2002:a05:6402:42d5:b0:659:4853:5382 with SMTP id 4fb4d7f45d1cf-65ea57f07efmr483908a12.32.1771616573443; Fri, 20 Feb 2026 11:42:53 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 21 Feb 2026 01:12:26 +0530 X-Gmail-Original-Message-ID: X-Gm-Features: AaiRm53BQK73lgI2bhej_0qdwQbPeQ0dt66MGt0wRPfqgspOvL8iqPl1RsXqCxk Message-ID: Subject: Re: [PHP-DEV] [RFC] Updated: PHP 8.6 ValueError Conversions To: Muhammed Arshid KV Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" From: ayesh@php.watch (Ayesh Karunaratne) > > Based on internal feedback, I have restructured the RFC to follow the deprecations RFC format, with separate sections for each proposal. > > RFC: https://wiki.php.net/rfc/php86_valueerror_conversions > > Feedback is very welcome. > Thank you for your work on this RFC. I have one more proposal if you'd like to group them together. The `$message_type` parameter of the `error_log` function[^1] is also not validated. Values 1, 3, and 4 are handled, with 2 throwing a `ValueError`. The default value is 0, but it also accepts any other integer value. Further, calling `error_log('', 42)` returns `true`, which also hides that the `$message_type` value is invalid. [^1]: https://www.php.net/manual/en/function.error-log.php