Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100160 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80102 invoked from network); 6 Aug 2017 13:30:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Aug 2017 13:30:16 -0000 Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.83.50 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.83.50 mail-pg0-f50.google.com Received: from [74.125.83.50] ([74.125.83.50:33767] helo=mail-pg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/22-34801-5E917895 for ; Sun, 06 Aug 2017 09:30:15 -0400 Received: by mail-pg0-f50.google.com with SMTP id u5so24312178pgn.0 for ; Sun, 06 Aug 2017 06:30:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=d2KeX2xW0VkIsqlYQnU84mfe5egyD4wNvEE0f0zLcjo=; b=P1kEqBjDyuEgr8pWcLP1liawjAs/dhLKEhTZCWN6JoFr1E1rm41GDxekYMwCxYsunI 9vBtRqZre1fwz40u74oWsTdK182eSyoMKoIGTmohrhkcNVfjH7xldOel6y62k1chmDcY p+kWbpeRKuTVN2JHt1JCHfna6l/gwrrA/1UOTYooS5ygnPaYfqainTlnT3zY1ATtQVMM KPXtJg0qfo3O06PAJDdXut8cZULj4+JqnuVGfQbZV0/yhFU/9ZP1a5vI9RlryBOCH5Qg NExwUkMHpm4YMB8xhqwl12IVOBYrNCu4UboZcanmylnl/CeYd2KBTotzCywGZ6A9EeDm wyHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=d2KeX2xW0VkIsqlYQnU84mfe5egyD4wNvEE0f0zLcjo=; b=MflrlmlFwXdPCc/9O9LcvDwgN70i8kIapY3WkVhkXyK3oDQtMyz2CowtuXxXOJntad KQR/MEDd8MiQo4yS5wRa+NBLvk6Y342osfrWZn7T43NQa47JKfJDj4Zxtx5cBY1T7Q39 QC7wQgXiVZr8BcUjjGi4Ot3BYqhAxasPmt0YeSHu14/3Dzy2FjAJYziozBqVyaAVVqzP hE1vuIRli5SyODXVtujLUhQEQ4kXZEgvaOIBVd4EBE9JRpBXmiDjifIdJ43q+Dv3RjdH XHXM1XooJ7i/uVjkNWUI89IxRG3v+I+X2OFjfXubQ17S8skE5rh2t3JurZ4JpVoGbOCu HXaw== X-Gm-Message-State: AIVw111gUlFnvC88l0SHSIbnZCPy4Qp4Fy9dXzPuVYQjbHkhTzOGfgEW 5CVTcqNbQ51elL6CZBT+K+exl7anto1i X-Received: by 10.84.232.134 with SMTP id i6mr10133739plk.50.1502026210855; Sun, 06 Aug 2017 06:30:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.180.133 with HTTP; Sun, 6 Aug 2017 06:30:10 -0700 (PDT) X-Originating-IP: [77.99.17.151] In-Reply-To: References: <1907EFF3-ED77-4F5C-85AA-CDFE323369C5@bk.ru> <880CDC06-17D6-4E40-8A48-F2E1CB405667@bk.ru> <2A653728-97CA-4AA5-BA30-5BF26FABBC2A@bk.ru> <1501512881.14647.31.camel@schlueters.de> <94973CB5-A3F8-4BE4-9A78-8F759D1829E7@bk.ru> <1501515189.14647.35.camel@schlueters.de> Date: Sun, 6 Aug 2017 14:30:10 +0100 Message-ID: To: Andrew Nester Cc: =?UTF-8?Q?Johannes_Schl=C3=BCter?= , "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [Request][Discussion] Introduce interfaces PDOInterface and PDOStatementInterface From: danack@basereality.com (Dan Ackroyd) Andrew Nester wrote: > I am thinking about writing an RFC for this and continue discussion there= . > Will it be a good idea? You're apparently not very good at listening to suggestions, so I'll be more direct. I think you're wasting people's time until you actually try seeing if PDO can be made to work with userland classes or not. The next step should be you (or anyone else) attempting to make the required changes to PDO to make it work, to discover what changes would be needed to allow using userland classes. If it isn't known what is needed to do to support it working, there is no point raising the RFC. Johannes Schl=C3=BCter wrote: > The actually question is: Why not? My understanding is that some of the internal code that calls userland functions and methods is basically bogus. I had a PR (which I haven't had the energy to get round to sorting out) to make the SPL call userland constructors correctly: https://github.com/php/php-src/pull/1196 My surprise level would be zero, if there were similar issues in PDO instantiating user classes, or other issues like the internal code accessing properties directly without going through method access. On the other hand, it might 'just work'. cheers Dan Ack