Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> & w php 4.4.2, referencje?
AxZx
post
Post #1





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 55
Dołączył: 1.03.2005
Skąd: śląsk

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


witam

wlasnie zainstalowalem najnowsze z serii 4 php 4.4.2

takie ostrzezenia wyskakuja:

Kod
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in ...



tak przekazywalem zmienne do klasy
  1. <?php
  2. $obiekt = new klasa(&$sql, &$smarty, &$lang);
  3. ?>


jak to sie powinno robic?

Ten post edytował AxZx 26.06.2006, 11:25:41
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
AxZx
post
Post #2





Grupa: Zarejestrowani
Postów: 1 385
Pomógł: 55
Dołączył: 1.03.2005
Skąd: śląsk

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


a klasa jak powinna wygladac?

tak dobrze?:
  1. <?php
  2. class ekartki{
  3.  
  4. var $sql;
  5. var $lang;
  6. var $smarty;
  7.  
  8. function ekartki(&$sql, &$smarty, &$lang){
  9.  
  10. $this->sql = &$sql;
  11. $this->smarty= &$smarty;
  12. $this->lang = &$lang;
  13.  
  14. }#koniec ekartki
  15. }
  16. ?>
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: 12.10.2025 - 15:05