Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109733 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 58852 invoked from network); 21 Apr 2020 02:03:25 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 21 Apr 2020 02:03:25 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6F9981804B4 for ; Mon, 20 Apr 2020 17:34:43 -0700 (PDT) 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.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS11403 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 ; Mon, 20 Apr 2020 17:34:42 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 4EB3F5C01AC for ; Mon, 20 Apr 2020 20:34:41 -0400 (EDT) Received: from imap7 ([10.202.2.57]) by compute7.internal (MEProxy); Mon, 20 Apr 2020 20:34:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=58WBpy qPjXWqcRNLYveJaGX8+MUyVW7I66tcs/k+kjg=; b=30STdXu/0gtAz1/v5x/LG+ LkMNUDDTtvfPcxf7xNyeo1Oje1Xmikp0XUuRsxQutQirNhFYf20QNhjk6Ze+4Me0 z419E/QPtTIFde3KE1YG/rbcPrDM9OFjAqx72Q4rtIG2IefB5TVirmG6NDcTtD4F RypPvKTwYcoN2evg0wGYGv74ZcRk4+E63rRiikgjaGql5ikXLyPBixz9NoKQT7Gs WuLbKGJEsirSwKb9VZ7iVbGa8tWKkYjQUkmmBVOIR/t+fRwhRCNMssrkOAQDITJ4 0JSxpKC0Ua66SBHgqq4VFAGDGYlyw9pWOGpzEincbzemaeZ0n9qEVHzCXJQLxupw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeeggdeffecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhgr rhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0B939180093; Mon, 20 Apr 2020 20:34:41 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-1152-g08c8976-fmstable-20200420v1 Mime-Version: 1.0 Message-ID: <13736dc2-22b3-41ca-a70a-8374e26d394d@www.fastmail.com> In-Reply-To: References: Date: Mon, 20 Apr 2020 19:34:19 -0500 To: "php internals" Content-Type: text/plain Subject: Re: [PHP-DEV] [RFC] Mixed type From: larry@garfieldtech.com ("Larry Garfield") On Mon, Apr 20, 2020, at 10:45 AM, Benjamin Eberlei wrote: > > Sure, but how often is that an actual description of what the code > > accepts? I... cannot actually envision what code would actually accept > > that mess. :-) > > > > I can think of quite a few: > > - var_dump, print_r, more generally debugging/logging functions and > wrappers thereof > - json_encode, serialize, and more generally serialization and encoding > functions, as return value as well for the inverse operations > - database/nosql related functions (bindParam, bindValue) and as return > value from generic functions like fetch() > - Xpath::evaluate > - ldap query functions > > And wrappers of these extensions could benefit from passing on the mixed > type explicitly. Valid examples. It would be helpful to add those to the RFC for clarity. --Larry Garfield