Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127729 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 5FC5B1A00BC for ; Fri, 20 Jun 2025 08:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750407253; bh=dVHB04wDch0WT3ES/+I3wbQklKdOyOAAdSU2ZF/2XlQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=J+kyjTxCef+OKQdRN7ek7QYx48eiq9+MFzsN38xYqHRr7kDT7qFb7hsji03ECDBio R9RDO2sXxUkhWPMYZwk3FeQTnbxKgqbGXApmttX9ybU2tCWwOGtCVhrpoAPtZyrEfA 40nuKYR6ycvJcIfCoEMXKEdSUBxqf06QtqxfLz0kwKOC+ZwzGwDljuNbFNV6yRn0+8 vMrEolh7TDrbh8gnb8Ywn3nwNsjcMauCvbRZ9cr7pt9bz8yrv9W4jh+hdaAs8Tzzp9 SocZ4w1FgSyyWhOWHaEcsyeUYScGRsDc8HdufQR7t9YxW4G2oCP63nK5goZwqpuIFZ bChLOPW+0qVKg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2E097180047 for ; Fri, 20 Jun 2025 08:14:09 +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.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,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (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 Jun 2025 08:14:08 +0000 (UTC) Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-3138e64b42aso1722144a91.0 for ; Fri, 20 Jun 2025 01:16:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750407365; x=1751012165; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dVHB04wDch0WT3ES/+I3wbQklKdOyOAAdSU2ZF/2XlQ=; b=l8xUQvTjouKnF0kvcp2gpIzRBQHhD/3KiGjMKGanzt9i7ZOD6JSEIuY0YldAEO6lTx 9B3BD+DdtQ56QXssUfmzR4eev7IwfbrFOZ9Dj+YFZmXeXgSrArnqgsUx+Gm+swAcEoOZ KugOp9RuroqtZc2684BVTzVEU5nzPbQjk5kSxMqKi1LBmioTHBLgDnJDAQMxBfuMWaGO Q1RI6g9HNQfaRKZQgx8MaochM/0evKsgBic+dVlC2f1x61EA4iUfxPUSQEBGuiv6fsRM xNGce7POEyHz3bgZJxZpG7ZBwlCGhrdOLWN9jXKvXdUMBXmkgBfTxPyfd7Lz4QUvY5uk A9YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750407365; x=1751012165; h=content-transfer-encoding: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=dVHB04wDch0WT3ES/+I3wbQklKdOyOAAdSU2ZF/2XlQ=; b=MGoPcdqdpUiZAJqJAOryQFNWZekNWaPI3EvRyITNk7JBrdSMyRDrrrmaPhRRbnqwBP 9fFucyc+2a/v0J+Fin5nC4vJtsuToJgxTDdZzjpuMNVwAMkSgdFnI5uYbMcUZwqk/dmd VGvUz2O4kUtX78xxpyogpjDJU3BIEJrUvR6j075hmeX1sBiGJtc633tTLyqKUqROq9yk FBaVE0MyqIo2bVQYHNVvPQLo0s9pd3DiV0m/3uzCJnAEhXk7TjDJwtQqO3247nmZUmtU tDXYk0Yxjsvi5pH2R6gmGseoOOuthz+EQQAaoEfIMhYOki53YlmyVpyFs5wvGp5GZ2tY ttZg== X-Gm-Message-State: AOJu0Yw7mDn/+GsMsfYZ5RkM+3sE4jp9zg8JppyHJneQN7QKnh2cJr6p gup2Q9VZPXIl8yemHEmbkbqDu3+sQDmGbkiqWbwrd1gfZ3OA1ZEQhGByBbY9vqVPVoahqpJoj9U 8lYZU5ntSbev33SWn69JfXl/5fGbJY70= X-Gm-Gg: ASbGncsW12r4XAYNeZNe9wrzvBweqAylkyMtrWWkINIof7yDiQFZZv/HQerO07VBsjr T/6qhg9dHnEhKrFnyC4ktZIbq9y/oiW00T5tUOlQ5Pimu26ogg1kY7L9wf2q99RWaoTdCb2tNq6 UTZEXN8iTKKuOAbHapBW0VTdWmfkvBlkJBsC2tmaNRkQ== X-Google-Smtp-Source: AGHT+IEHKoz38K9dUkldRmft8/9DbvSjsxtJry2X4Qk4/RztBWBAt1oU6VQ0BX/Vp2CKJ89nwdtFJyoZT0ClsIDexhI= X-Received: by 2002:a17:90b:5824:b0:311:9c1f:8516 with SMTP id 98e67ed59e1d1-3159d64cab6mr3681639a91.15.1750407365019; Fri, 20 Jun 2025 01:16:05 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <73D7B135-ABF8-4EFC-BF16-EA26A5BD1B7A@cmpct.info> In-Reply-To: Date: Fri, 20 Jun 2025 10:15:27 +0200 X-Gm-Features: AX0GCFvvvLcR4GIljewguNL5e-ohiBaeZLPsr_ZTVzgj57q_KoAEqJrEWHah72s Message-ID: Subject: Re: [PHP-DEV] [RFC] Drop support for 32bit builds To: Marc Bennewitz Cc: internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: divinity76@gmail.com (Hans Henrik Bergan) On Fri, 20 Jun 2025 at 09:15, Marc Bennewitz wrote: > > > On 19.06.25 18:08, Calvin Buckley wrote: > > I think the biggest arguments against this would be: > > - embedded systems; think of PHP in use for i.e. router web UIs. While I > suspect a lot of these are going to be i.e. AArch64/RV64 in the future, > there might be a long tail of existing systems. Of course, how many > would upgrade to PHP 9? > > While new deployments trend toward 64-bit (e.g. AArch64), there's definit= ely a long list of devices =E2=80=94 particularly in legacy environments = =E2=80=94 still running 32-bit systems. But realistically, how many of thes= e will ever upgrade to PHP 9? Probably very few. These systems often stay l= ocked to whatever version was originally shipped, and their vendors are unl= ikely to invest in major version bumps. > > - WebAssembly; I don't know how widespread the Memory64 proposal is yet. > We're using WebAssembly in the docs pages for runnable examples. > > I don't know either. ChatGPT tells : > > > The Memory64 proposal was formally standardized (Phase 4) in November= =E2=80=AF2024, backed by strong votes and endorsement from the WASM Communi= ty Group. > > > > It's enabled by default in Firefox 134 and Chrome 133+, with Safari sti= ll working on implementation. > > > > Major runtimes like V8, Wasmtime, Wasmer, WASM2C support Memory64 > > > > Toolchains including LLVM, Emscripten, Binaryen, WABT support it; WASI= =E2=80=91SDK has patches in progress > > > And some niche cases like i.e. iSH (which emulates x86-32 on iOS). > > This seems to be for very niche projects in itself already and running PH= P within such is even more niche - if present at all (outside of "because I= can" reasons). > > The other options include making zend_long always 64-bit and accept the > performance penalty for 32-bit, or making 32-bit best-effort rather than > providing any guarantees. > > Is int64_t (size of long long 8) available on all systems (like WebAssemb= ly)? > > The downside here, please correct me if I'm wrong, is that this increases= complexity instead of reducing it for how much value? >This seems to be for very niche projects in itself already and running PHP= within such is even more niche - if present at all (outside of "because I = can" reasons). 3v4l.org use 32bit WASM php in production, see it for yourself at https://3v4l.org/