View Full Version : [FIXED-204][3.0+] Source of Ext can't be included using PHP.

28 Aug 2009, 5:33 PM
At apps/www/deploy/ext-3.0+/source/data/XmlWriter.js on line 106 (revision 5237) you can see:

tpl: '<tpl for="."><?xml version="{version}" encoding="{encoding}"?><tpl if="documentRoot"><{documentRoot}><tpl for="baseParams"><tpl for="."><{name}>{value}</{name}</tpl></tpl></tpl><tpl if="records.length&gt;1"><{root}></tpl><tpl for="records"><{parent.record}><tpl for="."><{name}>{value}</{name}></tpl></{parent.record}></tpl><tpl if="records.length&gt;1"></{root}></tpl><tpl if="documentRoot"></{documentRoot}></tpl></tpl>',

If you include this file using php, and if you have short tags enabled, as this forum parser, php will try to evaluate the string '<?xml version="{version}" encoding="{encoding}"?>'.

Can you break this string in the form of ..<'+'?.. and ..?'+'>.. ?

P.D. i havent short tags enabled :D

29 Aug 2009, 5:55 AM
If this is just an issue to view the source file in the browser I don't know that the change is justified. Was that your point?

30 Aug 2009, 4:06 AM

we could load the source using:

<script type="text/javascript" src="ext-base.js"></script>
<script type="text/javascript" src="ext-all.js"></script>

or we could use:

<script type="text/javascript" src="ext.php"></script>

but second way is broken now.

30 Aug 2009, 4:18 AM
Ok, marked as OPEN.

30 Aug 2009, 6:10 PM
Fix applied to svn in rev #5239 for patch release 3.0.2.