Edit report at https://bugs.php.net/bug.php?id=7701&edit=1
ID: 7701 Comment by: dinofly at planetemu dot net Reported by: fmoreira at imediata dot pt Summary: loads include files twice Status: Closed Type: Bug Package: IIS related Operating System: W2k IIS5 PHP Version: 4.0.3pl1 Block user comment: N Private report: N New Comment: Hi, I am experiencing the same issue on IIS 6 and PHP 5.2.5. This is not limited to the "include" or "include_once", as i was able to reproduce it with this simple script : <?php define('MY_CONSTANT', 1); exit; ?> This produces the following error : Notice: Constant MY_CONSTANT already defined in [...]\index.php on line 2 There is no auto_prepend nor auto_append file configured. Since it occurs on a client's platform, i am afraid that i can't change anything on this server nor show you the whole phpinfo as it is confidential, but here is the beginning : PHP Version 5.2.5 System Windows NT EUROSUGAR 5.2 build 3790 Build Date Nov 8 2007 23:18:08 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" Server API ISAPI Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\WINDOWS\php.ini PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* Hope this helps... Previous Comments: ------------------------------------------------------------------------ [2001-03-08 20:34:12] sni...@php.net No feedback. --Jani ------------------------------------------------------------------------ [2001-01-28 16:06:13] jmo...@php.net Can reproduce this on Win2k IIS 5.0, please upgrade to latest verison of PHP and report if it still doesnt work James ------------------------------------------------------------------------ [2001-01-28 15:55:55] jmo...@php.net lets actually assign this this time and see if I remember to do it ;) ------------------------------------------------------------------------ [2000-12-30 12:18:06] jmo...@php.net Ill try to recreate this one and get to the bottom of it. James ------------------------------------------------------------------------ [2000-11-08 17:21:55] fmoreira at imediata dot pt after trying include_once the same error ocurrs "Fatal error: Cannot redeclare imagens_carregar() in include/funcoes.php on line 18" imagens_carregar() is the first function in the included file ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=7701 -- Edit this bug report at https://bugs.php.net/bug.php?id=7701&edit=1