Edit report at http://bugs.php.net/bug.php?id=48260&edit=1
ID: 48260 Comment by: cveilleux at neopeak dot com Reported by: p dot tipper at lancaster dot ac dot uk Summary: Size of PHP file affects behaviour of virtual() or #include virtual Status: Open Type: Bug Package: Apache2 related Operating System: Debian GNU/Linux 5.0.1 PHP Version: 5.*, 6CVS (2009-05-13) New Comment: I can confirm this bug under PHP 5.2.10 using mod_php under apache (Ubuntu 9.10 and CentOS 5.4). When using "include virtual" SSI or the virtual() function from a PHP script to another PHP script in order to integrate two different applications in the same page, it would sometimes work, and other times not work for no apparent reason. Switching to PHP in CGI mode would fix the problem, although that is not always a viable option. In my case the problem this caused was not related to basedir restrictions but it all sorts of other problems like: - current work dir not being set properly in the included script, causing all include() call to fail. - session_start in the included script complaining session is already started (by the parent script).. This seems to indicate something is really wrong under the hood.. Previous Comments: ------------------------------------------------------------------------ [2009-05-14 15:56:16] p dot tipper at lancaster dot ac dot uk zlib.output_compression is off, and I've just tested it with it switched on and this bug is still reproducable. ------------------------------------------------------------------------ [2009-05-14 15:23:55] j...@php.net Do you have zlib_output_compression php.ini directive set to "on"? If so, try turn it off. ------------------------------------------------------------------------ [2009-05-14 15:18:55] p dot tipper at lancaster dot ac dot uk I've done some more exact testing which is available in the .tar.gz file in the original bug report. http://red-velvet.lancs.ac.uk:8080/~tipper/include/base/working.php works fine and is 8020 bytes. http://red-velvet.lancs.ac.uk:8080/~tipper/include/base/broken.php displays the broken behaviour and is 8021 bytes. ------------------------------------------------------------------------ [2009-05-14 13:52:22] j...@php.net What is the size (in bytes) of the file where this problem exists with? ------------------------------------------------------------------------ [2009-05-13 22:02:47] p dot tipper at lancaster dot ac dot uk I initially saw it in PHP 5.2.5 but as requested by your bug tracking system I've tested it on "5.3CVS-2009-05-13 (snap)" as well (and thats the version the URLs in the bug report link to). ------------------------------------------------------------------------ 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 http://bugs.php.net/bug.php?id=48260 -- Edit this bug report at http://bugs.php.net/bug.php?id=48260&edit=1