| Summary: | Enable/disable short tags | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Jorrit Schippers <eclipsebugs> | ||||
| Component: | PDT | Assignee: | PHP UI <php.ui-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | assid, eric.caron, euthanasia_waltz, ganoro, ian, jostick, karl, moses.lecce, moshe, s.barnett.cormack, silviya, spektom, vadim.p | ||||
| Version: | unspecified | Keywords: | helpwanted | ||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jorrit Schippers
This is definitly something needed as it triggers an error on things like this $xmlstr = <<<XML <?xml version='1.0' standalone='no'?> ... ... XML; The ability to tell it that shorttags is not enabled would be very useful. We need something for this, perhaps make it dependant on a php.ini which is customizable? This Bug makes it impossible to I'd like to push this bug back to top. PHP is a web programming language and therfore pdt should accept <?xml without mark it as syntax error. Workarounds as described in https://bugs.eclipse.org/bugs/show_bug.cgi?id=195162 don't solve that problem and make the code invalid. That's why I ask you to solve it. (BTW: This problem exists since 2007) Thanks. ok, let's try pushing this issue up, asking also from the community to contribute a fix... I see no errors produced from this piece of code (in 2.1.0RC2): <? $xmlstr = <<<XML <?xml version='1.0' standalone='no'?> ... ... XML; echo "Hello"; ?> Probably this bug was fixed already. Created attachment 137759 [details]
Sample HTML file that should be valid
This was marked resolved, but IMO should not have been.
To me, the basic issue is that PDT should not mark files that are valid PHP and valid XHTML as invalid. But it does because it throws and error when it encounters a legitimate XML prolog. This is an issue because not all of our users are in eclipse - some use XML editors that want this XML prolog.
A sample file is attached.
this was not resolved. a simple case will be a php file including this code <?xml version='1.0' standalone='no'?> Moving it to 2.2.0M1. fixed in head and branch The option is available in Project -> Properties -> PHP Interpreter Enable Project Specific Settings -> disable Use Short tags and rebuild. Verified on 2.2.1.v20100822 |