[ phpeclipse-Bugs-1501248 ] Parser error in new self::$_class()
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ide.eclipse.phpeclipse.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1501248, was opened at 2006-06-05 23:32
Message generated for change (Comment added) made by freeman3
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1501248&group_id=57621
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Lukas Zapletal (lzap)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parser error in new self::$_class()
Initial Comment:
public static function getInstance() {
if (!isset(self::$_instance)) {
self::$_instance = new self::$_class();
} // if
return self::$_instance;
} // getInstance
leads to
self::$_instance = new self::$_class();
^^^
Parser error "';' expected after expression (Found
token: not-a-token(63) ::)"
----------------------------------------------------------------------
Comment By: freeman (freeman3)
Date: 2006-10-17 15:09
Message:
Logged In: YES
user_id=1059466
i have the same problem
.... = new self::$self_class_name[0]();
$self_class_name can be anything array in this case
----------------------------------------------------------------------
Comment By: Luis Bernardo (lmpmbernardo)
Date: 2006-06-21 05:26
Message:
Logged In: YES
user_id=137011
can you provide a full fledged example? is this a singleton?
where does the $_class come from?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1501248&group_id=57621
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642