php.net |  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
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: jonsmirl at mediaone dot net
New email:
PHP Version: OS:

 

 [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'?>
<procedure><?php
$db = odbc_connect("ASASample", "dba", "sql"); 
$recs = odbc_exec($db, "sp_helptext " . $procedure);
while (odbc_fetch_into($recs, &$rarr))
	printf("%s\n", $rarr[0]);	 
odbc_free_result($recs);	
odbc_close($db);
?></procedure>

Patches

Pull Requests

History

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
problem?

(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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC