php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10134 Using Zend Optimiser: including by URL fails
Submitted: 2001-04-03 07:29 UTC Modified: 2001-04-03 09:18 UTC
From: bobby dot jack at wiley dot co dot uk Assigned:
Status: Not a bug Package: Reproducible Crash
PHP Version: 4.0.4pl1 OS: sparc-sun-solaris2.6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bobby dot jack at wiley dot co dot uk
New email:
PHP Version: OS:

 

 [2001-04-03 07:29 UTC] bobby dot jack at wiley dot co dot uk
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-03 09:18 UTC] sniper@php.net
Report these bugs to optimizer-bugs@zend.com with info found
on page:
http://www.zend.com/store/products/optimizer-troubleshooting.php

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 15:01:30 2025 UTC