Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: php Warnings ? co to znaczy
Forum PHP.pl > Forum > PHP
andy84
Witam
Proboje sie dowiedziec o co chodzi z tym php warnings - zainstalowalem na serverze wiki i teraz na dole jej strony wyswietla mi jakies php waning chcial bym prosic o pomoc w wyjasnieniu problemu dziekuje


php Warnings
lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/WikiUser.php:59: Notice[8]: Only variables should be assigned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/Template.php:112: Notice[8]: Only variables should be assigned by reference

lib/Template.php:114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'top') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'top') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/pear/DB/common.php (In template 'navbar') (In template 'top') (In template 'body') (In template 'html'):741: Notice[8]: Only variable references should be returned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/CachedMarkup.php (In template 'browse') (In template 'body') (In template 'html'):427: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'actionbar') (In template 'browse-footer') (In template 'browse') (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):112: Notice[8]: Only variables should be assigned by reference

lib/Template.php (In template 'body') (In template 'html'):114: Notice[8]: Only variables should be assigned by reference
dr_bonzo
Instalowales to na php5?

Blad jest w wiki, typu:
  1. <?php
  2. function &returnSomeReference()
  3. {
  4. return 3;
  5. }
  6. ?>
andy84
Cytat(dr_bonzo @ 21.06.2006, 14:38 ) *
Instalowales to na php5?

Blad jest w wiki, typu:
  1. <?php
  2. function &returnSomeReference()
  3. {
  4. return 3;
  5. }
  6. ?>


ok odpalilem to na wersji 5.1.3 i teraz znowu nie wyswietla mi wogole strony i dostaje odrazu taki blad

lib/main.php:20: Fatal[2048]: Assigning the return value of new by reference is deprecated


  1. <?php
  2. if (USE_DB_SESSION) {
  3. include_once('lib/DB_Session.php');
  4. 20linijka> $this->_dbsession = & new DB_Session($this->getDbh(),
  5.  $GLOBALS['DBParams']['db_session_table']);
  6. }
  7.  
  8. $this->Request();
  9. ?>
dr_bonzo
1. nie uzywaj 5.1.3 (ma blad w $_POST) w tylko najnowszej 5.1.4
2.
  1. <?php
  2. $this->_dbsession = new DB_Session($this->getDbh(), // bez "&"
  3. ?>

3.
Po prostu to jest juz bledem w php 5.1 (4.4 chyba tez)
Ustaw zend.ze1_compatibility_mode na true (http://pl2.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode ) i powinno juz dzialac, choc php bedzie sie zachowywal jak php4.3, stracisz wszystkie nowosci w OOP z piatki.
andy84
Cytat(dr_bonzo @ 21.06.2006, 20:28 ) *
1. nie uzywaj 5.1.3 (ma blad w $_POST) w tylko najnowszej 5.1.4
2.
  1. <?php
  2. $this->_dbsession = new DB_Session($this->getDbh(), // bez "&"
  3. ?>

3.
Po prostu to jest juz bledem w php 5.1 (4.4 chyba tez)
Ustaw zend.ze1_compatibility_mode na true (http://pl2.php.net/manual/en/ini.core.php#ini.zend.ze1-compatibility-mode ) i powinno juz dzialac, choc php bedzie sie zachowywal jak php4.3, stracisz wszystkie nowosci w OOP z piatki.

dzieki smile.gif mi nie zalezy na nowosciach chociaz sie przydaja - poprostu chce zeby to odpalilo sad.gif
mozesz mi tylko podpowiedziec jak i gdzie mam to zend zmienic - nie mam bezposredniego dostepu do php sad.gif jedynie jak moge tym sterowac to przez .httaccess poprostu tak wyglada moj uslugodawca www sad.gif
dr_bonzo
Nawet ini_set() sie da (w htaccess tez)
http://pl2.php.net/manual/en/ini.php#ini.list
andy84
Cytat(dr_bonzo @ 21.06.2006, 22:01 ) *
Nawet ini_set() sie da (w htaccess tez)
http://pl2.php.net/manual/en/ini.php#ini.list



no w sumie smile.gif
probowalem na kilka sposobow

tak w yglada moj httaccess

ini_set(zend.ze1_compatibility_mode,1)
AddHandler php5-fastcgi php
Action php5-fastcgi /fcgi-bin5/php5
AddHandler application/x-httpd-php5 php

probowalem juz zend_mode w cudzyslowie 1 w cudzisylowie razem osobno i na zmiane ;/ i ciagle nie dziala moge prosic o wielka pomoc questionmark.gif



AddHandler php5-fastcgi php
Action php5-fastcgi /fcgi-bin5/php5
AddHandler application/x-httpd-php5 php - to mi laduje php 5 a nie 4 jak jest ustawione na serverze domyslnie
dr_bonzo
ini_set() to funkcja php, i "zend_..." w apostrofach/cudzyslowach.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.