php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #427 oddity: return Include & $this defaults
Submitted: 1998-06-02 22:12 UTC Modified: 1998-06-03 09:05 UTC
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ccurtis at ee dot fit dot edu
New email:
PHP Version: OS:

 

 [1998-06-02 22:12 UTC] ccurtis at ee dot fit dot edu
These two functions are unliked by the parser:

cFunction MyFunc( $arg )
{	return @Include( $arg );
}

Removing the "return" removes the error.  Removing the '@' has no effect.

This function is more dubious, but...

cFunction MyFunc( $start = $this->$Var )

This doesn't seem like it should give any trouble.

I can work around both of these, so if it's just a limitation of the
current parser, fine by me.  But if it's an easy fix, ... =)

Thanks,
Chris

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-03 09:05 UTC] rasmus
Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC