|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #422 Error parsing class functions
Submitted: 1998-06-01 22:50 UTC Modified: 1998-06-02 10:21 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: ccurtis at ee dot fit dot edu Assigned: rasmus (profile)
Status: Closed Package: Parser error
PHP Version: 3.0 Release Candidate 5 OS: Solaris 2.4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: ccurtis at ee dot fit dot edu
New email:
PHP Version: OS:


 [1998-06-01 22:50 UTC] ccurtis at ee dot fit dot edu
   if( $post != "" )
   {  SetCookie( "name", "$name" );
      SetCookie( "email", "$email" );

   class Message
   {  var $MsgDB = 0;

      Function XList( $start = 1, $depth = 1, $count = -1 )
      {  $i = $start;

This gives me a parse error on the "Function..." line.  I
originally gave it the line
       cFunction List( $start = 1... )
which gave me an "Expected STRING" error.  Changing the name
of the function from "List" to "XList" changed the error to
an "Expecting )" error.  I do not understand this at all.

On a related note, there is no documentation on the class
expression in the online docs.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-02 10:21 UTC] rasmus
Fixed in CVS by Zeev
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 08:01:25 2023 UTC