PHP 4.0 Bug #10134: Using Zend Optimiser: including by URL fails

From: Date: Tue, 03 Apr 2001 11:29:13 +0000
Subject: PHP 4.0 Bug #10134: Using Zend Optimiser: including by URL fails
Groups: php.dev 
Request: Send a blank email to php-dev+get-50669@lists.php.net to get a copy of this message
From: bobby.jack@wiley.co.uk Operating system: sparc-sun-solaris2.6 PHP version: 4.0.4pl1 PHP Bug Type: Reproduceable crash Bug description: Using Zend Optimiser: including by URL fails Zend Optimiser version 1.0.0 is installed. PHP running on Apache-1.3.19 Including a file with an absolute reference to a URL fails to load the file completely - only part of the file loads resulting in incomplete HTML source. Example: -- <?php include "http://www.example.com/foo.php"; ?> -- Example code attempting to be included: -- <TABLE border="1"><TR><TD>Hello World</TD></TR></TABLE> -- Example of PHP output (HTML source) when including this file: -- TABL -- As you can see, only a small portion of the file is actually included. Removing the optimiser from our PHP install solves the problem; the file is included correctly. This bug should be very easy to reproduce using the setup described here. allow_url_open has been set to 1. Please advise on either a workaround or when this bug is likely to be fixed; we are developing an intranet using PHP and this bug is quite an inconvenience. Thanks, - Bobby. -- Edit Bug report at: http://bugs.php.net/?id=10134&edit=1

« previous php.dev (#50669) next »