php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45931 session_start causes "The XML source file is unavailable for viewing" on IE.
Submitted: 2008-08-27 08:29 UTC Modified: 2008-08-28 21:12 UTC
From: 2simpletest at gmail dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 5.2.6 OS: Windows Server 2003 Enterprise
Private report: No CVE-ID: None
 [2008-08-27 08:29 UTC] 2simpletest at gmail dot com
Description:
------------
Have tried this in IE6 and IE7 - same problem happens, but doesn't happen in Firefox.  Basically, the script won't let you view source on a dynamically generated XML document if the script starts a session.  This in itself is not so bad, but it also makes Flex think it hasn't loaded a proper XML document, which is a much bigger problem for us.

The only thing different with this build of PHP from the default is the inclusion of the MySQL and GD2 libraries, we have added a path for the log, and the magic_quotes directive has been modified back and forth.

Hope this helps,

Reproduce code:
---------------
<?php
session_start();  //comment this line out and it works.
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
echo "<root>\n";
echo "\t<item>value</item>\n";
echo "</root>";
?>

Expected result:
----------------
You should see a short XML document displayed (which you will), but when you right click and view source it should let you actually see the source code (which it won't).

Actual result:
--------------
instead of showing source it prompts with a messagebox reading "The XML source file is unavailable for viewing".  The source is not displayed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-28 21:12 UTC] jani@php.net
Browser bugs are not PHP bugs. It's about the session stuff setting the cache-disabling headers. IE is notorious of misbehaving with those.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 10:01:28 2024 UTC