Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:587 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93266 invoked from network); 2 Apr 2003 06:10:33 -0000 Received: from unknown (HELO ogi.bezeqint.net) (192.115.106.14) by pb1.pair.com with SMTP; 2 Apr 2003 06:10:33 -0000 Received: from mr3.bezeqint.net (pip-18.bezeqint.net [192.115.106.18]) by ogi.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id 864B936A1 for ; Wed, 2 Apr 2003 09:10:13 +0300 (IDT) Received: from mail.zend.com (bzq-117-235-230.cust.bezeqint.net [192.117.235.230]) by mr3.bezeqint.net (Mirapoint Messaging Server MOS 3.3.3-GR) with SMTP id ATE17004; Wed, 2 Apr 2003 09:10:12 +0300 (IDT) Received: (qmail 29874 invoked from network); 2 Apr 2003 06:10:01 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 2 Apr 2003 06:10:01 -0000 Message-ID: <5.1.0.14.2.20030402091017.032db718@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 02 Apr 2003 09:10:49 +0300 To: Sebastian Bergmann , internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Doc Comments cause parser errors From: andi@zend.com (Andi Gutmans) AFAIK, doc comments are for classes and functions only. I think this is what's important because interfaces are functions not variables. Andi At 07:50 AM 4/2/2003 +0200, Sebastian Bergmann wrote: > Current HEAD: > > class Foo { > var $foo; > } > ?> > > works, but > > class Foo { > /** > */ > var $foo; > } > ?> > > causes > > Parse error: parse error, unexpected T_VAR, expecting T_FUNCTION > in e:\var.php on line 5 > >-- > Sebastian Bergmann > http://sebastian-bergmann.de/ http://phpOpenTracker.de/ > > Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/ > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php