开发者

Enable the "redeclare" for PHP5, with .htaccess or php.ini

serious problem with an angry client :(

i have an issue about "Cannot redeclare variable" etc. i had a website working on PHP4 then moved to PHP5 and i have this error:

Fatal error: Cannot redeclare CSQLAdmin::$functions in /blabla/lib/sqladmin.php on line 45

I tried to clear the second declaration at the file, and it fix this issue but then gives another errors. Obviously sth about php 5 is not accepting sth php 4 does...

I think i need to activate some php functions via .htaccess to make PHP5 to accept redeclaring, but how? or any setting at php.开发者_运维知识库ini.

Appreciate so much!!!!!!!


What value does $functions have? Could it be that you are simply declaring $functions() twice in the same file - something PHP4 quietly accepted, if I remember correctly?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜