Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

short_open_tag: Unlisted Requirement, or Bug?

Go to End

3 Posts   1785 Views


Community Member, 1 Post

15 May 2007 at 3:38pm

Edited: 15/05/2007 4:43pm

I was helping a client with SilverStripe, version 2.0.1, and found it requires "short_open_tag" to be set to "On" in the PHP configuration, i.e., php.ini; Is this a bug or just an unlisted requirement?

From a brief search, it appears short tags are not used in every SilverStripe PHP file, but enough to cause the script to not install and function.

From what I know and have read, it's recommended and better to use full (PHP) open tags instead of short open tags.

Full open tag: <?php
Short open tag: <?


Administrator, 690 Posts

15 May 2007 at 9:40pm

Yeah, it's a bug. We originally wrote the software with short tags, then converted the site to use long tags, to widen the installability of the software.

Obviously we've missed a few files ;-)


Administrator, 690 Posts

15 May 2007 at 10:06pm

Okay, I've fixed this and committed it to the stable branch. It will appear in the next nightly build, and in v2.0.2