无法重新声明sanitize()错误

时间:2011-12-16 14:08:58

标签: php

我在nginx日志中有以下错误:

2011/12/16 13:52:30 [error] 7490#0: *1000 FastCGI sent in stderr: "PHP Fatal error:  Cannot redeclare sanitize() (previously declared in /usr/share/www/includes/class_downloads.php:4) in 
    /usr/share/www/includes/class_downloads.php on line 17" while reading response header from upstream, client: 192.0.0.1, server: localhost, request: 
"GET /aaf104/fullmetal-alchemist-brotherhood-video22/index.html HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "www.example.com"

我的所有网站都显示相同的错误:

Fatal error: Cannot redeclare sanitize() (previously declared in 
/usr/share/www/includes/class_downloads.php:4) in 
/usr/share/www/includes/class_downloads.php on line 17

配置:

Ubuntu 10.04.3 LTS,nginx / 0.7.65,PHP 5.3.5-1ubuntu7.2ppa1~lucid(fpm-fcgi)

nginx config

fastcgi config

site config

有人可以帮我这个吗?我知道你不会检查所有的配置,但我会很感激任何提示来克服这个问题。

1 个答案:

答案 0 :(得分:0)

错误消息是明确的。您的代码中有一个“sanitize()”函数出现多次。首先是/usr/share/www/includes/class_downloads.php的第4行,然后是同一文件的第17行。

PHP函数只能在代码流中出现一次。

相关问题