Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> problem z funkcją, Cannot re-assign $this
a79rtur
post 14.11.2004, 18:00:02
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


--------------------
php 5.1.2 & Apache 2.0.50 & MySQL 4.1.7 @ WinXP Pro
..:: GG 6449856 ::..
www.londyn.me.uk - ogłoszenia mieszkaniowe dla Londynu
Go to the top of the page
+Quote Post

Posty w temacie


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 Wersja Lo-Fi Aktualny czas: 18.07.2025 - 04:40