Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] allow_call_time_pass_reference
PiratNowegoPokol...
post
Post #1





Grupa: Zarejestrowani
Postów: 132
Pomógł: 0
Dołączył: 12.10.2006

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


Wyświetla mi sie błąd:
Kod
Warning: Call-time pass-by-reference has been deprecated; 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. in /home/p/a/n/pandaren/www/libary/Template.class.php on line 47

Czytałem troche o tym ... Usunięcie tego nie wchodzi w grę za bardzo ... Czy da się to ominąć :?: ( safe mode mam na serwie :/ ) Czy wyłączenie pokazywania błędów ( wogóle ) będzie tu dobrym rozwiązaniem :?:
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
PiratNowegoPokol...
post
Post #2





Grupa: Zarejestrowani
Postów: 132
Pomógł: 0
Dołączył: 12.10.2006

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


heh ... powód to ja znam ... to nie o to chodzi
  1. <?php
  2. class a
  3. {
  4. private function __toString()
  5. {
  6. if( $this->sParsed )
  7. {
  8. return $this->sParsed;
  9. }
  10. else
  11. {
  12. $this->sParsed = &$this->_toString( &$this->sStructure , &$this->aContent );
  13. return $this->sParsed;
  14. }
  15. }
  16.  
  17. private function _toString( &$sStructure , &$aContent )
  18. {
  19. }
  20. }
  21. ?>


Błąd się wyświetla bo allow_call_time_pass_reference jest źle ustawione na w php.ini ... Ale nie za bardzo wiem co z tym zrobić ...
ini_set( 'allow_call_time_pass_reference' , 'true' ); niestety zwraca mi false :/
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: 13.10.2025 - 06:11