Re: Doc Comments cause parser errors

From: Date: Wed, 02 Apr 2003 06:10:49 +0000
Subject: Re: Doc Comments cause parser errors
Groups: php.internals 
Request: Send a blank email to internals+get-587@lists.php.net to get a copy of this message
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:
     <?php
     class Foo {
       var $foo;
     }
     ?>
works, but
     <?php
     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


« previous php.internals (#587) next »