Posted by comp.lang.php on 10/24/06 14:39
Marcin Dobrucki wrote:
> comp.lang.php wrote:
> >
> > if (@!is_class($this->dbAP, 'DBActionPerformer')) $this->dbAP =& new
> > DBActionPerformer(); // LOCAL INSTANTIATION UNLESS ALREADY EXISTING
>
> I don't know about the actual unlinking of zip files, etc, but AFAIK
> you can't create objects by reference. This should be:
>
> ...$this->dbAP = new DBActionPerformer();
Um I'm sorry but yes you can. I've been doing this in PHP for years
with no problem:
$this->dbAP =& new DBActionPerformer();
Phil
Navigation:
[Reply to this message]
|