Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112375 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 23174 invoked from network); 2 Dec 2020 17:06:23 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 2 Dec 2020 17:06:23 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1B8E81804C4 for ; Wed, 2 Dec 2020 08:34:06 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLY, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from libero.it (smtp-32-i2.italiaonline.it [213.209.12.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 2 Dec 2020 08:34:04 -0800 (PST) Received: from [IPv6:::ffff:192.168.1.67] ([2.237.74.163]) by smtp-32.iol.local with ESMTPA id kV4skWuc2yoXwkV4sk0Oyi; Wed, 02 Dec 2020 17:34:03 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1606926843; bh=R2bEh3h+VSTTZKQGiwA7rzuVciC2R8HwsUo9gY+Nlog=; h=From; b=UUmIC08ZuPqZsxARQr8tQpYjo/sF0vcoXR/aMLKsU4EprIglSpcWCqHPIWLrL8+qa crY0oO9yp+AQDEjBeUxLXgSpXvn5H17VmZIXUEp0ExB5ofFPxZAO9Q8fh4qhbTNU4e /wVsuPOp8CxXO3HdOKixv0ZcY/CXtA2d5piiqk4Rpyp7SsNuH0kYpsluKFobQalEn5 11oEhV3CAZmnPKIO3bi/8qS2inMLXQB0lW4mJiZqdMtL3NsNf3dqS7YC/Hw4EfO7Pl 8xz9Rr/9B71AXPGE/Wq6nas9GxVn6AG5qMuffeBxQG5LKChAFz9wx0SOwvWfJZjm9w Qzc2AuKJcJzIw== X-CNFS-Analysis: v=2.4 cv=X9mXlEfe c=1 sm=1 tr=0 ts=5fc7c1fb a=W6fcibsR95OiD+X+thQpDQ==:117 a=W6fcibsR95OiD+X+thQpDQ==:17 a=xqWC_Br6kY4A:10 a=HpEJnUlJZJkA:10 a=uU2Hr5VP7ueSOeE0IWgA:9 a=QEXdDO2ut3YA:10 a=yMhMjlubAAAA:8 a=SSmOFEACAAAA:8 a=pGLkceISAAAA:8 a=67BIL_jfAAAA:8 a=VviWYApGstzf7Dq6:21 a=gKO2Hq4RSVkA:10 a=UiCQ7L4-1S4A:10 a=hTZeC7Yk6K0A:10 a=frz4AuCg-hUA:10 a=pHzHmUro8NiASowvMSCR:22 a=6VlIyEUom7LUIeUMNQJH:22 Message-ID: MIME-Version: 1.0 To: Josh Bruce , Nikita Popov Cc: PHP internals Date: Wed, 2 Dec 2020 17:34:03 +0100 Importance: normal X-Priority: 3 In-Reply-To: References: Content-Type: multipart/alternative; boundary="_E63D929E-EC94-4661-B73E-9788BB648529_" X-CMAE-Envelope: MS4xfK2xSQ4c8gEGp2krQA893i1FcMRD52IQXmULhAAPtd6iWcKZW0NViqJAP02bGkdZiGuXJ481bIsfUQO3bMnWJpj750VxyCaPrksuErR0mcwm43e+vN0f uR6FS43ILrlqPZ8kFBSvaX8OJaThCC1G9RIp/q8U1+ukBXGazF8RACQ455jwBbppo2z+XPAWqccR72JJMQIbzgQFt+antdSHEhIRB7WYnxW1Wc2E4EfzZ1oS N1iFN4tlzt6+ESiRcK8rx7iTJo1tJNfsew3KtFc/Tf8= Subject: R: [PHP-DEV] [RFC] Deprecate passing null to non-nullable argumentsof internal functions From: ssilvio@libero.it (Silvio Sparapano) --_E63D929E-EC94-4661-B73E-9788BB648529_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Hello, IMHO it=E2=80=99s only a declaration issue.=20 In other terms, if documentation of strlen says: strlen=C2=A0(=C2=A0string=C2=A0$string=C2=A0) :=C2=A0int then I mean that $string MUST be a string, and return value MUST be an int. But then we found that if $string is null, zero is returned. If $string is = an array, null is returned =E2=80=A6 We simply need consistency between how a function is documented, and how it= really works. I mean, it may also be convenient for strlen to accept a parameter type oth= er than string (such as null), but it must be well documented. Da: Josh Bruce Inviato: marted=C3=AC 1 dicembre 2020 22:21 A: Nikita Popov Cc: PHP internals Oggetto: Re: [PHP-DEV] [RFC] Deprecate passing null to non-nullable argumen= tsof internal functions --_E63D929E-EC94-4661-B73E-9788BB648529_--