Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> xoops blad w php 5 !, nie moge tego problemu rozwiazac
Sm0key
post
Post #1





Grupa: Zarejestrowani
Postów: 69
Pomógł: 1
Dołączył: 26.02.2004
Skąd: kielce. //Świętokrzyskie

Ostrzeżenie: (0%)
-----


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


--------------------
... aleobiad 80 %
"Doskonałości nie da się przyśpieszyć..."
Go to the top of the page
+Quote Post

Posty w temacie
- Sm0key   xoops blad w php 5 !   27.09.2004, 15:04:51


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 20:13