Re: [RFC] Mixed type

From: Date: Tue, 21 Apr 2020 00:34:19 +0000
Subject: Re: [RFC] Mixed type
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-109733@lists.php.net to get a copy of this message
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

« previous php.internals (#109733) next »