Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50721 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15079 invoked from network); 30 Nov 2010 10:14:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2010 10:14:59 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:50349] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/46-01713-2AEC4FC4 for ; Tue, 30 Nov 2010 05:14:59 -0500 Received: by qwj8 with SMTP id 8so1129345qwj.29 for ; Tue, 30 Nov 2010 02:14:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=SwXUW6o1kGfhQ9k2//+vZ0+O5P3paIFm28OpXwC6ooU=; b=WIkjQO85pzO+Rpts3VaEWbSj5lvePX4hfGXmD3Lzt37UM9TfeHQxlnNh9i0+fHYF7O uyLO3j7x1RWyPP0ySPDYEBxQuchd/lC35RkI187AZrGoiHLr6Jtjgwlj4JBG4q0CMKa2 efCI3O6OKeN1Y2jZ9lcp9MRX+mZDAA0JyH6mw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=OIe0uJhruqLi81I24T3ATbU1QMLOeAs9smQcuApoaB/fkqLyo1m2C3WryOmtgl75Wt eQzQdJMLHjSQFNF1SQvRYQbUvYf6sr27tI+l1KdH3LDZcL276HTe+CyPRd2TyKv1+jJJ aYAtHNijvYRNlH0ypTJSJBlor/SXmCZz0zErw= MIME-Version: 1.0 Received: by 10.224.11.11 with SMTP id r11mr6242568qar.328.1291112095790; Tue, 30 Nov 2010 02:14:55 -0800 (PST) Sender: kalle.php@gmail.com Received: by 10.220.185.69 with HTTP; Tue, 30 Nov 2010 02:14:55 -0800 (PST) In-Reply-To: References: <1290879624.7033.826.camel@guybrush> Date: Tue, 30 Nov 2010 11:14:55 +0100 X-Google-Sender-Auth: VuK-qLNrY5vfZ91X40tt1b_JfoI Message-ID: To: Patrick ALLAERT Cc: =?ISO-8859-1?Q?Johannes_Schl=FCter?= , PHP internals list Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations From: kalle@php.net (Kalle Sommer Nielsen) Hi 2010/11/30 Patrick ALLAERT : > With this patch, something looks inconsistent to me: > Both properties and methods have a visibility > (public|protected|private) and a keyword: "var" (T_VAR) and "function" > (T_FUNCTION) respectively. > However "private var $foo;" generates a fatal error but "private > function foo(){}" not? The "var" keyword is an alias of the "public" keyword for BC with PHP4. So it would be illogically to declare a property both private and public at the same time ;-) -- regards, Kalle Sommer Nielsen kalle@php.net