php.net |  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
Votes:1
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
<?php
   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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-02 10:21 UTC] rasmus
Fixed in CVS by Zeev
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC