Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122004 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82606 invoked from network); 14 Dec 2023 19:36:30 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Dec 2023 19:36:30 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5A7BC18004D for ; Thu, 14 Dec 2023 11:36:47 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_20,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 autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 ; Thu, 14 Dec 2023 11:36:46 -0800 (PST) Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-54f4f7e88feso9553113a12.3 for ; Thu, 14 Dec 2023 11:36:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702582587; x=1703187387; darn=lists.php.net; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=OXlkBCbzPirEoSHKCqYBI0o1xum+t2N1JGRMVk/RKl4=; b=W+xWLvdoSAal/f5BYwpu6uk3tW/4+vuMoKw8LJ/iczvuDVKIFMCITG/fEnkzJjA9oF 0y6lweSm2gHeRUpBCCg5G7JW0ErQxfYijs7+qOtZdGvYq5q9sfBhbikZGRMzLeG1vEIt pligePjjprGyBsfOKFLGSzeFnhCWIhDspUtm9Ggq3yZmQkmsEkZtw2bd3U3hcyOR8D7m wpHFpMkPiZrVGQF0hPJSSmwCt4/k/+rYuF/7AeKnJYv+XnVWdEkpGSWvbCbImzTGF8Gt 1PP7x2AUJNJfJJ+/HyRlOK4NTXyeLF8rWEiNlfMJrcmGjjBHLC66TNj5EEOVmWeC7N49 LdYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702582587; x=1703187387; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OXlkBCbzPirEoSHKCqYBI0o1xum+t2N1JGRMVk/RKl4=; b=rK1B/SQQB60KxpdN0lf5bknDMmUrJMLlrtoK0d3MCEBOGRx5d4bovow1Ynbm+MKMVB 8SyAhjseTs18IFkx2k7dUopNtnNZerx80HvM9poaMOUjndtnFbVwc1FkhqO3QCXwZZrk +XCDEFqmjZF1M++OW10lvu6hznJi8bJD+L5ziqPjh2ZKfP07vZ6poIaAji1ATwDMuhbm Oc8Anve9mSESP1Tk0kGY7nrpe5drGJEBrGVyOubWNgDX9/IyU2GMf8lgBAl4yLIrKogm NZw2S9w+vpeyvFQ9WWMxgNv9x5SDYnad8iDeckH+Ok0R0683j55+ZFfSugMHSy067Zzt Rk/A== X-Gm-Message-State: AOJu0YzpmRNqiRKB+S/WmC+LJw/dOlnXZ7idz15YUWpqsoBvJYWj5lnd GiDY9nFILg92Xa4Kdka5fQG9dnOo26M= X-Google-Smtp-Source: AGHT+IFXsShTba7duty2IEhqRRQyZaTEih7yYhPu8X9xiOIM4FagxyXj+iyB54VR5onrQXds2PPzVQ== X-Received: by 2002:a17:907:7246:b0:a1e:91ab:ba2d with SMTP id ds6-20020a170907724600b00a1e91abba2dmr6492570ejc.110.1702582587541; Thu, 14 Dec 2023 11:36:27 -0800 (PST) Received: from ?IPV6:2a02:1811:cc83:ee50:280e:1e36:3a00:824? (ptr-dtfv08akcem5xburtic.18120a2.ip6.access.telenet.be. [2a02:1811:cc83:ee50:280e:1e36:3a00:824]) by smtp.gmail.com with ESMTPSA id un5-20020a170907cb8500b009ff77c2e1dasm9723621ejc.167.2023.12.14.11.36.26 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Dec 2023 11:36:27 -0800 (PST) Message-ID: <575777af-6388-4e89-b5c8-97c363ba1651@gmail.com> Date: Thu, 14 Dec 2023 20:36:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: internals@lists.php.net References: <95b03bd5-08c5-4fec-b33e-6a617e55a74e@mail.ru> Content-Language: en-US In-Reply-To: <95b03bd5-08c5-4fec-b33e-6a617e55a74e@mail.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Are warnings guaranteed? From: dossche.niels@gmail.com (Niels Dossche) Hi On 14/12/2023 11:39, petrov.boris.v.mail.ru via internals wrote: > Is relying on warnings being converted to exceptions by error handler is equivalent to checking return value with regards to the set of error conditions covered? If this guarantee is already there, please point to me to the relevant documentation page. > No. AFAIK there is no such formal requirement. Concrete example: at least ftp_connect doesn't: https://github.com/php/php-src/issues/9898. Also I know of some methods in ext/dom that can return false without emitting a warning. Kind regards Niels