Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97814 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1745 invoked from network); 17 Jan 2017 15:02:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2017 15:02:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.171 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.161.171 mail-yw0-f171.google.com Received: from [209.85.161.171] ([209.85.161.171:35495] helo=mail-yw0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/D5-00729-8023E785 for ; Tue, 17 Jan 2017 10:02:33 -0500 Received: by mail-yw0-f171.google.com with SMTP id l19so89276167ywc.2 for ; Tue, 17 Jan 2017 07:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SkByQLUOqOXLYAAphqbj2vdXcT9CZIrkHj8tLb1vuKM=; b=XBJSPLcD27+B80nfsKWAQdKW0Z2KzfYxt9G9hFHRucJNHDE+nq9643CKjjgaY7YRmc h1+SDpI3y4FJWrDJmkiH/lZWaTpu65EpdVtd1XwMPjVW60gPhJplRRqIaA/HewFsB2hi PuGWJjYrFOzI+EP0xWQr3YRUXhIedBgZ3i1M3fDDlSQvYkeNljIM5vzWCTA09Gzj0pos k8FxfLT3OlPJogDW629Gb4E9sf+OEvQqLTN5QR5ZM6aBmeOR7NuVwb4kdTxSY9pzlvDy 6Bx1QEF14vwrY6S5cEhb3tcfcrQGKtDarID9Z3Ge/HBDN/5VQOK/oMLCo5YvUDX+2ysf N6hg== 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; bh=SkByQLUOqOXLYAAphqbj2vdXcT9CZIrkHj8tLb1vuKM=; b=H1WAxVLhw31KaKWoZjujVjjNzaRIqeifd+iWSpT6asme8RBQG+akCT+08lSWcCP8hi QZoIDzs1lVAzjsy0XLTo/KdbRspd3HkbaQqCLIZbwzvuQHgG4QL38U3K02N/RK17QHqT 1wv4e06k9JlSOFgRmbYwj9SSucECZ5sXnnSWW0IG4gRpFAGLRjnDFIALms04LHV4gNbB RT2YuUmi7A+T+enrapYtYGaIPC/1VgPVELHO3g1eI1X0fPzsdofrZ7dyaYTzuA7PNamE 7v57MEQR/b9NFoNa9V7qsqrNbRqhocIgfsTT+2WQUPSmSlT2/ewSZ+FVYnsuJYiGck4l 4uKA== X-Gm-Message-State: AIkVDXJpdPo4O0xY8gpKFOLibC1hMBWPwJYpTV71t6XN1389YObLQeSTwvHLWa0TUJRlf97xHMi9yAsUDbwOrA== X-Received: by 10.129.111.194 with SMTP id k185mr6856434ywc.328.1484665350101; Tue, 17 Jan 2017 07:02:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.248.27 with HTTP; Tue, 17 Jan 2017 07:02:09 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Jan 2017 10:02:09 -0500 Message-ID: To: Dmitry Stogov Cc: Bob Weinand , Joe Watkins , PHP internals list Content-Type: multipart/alternative; boundary=001a1147194acda46105464b96a9 Subject: Re: [PHP-DEV] Typed properties problems From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a1147194acda46105464b96a9 Content-Type: text/plain; charset=UTF-8 Where can I see progress of this work? On Tue, Jan 17, 2017 at 5:03 AM, Dmitry Stogov wrote: > Hi Bob, > > > I've found a number of problems: > > > $ sapi/cli/php -r 'class Foo {public bool $b = false;} $x = new Foo; > $x->b->ops += 5; echo gettype($x->b),"\n";' > > object > > $ sapi/cli/php -r 'class Foo {public bool $b = false;} $x = new Foo; > $x->b->ops++; echo gettype($x->b),"\n";' > object > > $ sapi/cli/php -r 'class Foo {public bool $b = false;} $x = new Foo; > $x->b->ops = 5; echo gettype($x->b),"\n";' > object > > $ sapi/cli/php -r 'class Foo {public bool $b = false;} $x = new Foo; > $x->b[] = 5; echo gettype($x->b),"\n";' > array > > Thanks. Dmitry. > > -- Guilherme Blanco Senior Technical Architect at Huge Inc. --001a1147194acda46105464b96a9--