Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99111 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58366 invoked from network); 18 May 2017 12:23:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2017 12:23:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=adam.baratz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=adambaratz@php.net; sender-id=unknown Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.175 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.220.175 mail-qk0-f175.google.com Received: from [209.85.220.175] ([209.85.220.175:36409] helo=mail-qk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 04/84-23431-E329D195 for ; Thu, 18 May 2017 08:23:27 -0400 Received: by mail-qk0-f175.google.com with SMTP id u75so33842359qka.3 for ; Thu, 18 May 2017 05:23:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=q1N0ABNO5Rdk4oFjva6fFAemouC4t0MChDcECfOURDc=; b=KR1ZFNm0rKny30p+Z4LHrEq9dbEMfWu+iGThj5kcnln+ptAsSyJBuwPH//zWMgv0Q3 uJ0SBgqPNtbFjDj4xs7KDnH82G1OFAt7fev7b6ErHOlC5sOIgZhe2Gaffrwv7tK4jCV5 izKfr+ZmqqjqROaLJj/72CMS9F4PKsNOJE2UO5PPUHQLRVlYbZ2uCr7b70LTzMXYKlwn 7Y/cjm9jRjQ/t0hRm4YbOAvxZL7mFmcGG7ouajohjPpmJgYWfBU8G/c1ZP00URpk34n7 PoGsu30iNSICxUR2T6V9bK8RwvyoxrwB8j0XH3PRgqtrXqcbluCbAGv4udJvEayvTMek JoIQ== X-Gm-Message-State: AODbwcDh2lwBhv6d2RRX7qksjvaGd0DpJuUDG3b+WCjgixgNVjJNXtgQ DKGNmlcuHmS4RDp6pIs= X-Received: by 10.55.186.5 with SMTP id k5mr3806517qkf.302.1495110204277; Thu, 18 May 2017 05:23:24 -0700 (PDT) Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com. [209.85.216.179]) by smtp.gmail.com with ESMTPSA id g32sm3574994qtc.19.2017.05.18.05.23.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 05:23:23 -0700 (PDT) Received: by mail-qt0-f179.google.com with SMTP id t26so32295358qtg.0 for ; Thu, 18 May 2017 05:23:23 -0700 (PDT) X-Received: by 10.200.55.145 with SMTP id d17mr3761802qtc.57.1495110203663; Thu, 18 May 2017 05:23:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.27 with HTTP; Thu, 18 May 2017 05:23:23 -0700 (PDT) Date: Thu, 18 May 2017 14:23:23 +0200 X-Gmail-Original-Message-ID: Message-ID: To: "internals@lists.php.net" , Dorin Marcoci Content-Type: multipart/alternative; boundary="001a113c6986970f5e054fcb7812" Subject: Re: PDO Parameter types // PDO::PARAM_AUTO From: adambaratz@php.net (Adam Baratz) --001a113c6986970f5e054fcb7812 Content-Type: text/plain; charset="UTF-8" > > Who is the architector/staff board of PDO? PDO is maintained with the rest of PHP core, so it follows the same process outlined in CONTRIBUTING.md. That is to say, there's no central governance. Some people, as listed in EXTENSIONS, have appropriate karma and handle maintenance that falls outside of the contribution guide. That's why I think, it will be great to have a special type like > PDO::PARAM_AUTO and a config flag to set it as default instead of > PARAM_STR. The risk with this is queries could lose portability between drivers. There are differences in the level of information each one can get from the DB server, and different costs associated with asking. I think the right model is to have PDO types map directly to SQL types. That said, the code and documentation don't take a strong stance on how types should work. And there's not a lot of agreement in the community, at least as indicated by discussions on this list. I agree with Matteo that param hooks might provide a better solution to the specific problem you're describing. Thanks, Adam --001a113c6986970f5e054fcb7812--