Cytat
Parse error: parse error, unexpected T_CLONE, expecting T_STRING in /usr/home/eurostyle1/domains/euro-style.pl/public_html/kernel/object.php on line 528
to jest blad znalazlem ze to jest od php5

  1. <?php
  2. 522 /**
  3.    523  * create a clone(copy) of the current object
  4.    524  *
  5.    525  * @access public
  6.    526  * @return object clone
  7.    527  */
  8.  528 function &clone()
  9.  529 {
  10.  530 $class = get_class($this);
  11.  531 $clone = new $class();
  12.  532 foreach ($this->vars as $k => $v) {
  13.  533 $clone->assignVar($k, $v['value']);
  14.  534 }
  15.  535 // need this to notify the handler class that this is a newly cr
  16. eated object
  17.  536 $clone->setNew();
  18.  537 return $clone;
  19.  538 }
  20.  
  21. ?>
z tego co wyczytałem to php5 ma zarezerwowana nazwe clone i dlatego blad wywala

i teraz jak mam poz mienai nazwy tej funkcji przypisac tak aby stare clone bylo np zclone questionmark.gif