Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » short_open_tag: Unlisted Requirement, or Bug?

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

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

Page: 1
Go to End
Author Topic: 1550 Views
  • Root
    Avatar
    Community Member
    1 Post

    short_open_tag: Unlisted Requirement, or Bug? Link to this post

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

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: short_open_tag: Unlisted Requirement, or Bug? Link to this post

    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 ;-)

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: short_open_tag: Unlisted Requirement, or Bug? Link to this post

    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

    1550 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.