Русский English Deutsch Українська Қазақша

Next Generation CMS :: Форум поддержки

Заинтересовала наша система? Тогда этот форум для Вас!

Вы не вошли.

#1 2011-03-08 14:54:54

legenda
Участник
Откуда: ua
Здесь с 2009-12-22
Сообщений: 2,151
Рейтинг :   39 

PHP Warning: Call-time pass-by-reference has been deprecated

Такой вопрос, заметил что чето очень много у меня стало в логе .error.log ошыбок такого типа

[Tue Mar 08 13:51:06 2011] [error] [client 31.43.20.81] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 144, referer: http://www.ukr.net/
[Tue Mar 08 13:51:06 2011] [error] [client 31.43.20.81] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 435, referer: http://www.ukr.net/
[Tue Mar 08 13:51:06 2011] [error] [client 194.44.136.123] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 144, referer: http://bilshe.com/showbiz
[Tue Mar 08 13:51:06 2011] [error] [client 194.44.136.123] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 435, referer: http://bilshe.com/showbiz
[Tue Mar 08 13:51:09 2011] [error] [client 95.215.156.181] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 144, referer: http://www.ukr.net/ua/
[Tue Mar 08 13:51:09 2011] [error] [client 95.215.156.181] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 435, referer: http://www.ukr.net/ua/
[Tue Mar 08 13:51:09 2011] [error] [client 91.210.189.157] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 144
[Tue Mar 08 13:51:09 2011] [error] [client 91.210.189.157] PHP Warning:  Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts().  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/bilshe.com/data/www/bilshe.com/engine/includes/news.php on line 435

может кто подскажет в чем проблема?

Вне форума

#2 2011-03-08 15:09:49

Wolverine
Модератор
Откуда: Домодедово
Здесь с 2008-10-13
Сообщений: 3,538
Рейтинг :   160 
Сайт

Re: PHP Warning: Call-time pass-by-reference has been deprecated

Начиная с какой-то версии PHP, если аргументом функции должна быть ссылка, то указать на это необходимо не при вызове функции, как в движке exec_acts('news_full', '', $row, &$tvars); а в описании аргументов самой функции function exec_acts в extras.inc.php

То есть, если тебя смущают предупреждения, то либо меняй вызовы функции, либо обращайся к Виталию, чтобы он изменил эти файлы, либо включи опцию allow_call_time_pass_reference в php.ini или через .htaccess

Вне форума

#3 2011-03-08 15:17:33

legenda
Участник
Откуда: ua
Здесь с 2009-12-22
Сообщений: 2,151
Рейтинг :   39 

Re: PHP Warning: Call-time pass-by-reference has been deprecated

Wolverine, тоесть это ничего страшного или все-таки надо решать?

Вне форума

#4 2011-03-08 15:25:39

Wolverine
Модератор
Откуда: Домодедово
Здесь с 2008-10-13
Сообщений: 3,538
Рейтинг :   160 
Сайт

Re: PHP Warning: Call-time pass-by-reference has been deprecated

Криминального ничего нет

Вне форума

#5 2011-03-08 15:29:03

legenda
Участник
Откуда: ua
Здесь с 2009-12-22
Сообщений: 2,151
Рейтинг :   39 

Re: PHP Warning: Call-time pass-by-reference has been deprecated

Wolverine, может подкажеш где файлик php.ini искать?

Вне форума

#6 2011-03-08 15:34:33

mittus
Участник
Здесь с 2010-01-24
Сообщений: 155
Рейтинг :   

Re: PHP Warning: Call-time pass-by-reference has been deprecated

legenda, в htaccess найди строчку #php_flag allow_call_time_pass_reference on и раскомментируй ее убрав решетку.
Wolverine, а оно уже есть :D

Вне форума

#7 2011-03-08 15:44:53

legenda
Участник
Откуда: ua
Здесь с 2009-12-22
Сообщений: 2,151
Рейтинг :   39 

Re: PHP Warning: Call-time pass-by-reference has been deprecated

mittus пишет:

Wolverine, а оно уже есть :D

что именно?

Вне форума

Сейчас в этой теме пользователей: 0, гостей: 1
[Bot] ClaudeBot

Подвал форума

Под управлением FluxBB 1.5.11
Модифицировал Visman

[ Сгенерировано за 0.009 сек, 7 запросов выполнено - Использовано памяти: 531 Кбайт (Пик: 550.44 Кбайт) ]