{"id":439371,"date":"2006-08-21T17:12:07","date_gmt":"2006-08-21T17:12:07","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/reporting-syntax-error\/"},"modified":"2016-08-18T21:50:29","modified_gmt":"2016-08-18T21:50:29","slug":"reporting-syntax-error","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/reporting-syntax-error\/","title":{"rendered":"reporting syntax error"},"content":{"rendered":"<p>hi all.<\/p>\n<p>i am in the process of writing a plugin.<br \/>\ni realize when i make a syntax error, nothing will be output and i have to check the apache log.<\/p>\n<p>here is the question:<br \/>\nhow can i change wp so that it will report syntax error to client?<br \/>\nlike in normal php&#8230; if u do<br \/>\n&lt;? invalid syntax&#8217; (); ?&gt;<br \/>\nthe brwoser will tell u that u have made a syntax error.<br \/>\nhow can i make wp behaves like regular php<\/p>\n","protected":false},"template":"","class_list":["post-439371","topic","type-topic","status-closed","hentry","topic-tag-php","topic-tag-reporting"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/439371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/439371\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=439371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}