Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18455 invoked from network); 2 Apr 2003 06:43:18 -0000 Received: from unknown (HELO ogi.bezeqint.net) (192.115.106.14) by pb1.pair.com with SMTP; 2 Apr 2003 06:43:18 -0000 Received: from mr4.bezeqint.net (pip-18.bezeqint.net [192.115.106.18]) by ogi.bezeqint.net (Bezeq International SMTP out Mail Server) with ESMTP id 5269E3D8C for ; Wed, 2 Apr 2003 09:42:58 +0300 (IDT) Received: from mail.zend.com (bzq-117-235-230.cust.bezeqint.net [192.117.235.230]) by mr4.bezeqint.net (Mirapoint Messaging Server MOS 3.3.3-GR) with SMTP id ASS34418; Wed, 2 Apr 2003 09:43:12 +0300 (IDT) Received: (qmail 30598 invoked from network); 2 Apr 2003 06:23:02 -0000 Received: from localhost (HELO andi-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 2 Apr 2003 06:23:02 -0000 Message-ID: <5.1.0.14.2.20030402092156.0310bb68@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:23:44 +0300 To: Sascha Schumann Cc: Sebastian Bergmann , internals@lists.php.net In-Reply-To: References: <5.1.0.14.2.20030402091017.032db718@127.0.0.1> <5.1.0.14.2.20030402091017.032db718@127.0.0.1> 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) At 08:16 AM 4/2/2003 +0200, Sascha Schumann wrote: >On Wed, 2 Apr 2003, Andi Gutmans wrote: > > > AFAIK, doc comments are for classes and functions only. I think this is > > what's important because interfaces are functions not variables. > > Hm, so my PHP 4-stylish code would cause a parse error, if it > contained a valid character like a "*" after the initiation > sequence "/*"? Oh, I didn't think of that. You are completely right. This is definitely a problem. Andrei's patch returns a token for /** */ on the parser level so only places which are allowed to have this work. This sounds like a serious flaw because any place which has such comments will fail. I guess we'll need to revert his patch and try to think of a completely different way of doing it (unless someone has a good idea of how to solve this problem). Andi