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 z tego co wyczytałem to php5 ma zarezerwowana nazwe clone i dlatego blad wywala
<?php 522 /** 523 * create a clone(copy) of the current object 524 * 525 * @access public 526 * @return object clone 527 */ 528 function &clone() 529 { 530 $class = get_class($this); 531 $clone = new $class(); 532 foreach ($this->vars as $k => $v) { 533 $clone->assignVar($k, $v['value']); 534 } 535 // need this to notify the handler class that this is a newly cr eated object 536 $clone->setNew(); 537 return $clone; 538 } ?>
i teraz jak mam poz mienai nazwy tej funkcji przypisac tak aby stare clone bylo np zclone
