Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130119 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 232931A00BC for ; Sat, 21 Feb 2026 15:02:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771686147; bh=UZ82MyLW+xcImaMwl/wvc/ecSFYRwTrCrO7DJSHiAYw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bHwh09Xu7gL7jgRWBVe66X/y4lsGtPkBgQyhQc+EnV6VnmIQh0ClJ9AJJPjuqeWa0 mYTDb+vFnQ+5ECVn/r7LWE5OJkfEEaoYI+Q4i7ZJ1Y/OqqkqkERpRq55gKGXoqbOju hWNyNc8+DrKihCrKBAxnc+b/WgvOJAKWMkHR5FtSTFdKPgRdatQMefpiZvQwWWkN7c 3LG2M52U+T9tQeodIxM3W0DP13b+guXIPBX8v7ZcSnrpKm8AAWpMJ+X7xk35n5Lsv/ uakB1ZLVxNqyJq24nRcx7OFVLyriLOM7huTp4EqxCkwVey3yI0H8jlKYAvJv1Ti6ES sq06N1/UYIffg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CEDD2180072 for ; Sat, 21 Feb 2026 15:02:25 +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,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from forward502a.mail.yandex.net (forward502a.mail.yandex.net [178.154.239.82]) (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 ; Sat, 21 Feb 2026 15:02:25 +0000 (UTC) Received: from mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net [IPv6:2a02:6b8:c0f:4c9f:0:640:5657:0]) by forward502a.mail.yandex.net (Yandex) with ESMTPS id 7B37F81C1A for ; Sat, 21 Feb 2026 18:02:17 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id G2fI8c4GsSw0-WE3iWpFO; Sat, 21 Feb 2026 18:02:17 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1771686137; bh=UZ82MyLW+xcImaMwl/wvc/ecSFYRwTrCrO7DJSHiAYw=; h=To:Subject:Message-ID:References:Date:From:In-Reply-To:Cc; b=HNHQNhbb/LhsJ7zJjYsz5jcBf6ERt7cvVNY1gBjiSmQsjsr1dmvrtkF+S/7NkCMIU m23NpXzte2firdeh6BMhQNORzsnumq+ch6DUxJiUMWutBH3D9QuhQzlgKdETntHKOD uIjiAWcPZ0wiv25XFQ8qmNBgEh8hOBFV9AgC7exw= Authentication-Results: mail-nwsmtp-smtp-production-main-52.vla.yp-c.yandex.net; dkim=pass header.i=@php.watch Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-65a3fdeb7d9so4232259a12.0 for ; Sat, 21 Feb 2026 07:02:16 -0800 (PST) X-Gm-Message-State: AOJu0Yz5zc/miwxBHG/G9TArgaGLylYDOkCrgU1UjXgEtgXIpAnOu6+H pIZo0HQQMfjbA7+FsGWYEVWYzrN/RXQge+CfaG+A5ghx2QfIs27A/K7toZaR9rdgCQH91BbPsj5 2sIufZaSYKxGrjNR9Z+RnQ5sF9Am0PjQ= X-Received: by 2002:a05:6402:1e92:b0:65c:5def:26f8 with SMTP id 4fb4d7f45d1cf-65ea4ee06c8mr1912277a12.4.1771686135592; Sat, 21 Feb 2026 07:02:15 -0800 (PST) Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 References: <29443058-75fa-4c36-80cc-3b3a80e0057b@Spark> In-Reply-To: Date: Sat, 21 Feb 2026 20:31:46 +0530 X-Gmail-Original-Message-ID: X-Gm-Features: AaiRm523pcbbeocrexeYjoc_LI9gj1bLyTiG-kPNj5G_un_TJ_R6if50uq2HmV8 Message-ID: Subject: Re: [PHP-DEV] [RFC IDEA] Deprecate legacy type alias functions To: Jordi Kroon Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" From: ayesh@php.watch (Ayesh Karunaratne) > is_double, which is an alias of is_float > is_integer and is_long, both aliases of is_int > doubleval, which is an alias of floatval > > For reference, is_real was deprecated in PHP 7.4 and removed in 8.0. > > Hi Jordi, The mailing list thread you linked is the only discussion I could see too. That thread raised a valid concern, that the number of code search matches is quite significant. We need a strong rationale to deprecate a function. Functions that are not thread-safe, buggy, insecure, overloaded with different signatures, or simply no longer necessary (such as those resource close functions) are quite easy to argue that deprecating them will lead to a positive outcome. `is_double|integer|long` functions are purely aliases, and they have been there in PHP practically forever. Code search results also yield quite a lot of matches, so deprecating them will add a lot of work to the package maintainers and users with little to no benefit. We normally remove the deprecated functions by PHP 9.0, so for thousands of packages, they cannot simply ignore these deprecations; they become hard blockers to use PHP 9.0 (assuming you propose to remove them in PHP 9.0). Thank you, Ayesh.