{"id":95,"date":"2009-09-24T09:17:57","date_gmt":"2009-09-24T16:17:57","guid":{"rendered":"http:\/\/www.dreness.com\/blog\/?p=95"},"modified":"2009-09-24T09:17:57","modified_gmt":"2009-09-24T16:17:57","slug":"php-5-3-short_open_tag-default-has-changed","status":"publish","type":"post","link":"https:\/\/dreness.com\/blog\/archives\/95","title":{"rendered":"php 5.3: short_open_tag default has changed!"},"content":{"rendered":"<p>Snow Leopard Server includes an upgrade of PHP to version 5.3. This version has a changed default for the &#8220;short_open_tag&#8221; option as compared to the version that shipped in Leopard server. The difference is that short_open_tag is now disabled by default, which means that the following will not work:<\/p>\n<pre>&lt;?\r\nphpinfo();\r\n?&gt;<\/pre>\n<p>The problem is the opening &lt;?, which is in &#8216;short&#8217; form. The long \/ normal form of the open tag would be &lt;?php. If you don&#8217;t feel like editing all your scripts, you can simply declare the following in your \/etc\/php.ini:<\/p>\n<pre>short_open_tag = On<\/pre>\n<p>To further illustrate the change, consider the following command results, produced on a Snow Leopard Server that was upgraded from Leopard:<\/p>\n<pre>bash-3.2# grep 'short_open' \/etc\/php*default*\r\nphp.ini.default:; short_open_tag\r\nphp.ini.default:short_open_tag = <strong>Off<\/strong>\r\nphp.ini.default-5.2-previous:short_open_tag = <strong>On<\/strong>\r\nphp.ini.server-default:; short_open_tag\r\nphp.ini.server-default:short_open_tag = <strong>Off<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Snow Leopard Server includes an upgrade of PHP to version 5.3. This version has a changed default for the &#8220;short_open_tag&#8221; option as compared to the version that shipped in Leopard server. The difference is that short_open_tag is now disabled by &hellip; <a href=\"https:\/\/dreness.com\/blog\/archives\/95\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-95","post","type-post","status-publish","format-standard","hentry","category-bitbucket"],"_links":{"self":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":5,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/posts\/95\/revisions\/100"}],"wp:attachment":[{"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/media?parent=95"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/categories?post=95"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dreness.com\/blog\/wp-json\/wp\/v2\/tags?post=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}