#45931 [Opn->Bgs]: session_start causes "The XML source file is unavailable for viewing" on IE.
ID: 45931
Updated by: jani@php.net
Reported By: 2simpletest at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Windows Server 2003 Enterprise
PHP Version: 5.2.6
New Comment:
Browser bugs are not PHP bugs. It's about the session stuff setting the
cache-disabling headers. IE is notorious of misbehaving with those.
Previous Comments:
------------------------------------------------------------------------
[2008-08-27 08:29:13] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45931&edit=1
Thread (2 messages)