Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71980 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48101 invoked from network); 2 Feb 2014 09:31:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2014 09:31:40 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 74.125.82.53 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:39967] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/C4-30967-B701EE25 for ; Sun, 02 Feb 2014 04:31:40 -0500 Received: by mail-wg0-f53.google.com with SMTP id y10so10965449wgg.32 for ; Sun, 02 Feb 2014 01:31:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ktMUpDGxrEAbCXCTgHPY7Z/5NMa4ihGf+mS78DMHjo0=; b=TYlg+40nhkqciWnO8ELNzzAaVYq6XxengMAvuMDJ85CMBUQEgqPwmItEskyif9oFdA RBGwbcmw2Cs8cbTKgJjHLJNggYIAHl8VGM2FFTiJgVdGLWZXWX2d8CQaFHg6+L3SIGiy 5Qe4mxfOTGSxuYazL0qTF+kS4CHtXEp1hgnXrVadbAvz5A/judPWYT+yxTqrVztikpHt fN+5MNcVCTNHUidUajPBj2hmVWukB+kW15qhL5m4tm44x/lYSx8Aku3MxQ1H9aWXZexh 7cvCBSNruYg1L4ZKVFIKIT1sM2s8tyfq/3/SSCDRVujM/WyoEGWgZVVe5F03tJdW2uB4 P4zQ== X-Gm-Message-State: ALoCoQmNMvEt3/Heo/3H3uga6bHVpi2cPKkxqsoVf3Z+zXJB5B4Sp+00ioyvb46VICHvFpePxij8 X-Received: by 10.180.37.193 with SMTP id a1mr4919549wik.52.1391333496778; Sun, 02 Feb 2014 01:31:36 -0800 (PST) Received: from [192.168.1.3] (92.41.115.212.threembb.co.uk. [92.41.115.212]) by mx.google.com with ESMTPSA id ux5sm33923601wjc.6.2014.02.02.01.31.33 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 02 Feb 2014 01:31:35 -0800 (PST) Message-ID: <52EE1072.8050604@pthreads.org> Date: Sun, 02 Feb 2014 09:31:30 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: =?UTF-8?B?Sm9oYW5uZXMgU2NobMO8dGVy?= , PHP internals References: <98.E0.35265.E17FBE25@pb1.pair.com> <1391203805.2941.173.camel@guybrush> <1391210014.2941.224.camel@guybrush> In-Reply-To: <1391210014.2941.224.camel@guybrush> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [VOTE] Automatic Property Initialization From: pthreads@pthreads.org (Joe Watkins) Morning internalz, Some clarity ... > Johannes: > it there seems to be a design flaw around inheritance with code like > this: > class Base { public $p; function __construct($this->p = 42); } > Class E extends Base { function __construct($this->p = 23) { parent::__construct(); } > new E; Assuming you meant to declare Base::__construct abstract: L1946 zend_compile.c: > zend_error(E_COMPILE_ERROR, "Automatic property initialization can not be used in an abstract method"); > leading to probably unexpected results ... also > class C { public function m($foo->prop){}} L1933 zend_compile.c: > zend_error(E_COMPILE_ERROR, "Property name can only be prefixed by $this->"); Having reviewed the discussion, and played with the patch, I see no genuine objection. Cheers Joe