Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130114 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 9CAD21A00BC for ; Fri, 20 Feb 2026 20:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1771617629; bh=CT++hqCcV0cDWKLz4HpOO1AFPMY1zz2DN3YZAB++Gss=; h=Date:From:To:References:Subject:From; b=UdOzgTh2So1nN91u+pNIxtSzQIDFw9rc8dpHXALvFc+dRQOF855/WTfPyY/efcFA5 BMD2XSmNvgCfrMnF0dIaloFfE3gP3mKCePQSJFGHOCXuDBnzGUpRXySXoHMcYFVgVN q64C9GArhzdulk9HbNL4O+5R00zEFeG04HYVHlqs0CaOvmmJD0EGrO1YZ+f2Ugep6j e87Evw+bOLy8noHfy/pxkrmhBhrqvFisRvMRFpnxy3scSNpPzD6kPQcjrgnIMVGhkh Tc4QmihMCW33zO/A/PsjOC8ioaVEDLEkXoViQTT10oZM3wYp3yvBgDwPyDEeHCK2Cx tDD1fZR5i4SyA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A5EA11805BD for ; Fri, 20 Feb 2026 20:00:28 +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,FREEMAIL_FROM, HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from outbound.st.icloud.com (p-east2-cluster4-host12-snip4-1.eps.apple.com [57.103.78.182]) (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 20:00:28 +0000 (UTC) Received: from outbound.st.icloud.com (unknown [127.0.0.2]) by p00-icloudmta-asmtp-us-east-1a-100-percent-3 (Postfix) with ESMTPS id DB1261800120 for ; Fri, 20 Feb 2026 20:00:20 +0000 (UTC) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1771617622; x=1774209622; bh=CT++hqCcV0cDWKLz4HpOO1AFPMY1zz2DN3YZAB++Gss=; h=Date:From:To:Message-ID:Subject:MIME-Version:Content-Type:x-icloud-hme; b=xsVxikhxJnMVXsYkg5R5LiJUlcr1TeUqC66M8L4PtrbW7uQTwwQihGeV6lZ14x2VIVDAyCYnom63bjyYk4O4wgMR41aiL+JkBktQ4HdrCOeRHhybLluz30M+8AIJ40CMkzLXEzbX5JIsX6noefKjOs04/PMzYtUEwZwBkunHEb1c+enIEGj/AbYg0K4BGVQgG4ii+IhaRm81xRBlegMokdBtbrAcZovhlYrPSwHOFrAOS7U6D4ImsAXYFdMhq/t50MHxfC58c2skvxsQKNreZSQQ+uoKN6J5p/s7zKSpP+iXAW4OcSi4SUWLy46eiNlLdhbrye+7pLfjyPc0J2AD0A== Received: from [192.168.1.170] (unknown [17.42.251.67]) by p00-icloudmta-asmtp-us-east-1a-100-percent-3 (Postfix) with ESMTPSA id AA4001800330 for ; Fri, 20 Feb 2026 20:00:19 +0000 (UTC) Date: Fri, 20 Feb 2026 21:00:09 +0100 To: internals@lists.php.net Message-ID: References: <29443058-75fa-4c36-80cc-3b3a80e0057b@Spark> Subject: [PHP-DEV] [RFC IDEA] Deprecate legacy type alias functions X-Readdle-Message-ID: ae03240a-f4f1-48c7-902b-35dd15f19b69@Spark Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6998bd4e_55f7369d_480" X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjIwMDE3MCBTYWx0ZWRfX4EpJZs3UI9Y1 hUgG2D7VKJU9w4T1uRUuQo/8ELOwByNB+Ig+k8cYfOBKQ9M7pG96WXfswgwS6pgdEBztLstKOV7 VrWb5DtfIL32DrK+Pvt4Liw19ENQLWKlpcsPCIc8rLcAtkWcwGimJ/UIF++DsIc2z3M98s5Wdvl zhym3X2bf+gUzOJqt0GZDUQaj8S1id9zq38nhJh9GlfjB+EKdUjaEXl7En6oMz1LhvqMCJE9Vpo Z3cHKi8iS68RBt+YdIvXSp0LqzG8015jaFwbLhL8C0izethIk8hpCilCLbLuHTxRk5L9P7k6UFz WfjdhA/7oOG3BvMXNuSXGejB9KOOcHlQoY6rdoPw+OnIuEU9jEZ04gVR0FPTVk= X-Proofpoint-GUID: vBmYArDv2Z1e-_OTWuYLC-6DUxNAOABr X-Proofpoint-ORIG-GUID: vBmYArDv2Z1e-_OTWuYLC-6DUxNAOABr X-Authority-Info-Out: v=2.4 cv=Acu83nXG c=1 sm=1 tr=0 ts=6998bd55 cx=c_apl:c_apl_out:c_pps a=YrL12D//S6tul8v/L+6tKg==:117 a=YrL12D//S6tul8v/L+6tKg==:17 a=HzLeVaNsDn8A:10 a=x7bEGLp0ZPQA:10 a=xKl34KcbpAAA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=T21SbIa3AAAA:8 a=6HYQou1N31M_w5F99TQA:9 a=QEXdDO2ut3YA:10 a=SSmOFEACAAAA:8 a=a3_f4V19QpCgrZBqSPUA:9 a=Lsk90EdZr867wF8E:21 a=_W_S_7VecoQA:10 a=SnCPDuWYnhHfdy9Ed-Bx:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-20_03,2026-02-20_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 mlxlogscore=828 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 classifier=spam authscore=0 adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602200170 X-JNJ: AAAAAAABrwoRfzowdBIMnrJVMmIQedS/zLzJ8xQfsbJd1oaGNVOIcUkwulJfeV+5nNLeCD905GOqsbZh05Md+CUIixbF4pQ+1XB9OnHWmryEgrF1DjPI0w73D0oBPcRfTtVxLi++Mf4JFmZCM9d9dvwS/1VFqp8aoivSX7MyqB0xMNQcT9kNRurT/XVppqbwD6kdIPNVTajaWSfpM7WPwdrxpsCq4YXgsDNwrahP6Y4whxKNkvmzZCL4uQuI9pncjnil1zsqCwEOXgg8wJkEP6s4UsYTn8ifVvII+Fo6qEQCbhKhHmn9EZ6PQOOOw7Nub2xMsjPKe8GGFAikbQvcDLw2wwQmhxDmIl/vMp+hezcDMXqStGlJqO86Edxg4oFDE5pNClgqlobL2eNZbpivXrDBCoaFD/yZh7nh3oX37GVC1EiSCtUvhVkKCRHAgk6fmOUpbyHdUqGNY/YGfFRvhCcTaH2d9Jgt6OP5znRxDEJTUJWPjDsyzph0e5C8yEOm8aCeUySYkMed3k+DVtmsxC7bPUaUQt0YN4V4BkfqXp5IldUVfW2bN3JPLWgk7B/CLRVtfsUaqmwrQ3CWlr/C7vpu1hDgTsF7WZ7VN9gE1eSH6/9+Jg== From: jordikroon@me.com (Jordi Kroon) --6998bd4e_55f7369d_480 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi internals, With PHP 8.5 deprecating the legacy cast syntax (boolean, double, integer= , binary) in favor of bool, float, int, and string, I noticed that severa= l legacy alias functions are still present in the language: =E2=80=A2 is=5Fdouble, which is an alias of is=5Ffloat =E2=80=A2 is=5Finteger and is=5Flong, both aliases of is=5Fint =E2=80=A2 doubleval, which is an alias of floatval =46or reference, is=5Freal was deprecated in PHP 7.4 and removed in 8.0. Given the recent move toward clearer and more consistent type naming, it = seems consistent to consider deprecating these remaining alias functions = as well, since they reflect the same legacy terminology that the cast cha= nges aim to clean up. I found that this idea was mentioned before in a broader deprecation idea= s thread targeting PHP 8, where variable handling function aliases such a= s is=5Fdouble, is=5Finteger and is=5Flong were listed as candidates for p= otential cleanup. As far as I can tell, that discussion did not result in= a dedicated R=46C or vote on these specific aliases. https://externals.io/message/103779=23103805 Before drafting a formal R=46C, I would like to confirm whether there hav= e been more recent discussions or prior decisions on this topic that I ma= y have missed. If not, I would be happy to prepare a concrete proposal fo= r further discussion. =E2=80=94 Regards, Jordi Kroon --6998bd4e_55f7369d_480 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi internals,


With PHP 8.5 deprecating the legacy cast syntax (boolean, double, integer= , binary) in favor of bool, float, int, and string, I noticed that severa= l legacy alias functions are still present in the language:
  • is=5Fdouble, which is an alias of is=5Ffloat
  • is=5Finteger and is=5Flong, both aliases of is=5Fint
  • doubleval, which is an alias of floatval
=46or reference, is=5Freal was deprecated in PHP 7.= 4 and removed in 8.0.


Given the recent move toward clearer and more consistent type naming, it = seems consistent to consider deprecating these remaining alias functions = as well, since they reflect the same legacy terminology that the cast cha= nges aim to clean up.


I found that this idea was mentioned before in a broader deprecation idea= s thread targeting PHP 8, where variable handling function aliases such a= s is=5Fdouble, is=5Finteger and is=5Flong were listed as candidates for p= otential cleanup. As far as I can tell, that discussion did not result in= a dedicated R=46C or vote on these specific aliases.

https://externals.io/message/103779=23103805


Before drafting a formal R=46C, I would like to confirm whether there hav= e been more recent discussions or prior decisions on this topic that I ma= y have missed. If not, I would be happy to prepare a concrete proposal fo= r further discussion.


=E2=80=94

Regards,

Jordi Kroon

--6998bd4e_55f7369d_480--