Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93086 invoked from network); 21 Jul 2015 11:26:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2015 11:26:00 -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.181 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:38427] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BA/43-03461-74C2EA55 for ; Tue, 21 Jul 2015 07:26:00 -0400 Received: by wibxm9 with SMTP id xm9so53741870wib.1 for ; Tue, 21 Jul 2015 04:25:56 -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=Ss/ekpsHRN4ArJxb7q1U8AsXjbaRtE/nrkpTtbfMZvg=; b=EED/Y3TPyh0Fd9LR0k9RVwJJzY/FsRk9FS+4aINB8nwL5KqNbC3GhIhpsvul3DY9h+ oK9UHpqr9PhVZ2CZT7GcBFmBQBpo5S5OAJlMmcZ1MTJYWYFZpwCQh+u+NbjxXVD3YAql 3pnNCoWuNZK7yqCX+MULl+tRE8gwgX6ass6ytNKl7kSz+2TsmM4lKjf3w6b9+/ivPW6z jLDhzJJVrKDz10se8A3L8iIhD5iRBf8MbM2i4PvBlrOYFGe6MHr7hY8EFrqr2ePfsFH0 QPgMAne5a6wp1K8WK6JObmsNG1toUu0VnX/bJcPHreDoMBBMDJG3n9ckx37urSHNlwDa XWIQ== X-Received: by 10.194.95.71 with SMTP id di7mr67604824wjb.125.1437477956168; Tue, 21 Jul 2015 04:25:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.49.133 with HTTP; Tue, 21 Jul 2015 04:25:36 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Jul 2015 12:25:36 +0100 Message-ID: To: Niktia Nefedov Cc: PHP Internals List Content-Type: multipart/alternative; boundary=047d7bea43d6f3321e051b60ea19 Subject: Re: [PHP-DEV] DateTimeInterface is not a usable interface? From: ocramius@gmail.com (Marco Pivetta) --047d7bea43d6f3321e051b60ea19 Content-Type: text/plain; charset=UTF-8 I should also add that this breaking change was introduced in a patch release (5.5.8). What has happened has happened, and I don't want to blame anyone, but this is actually really broken :-\ Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 21 July 2015 at 12:14, Marco Pivetta wrote: > 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/ > --047d7bea43d6f3321e051b60ea19--