Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z funkcją, Cannot re-assign $this
a79rtur
post
Post #1





Grupa: Zarejestrowani
Postów: 331
Pomógł: 1
Dołączył: 23.05.2004
Skąd: Tarnów/Londyn

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


mam problem z następująca funkcją uzytą w pewnej klasie
wyskakuje błąd:

Fatal error: Cannot re-assign $this in ...

  1. <?php
  2.  
  3. function copy($other) {
  4. $xf = $this->_xf_index;
  5. $this = $other;  <-- ta linia 
  6. $this->_xf_index = $xf;  
  7. }
  8.  
  9. ?>

moze to php5 wina ,bo klasa nie najnowsza 2002r
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 16.09.2025 - 20:58