Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121642 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28652 invoked from network); 10 Nov 2023 12:32:56 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Nov 2023 12:32:56 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2C9FB1804D4 for ; Fri, 10 Nov 2023 04:32:54 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 10 Nov 2023 04:32:53 -0800 (PST) Received: by mail-lj1-f169.google.com with SMTP id 38308e7fff4ca-2c523ac38fbso25038211fa.0 for ; Fri, 10 Nov 2023 04:32:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; t=1699619572; x=1700224372; 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=edoRulaGc4fe79hgA91h0Nyzf59UpAM6gPMwFV0EpJQ=; b=M0/Zzf7E7wMBKPiuLjKDi+EZMxdWAUSrAaIVdfJxlNvQeVHz3h4rO5Qn23xjaOCoDt WwnDxIRS8OpeRo8DZLpBcIIc7EN/tM7yymQ/NiR0GJwadJzJlJOKT4bBHv0XC/MGGc9v bdAeTNoqUvZKjJmzHAxcqmtqy2iZxwBtbZU4s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699619572; x=1700224372; 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=edoRulaGc4fe79hgA91h0Nyzf59UpAM6gPMwFV0EpJQ=; b=WJflXNGN/ttYJKcqoMVncDdYjTAqgWHcuDe3Nf/67W+0uk71qyuRXMplkPNEQ5PMip 3XDywbjBiu5NOE7mEf3Uz/EU227uMG1XEaPIgtZwN105YwtESeSqcd22lnkVVe9JGy9d HKn4MQPmEHBjp16ohWs30uh5zgdvnAT7CgBDaKLwTcpC9TBHEoRGlDkP+OgQ2AaZdVvL r0egoCz4mPmMf2dk15I1HPzSYdsiVf6NzdidyrU2xYWIfD8YRpnKfmle205c1qspvuRC gt1jLl8QCiKFUWwJcVdaF6Ieyvj8ESX8tKdOonujgSJbt2oqlqqTaQXF3hU74WAeE1SY M+ew== X-Gm-Message-State: AOJu0YwSsXxsaILMT8loAugN81do+XV75mNlw1CiSyvJxWRaZs0LERF7 ZAR4Q7LuQy2CFGpMChB3hXWB1FgmKC0MiEueid3mIg== X-Google-Smtp-Source: AGHT+IG9bG/QJ2Sf2bjAgRaFKdkn8c4Cwjc8OM6ORbdlKy6XkEJTpBHVGcTQfNiMEx59D/wAEPt3sQ== X-Received: by 2002:a2e:d19:0:b0:2c4:ff4c:64b0 with SMTP id 25-20020a2e0d19000000b002c4ff4c64b0mr5833844ljn.50.1699619571945; Fri, 10 Nov 2023 04:32:51 -0800 (PST) Received: from smtpclient.apple ([92.238.103.248]) by smtp.gmail.com with ESMTPSA id e19-20020a5d5953000000b0030647449730sm1826718wri.74.2023.11.10.04.32.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Nov 2023 04:32:51 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\)) In-Reply-To: Date: Fri, 10 Nov 2023 12:32:41 +0000 Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <6049A048-1B2B-4DD8-B2DD-05F7CFBB8EE6@craigfrancis.co.uk> References: <5144806E-E21F-4AF8-B9A2-0161561A6B9E@craigfrancis.co.uk> <1A044D32-019A-4152-A3C0-3F393974AC3B@craigfrancis.co.uk> <88815C70-1100-442A-AFCC-A420862669C3@craigfrancis.co.uk> To: Andreas Leathley X-Mailer: Apple Mail (2.3774.200.91.1.1) Subject: Re: [PHP-DEV] Passing null to parameter From: craig@craigfrancis.co.uk (Craig Francis) On 10 Nov 2023, at 12:16, Andreas Leathley wrote: > Also note that in your example $q could be an array (leading to a = fatal error in the code)from the request data, which is why checking = types thoroughly (not just coercing them with strval) can be helpful in = avoiding unexpected situations and deciding how to handle such = situations, instead of yolo-ing it. Yep, and I completely agree, but I'm not focusing on my code, I'm = looking at the code the vast majority of developers write... and I do = not want PHP 9 to be so difficult to use that people stay on PHP 8 = forever. Craig