Seite 1 von 1

Suchausgabe unter PHP5

Verfasst: So 28. Okt 2007, 18:55
von Peer
Hallo Leute,

habe meinen Server umgestellt von PHP4 auf PHP5 und somit auch meinen Webauftritt umgestellt.

Jetzt bekomme ich bei der Suchausgabe immer folgende Meldung beim Fronten zugriff

Code: Alles auswählen

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 /srv/www/htdocs/web35/html/cms/front_content.php(884) : eval()'d code on line 102

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 /srv/www/htdocs/web35/html/cms/front_content.php(884) : eval()'d code on line 102

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 /srv/www/htdocs/web35/html/cms/front_content.php(884) : eval()'d code on line 278

Ich verstehe das nur leider nicht so richtig.

Kann mir da jemand helfen ?

Vielen dank

Verfasst: So 28. Okt 2007, 19:41
von Oldperl
im Modul suchausgabe nach referenzierten Variablen in Funktionsaufrufen suchen.

Code: Alles auswählen

$oArticleProp = new Article_Property(& $db, & $cfg);
die & ersatzlos entfernen

Code: Alles auswählen

$oArticleProp = new Article_Property($db, $cfg);
und hier

Code: Alles auswählen

$sCatName = getCategoryName($cat_id, & $db);
dasselbe

Code: Alles auswählen

$sCatName = getCategoryName($cat_id, $db);
Gruß aus Franken

Ortwin

Verfasst: Mo 29. Okt 2007, 15:02
von Peer
Danke es Funktioniert wieder.

Re: Suchausgabe unter PHP5

Verfasst: Mi 25. Mär 2009, 16:45
von estilizar
Und

Code: Alles auswählen

$oArticleProp = new Article_Property($db, & $cfg);
durch

Code: Alles auswählen

$oArticleProp = new Article_Property($db, $cfg);
ersetzen.