Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91318 invoked from network); 21 Jul 2015 11:15:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2015 11:15:15 -0000 Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:38359] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/F2-03461-1C92EA55 for ; Tue, 21 Jul 2015 07:15:14 -0400 Received: by wibxm9 with SMTP id xm9so53466316wib.1 for ; Tue, 21 Jul 2015 04:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=AqeLQY8Dt18T+k1VgF4b4/E6R9obsiixBL2qehrSKHg=; b=RWe/M7mojnS9W7xs/+yu3E2x2WIjuSQmIWGUp00S2voZKiOjWwI8RWFzbAToHbu20t WfveLYZRypSl3jeskTrvesZe0SMH6wzb6xtITAXF5Nx/Jfvq85ekDM9uORrFoybMvRlK gbN8FP4mPHhZ8nwexiEmEnRc4K/VqTEbHgFsPjlJ7HYIPAiuDCYhgo5HzOY65bOSdg5U /c9HDkD9DA6e7ARJUWA/WvRM9mat11nzRw38REwd2thrIPiRibEBoe6BbwLJ23TMFcbm /0jLWx1WTS/1Cie8d1DsO/OPy/bJUA5wANqu6OOICZuDyuCEXB+4NqIhZX+4vODq9q5b yGyA== X-Received: by 10.194.142.146 with SMTP id rw18mr62387363wjb.110.1437477310532; Tue, 21 Jul 2015 04:15:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.49.133 with HTTP; Tue, 21 Jul 2015 04:14:50 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Jul 2015 12:14:50 +0100 Message-ID: To: Niktia Nefedov Cc: PHP Internals List Content-Type: multipart/alternative; boundary=089e013a2f00779658051b60c4ab Subject: Re: [PHP-DEV] DateTimeInterface is not a usable interface? From: ocramius@gmail.com (Marco Pivetta) --089e013a2f00779658051b60c4ab Content-Type: text/plain; charset=UTF-8 Hey Niktia, On 21 July 2015 at 11:05, Niktia Nefedov wrote: > There's a workaround though - it's to always call user-defined class's > method directly from built-in functions > That's not the workaround, that's the actual fix: the current fix breaks the OO model basics by introducing a limitation in the interface, rather than in the broken implementations. Greets, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --089e013a2f00779658051b60c4ab--