Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4580

PHP Outline broken by "<" (less than sign) character

    Details

    • Story Points:
      13

      Description

      The outline in the PHP editor is broken (i.e. outline is empty) when a "<" (less than sign) character is present between the opening/closing PHP tags.

      I'm sure I haven't tested all possible scenarios, but the issue definitely presents itself when the "<" is directly followed by one or more a-z/A-Z characters

      Examples

      The following code examples break the PHP outline

      <?php
       
      function test_func() {
      	$x = '<a' . 'b';
      }
       
      ?>
      

      <?php
      // <a'
      function test_func() {
      	$x = 'a' . 'b';
      }
       
      ?>
      

      Workarounds

      Here are the following workarounds that restored the PHP outline

      Remove "<" character

      <?php
       
      function test_func() {
      	$x = 'a' . 'b';
      }
       
      ?>
      

      Remove closing PHP tag

      <?php
       
      function test_func() {
      	$x = '<a' . 'b';
      }
      

      Separating "<" character and a-z character

      <?php
       
      function test_func() {
      	$x = '<' . 'a' . 'b';
      }
       
      ?>
      

      Version tested: 3.2.0.201203261335

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgibly Shalom Gibly
                Reporter:
                arch Arch
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration