php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4804 virtual() mishbehaves when including ssi pages which in turn include php
Submitted: 2000-06-04 17:30 UTC Modified: 2000-06-09 04:57 UTC
From: valerio at caldera dot it Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 Release OS: linux 2.2.14 - i386
Private report: No CVE-ID: None
 [2000-06-04 17:30 UTC] valerio at caldera dot it
 I have encoutered a problem while using php and ssi pages together.
 If i have a (say) p1.shtml page with something like <!--#include
virtual="file.php"--> in it, and i include THAT page (p1) from another
 .shtml page, with <!--#include virtual..-->, it works perfectly. If i
  include that page (yes, p1.shtml :) from a php3 script with <?
virtual("p1.shtml") ?> , i get an empty response! Seems like that
ssi->ssi->php recursive inclusion works, and php->ssi->php not (using
the respective "include virtual" functions, obiously).
So is virtual() someway different from <!--#include virtual=""-->  ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-09 04:57 UTC] zeev at cvs dot php dot net
PHP is not reentrant, which is why you can't refer to PHP pages from virtual(), whether it's directly or indirectly (through SSI)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 15:01:27 2025 UTC