|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1172 Generates parse error
Submitted: 1999-02-21 13:27 UTC Modified: 1999-02-21 15:34 UTC
From: jonsmirl at mediaone dot net Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Latest CVS (21/02/1999) OS: Win95
Private report: No CVE-ID: None
 [1999-02-21 13:27 UTC] jonsmirl at mediaone dot net
The <?xml tag generates a parse error. Shouldn't non-<?php PIs just be copied to output like HTML tags? This works ok if you print() the xml PI.

<?php header("Content-Type: text/xml"); ?>
<?xml version='1.0'?>
$db = odbc_connect("ASASample", "dba", "sql"); 
$recs = odbc_exec($db, "sp_helptext " . $procedure);
while (odbc_fetch_into($recs, &$rarr))
	printf("%s\n", $rarr[0]);	 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-02-21 15:34 UTC] jim
You will get this error if short_tags are enabled,
but should not if they are disabled. Is this the

(You can disable them in the php3.ini file. See the
php3-ini.dist file for details.)


This was indeed the problem.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Oct 01 09:01:24 2023 UTC