TPhpErrorException

Description

[Unknown Error] Function split() is deprecated (@line 422 in file /home/storageh/www/serwisy/eubieranki/libs/prado/PradoBase.php).

Source File

/home/storageh/www/serwisy/eubieranki/libs/prado/PradoBase.php (422)

0411:     {
0412:         static $languages=null;
0413:         if($languages===null)
0414:         {
0415:             if(!isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
0416:                 $languages[0]='en';
0417:             else
0418:             {
0419:                 $languages=array();
0420:                 foreach(explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']) as $language)
0421:                 {
0422: $array=split(';q=',trim($language));
0423: $languages[trim($array[0])]=isset($array[1])?(float)$array[1]:1.0; 0424: } 0425: arsort($languages); 0426: $languages=array_keys($languages); 0427: if(empty($languages)) 0428: $languages[0]='en'; 0429: } 0430: } 0431: return $languages; 0432: } 0433: 0434: /**

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(8192, 'Function split(...', '/home/storageh/...', 422, Array)
#1 /home/storageh/www/serwisy/eubieranki/libs/prado/PradoBase.php(422): split()
#2 /home/storageh/www/serwisy/eubieranki/libs/prado/PradoBase.php(443): PradoBase::getUserLanguages()
#3 /home/storageh/www/serwisy/eubieranki/libs/prado/Exceptions/TException.php(86): PradoBase::getPreferredLanguage()
#4 /home/storageh/www/serwisy/eubieranki/libs/prado/Exceptions/TException.php(66): TException->getErrorMessageFile()
#5 /home/storageh/www/serwisy/eubieranki/libs/prado/Exceptions/TException.php(337): TException->translateErrorMessage('pageservice_pag...')
#6 /home/storageh/www/serwisy/eubieranki/libs/prado/Web/Services/TPageService.php(456): THttpException->__construct(404, 'pageservice_pag...', 'users.viewprofi...')
#7 /home/storageh/www/serwisy/eubieranki/libs/prado/TApplication.php(988): TPageService->run()
#8 /home/storageh/www/serwisy/eubieranki/libs/prado/TApplication.php(346): TApplication->runService()
#9 /home/storageh/www/serwisy/eubieranki/index.php(35): TApplication->run()
#10 {main}
2021-06-13 17:16 Apache PRADO/3.0.2