Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123665 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 BAAD51A009C for ; Tue, 18 Jun 2024 19:18:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1718738388; bh=v5PwXf7vBDlTWfseRn4mzuKnVI6d/f3CpqY+X3AWKQ0=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=Uu9OWbw+SRR7n6RZJQQNMBt1URaX+yv5rTFe8tEv7NHReeQjllGnzmKGUwsy/os/U lrBh8UzYmmAJ60fdmJzKV2saJe987iRkOT8oZrN2+hdLhENfuKsPocCt6osX/LXKCh UcO8YJLIy16pGLZrp2JKfJV0Bif1E3arsm2fwr8QNs/0HDpmfFKCmzvFni8DTxuz82 JpnqL4yUCJLCoIynl6h6RRnLSUlJrIjogLaSREmr6fGgZtb8hph+wXpSj3tp+nlJrU XJW9BZZhskF89FB5k1AN+mtvoXXsUU66dpjgFWWgPJW9j2bP7a9L3qcTD2QccpiFX4 /etM8Xj5XOH4g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1017C180057 for ; Tue, 18 Jun 2024 19:19:47 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 ; Tue, 18 Jun 2024 19:19:46 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-36087277246so2549232f8f.3 for ; Tue, 18 Jun 2024 12:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718738312; x=1719343112; darn=lists.php.net; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v5PwXf7vBDlTWfseRn4mzuKnVI6d/f3CpqY+X3AWKQ0=; b=cSMkpzic1Hde0BUV9GMvomHCiWy7B2BpLI9VfNDbWp5xrLIqW7pN3Hd0AHG3oup2Lk xg05lexRv63BUeykOTF2oL0jBXDxP7KosXr/RNirb667vtlinCiXMJQRYgzv4jEENO+b adeT+Ue1Ys1k+xR8IDlRkr7z1xfa4J0z6Qwcs/CkmSqtXahUxpc8kIPCXUvuqeVi9Y2c 3txVBx0F8+iQoOWbCCmfMnAA0/Tspde2KP4dxE41qOjAlkWeEFOWTV/aRPiE8ZNpdTxF VOR+1TfZyZ7/WOXn/D+REKhgz62gm3dxcsQWANA46/3Pb9meN38hZbGFMvO9yTY6EoyJ EVDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718738312; x=1719343112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v5PwXf7vBDlTWfseRn4mzuKnVI6d/f3CpqY+X3AWKQ0=; b=Ix6msD8e3xdxuaJmXds0Eee9GyUatLzfGKBuzW3rBIX4lV7JQMQv5yAB05U9wVW+Kz 7n0NnSLszxfM7Ohol6+/laB4+owcxixooMlVKxjQV/7xtdrc/UdT4C5guIEUpu5veeSQ YpUMiHjmAo+Jfy2pUvp//7g5a5f2bB3cVuu/PzzZ1hAexLCnIcmCP/9MRk7AkOIDhuwH sZvHSr0VZ5qt6LlAAD9OLMiAImH9xQlr/4SKODUVhvOoCCy0oXtVYh0lThiFtGOT4i3L vZuiXMLyseRG8cdQGRTBcx7Vjigr0QZP89HtMcQAzGPcCpHAgVPKhKPBo1Chod9h5fAM mItA== X-Gm-Message-State: AOJu0YxhVEqzUD3iCqJEQvn8GWrxN8ffPocrKS27qq/ygdGgvSBNUJ+W QkmRXie1T3LFCuh4t01uQiNtM4HaFocYNS6KFsGirn9ZNzHQTjUq9Xwopw== X-Google-Smtp-Source: AGHT+IHXuS0HKEoKGO5gZiDf5IZFolI5QNy7esCG00ek29Qy+Lowd0CZkDXMhAa88UkS8t9G6dfvXQ== X-Received: by 2002:a5d:69c8:0:b0:35f:2635:5b61 with SMTP id ffacd0b85a97d-3631989352fmr359144f8f.51.1718738312440; Tue, 18 Jun 2024 12:18:32 -0700 (PDT) Received: from smtpclient.apple ([89.249.45.14]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36289a4faeasm1458794f8f.95.2024.06.18.12.18.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2024 12:18:31 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PHP-DEV] Renaming "strict types" to "scalar type coercion" In-Reply-To: Date: Tue, 18 Jun 2024 21:18:20 +0200 Cc: internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Robert Landers X-Mailer: Apple Mail (2.3774.600.62) From: claude.pache@gmail.com (Claude Pache) Hi, > One thing is clear is that "strict types" may be a bit of poor word > choice and gives people a false sense of security that it is "safe" or > "more correct" when this obviously isn't true. Thus, I'd like to > propose, for PHP 9, simply renaming it from strict_types to > scalar_type_coercion and flipping the value: >=20 > =20 > to >=20 > Perhaps it might even be worth adding a secondary vote to flip the > default, such that if you want to "old" behavior back: >=20 >