Public bug reported: In certain PHP scripts, the opening < of <?php is matched with the first > in the code instead of the ending >, possibly because of assignment operators being treated like closing brackets. See the code below:
1 <?php 2 class ErrorInfo { 3 //Some code without less-than or greater-than signs 4 $errArray=array( 5 mbStringNotFound => 'The mbstring extension was not found', 6 //More code here... 7 ?> Note that the greater-than sign in the assignment( => ) on line 5 is matched to the opening on like 1, instead of to the closing ?> on line 7. I am on Ubuntu 11.10, x64, with Gedit 3.2.0-0ubuntu1 ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: gedit 3.2.0-0ubuntu1 ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4 Uname: Linux 3.0.0-12-generic x86_64 ApportVersion: 1.23-0ubuntu3 Architecture: amd64 Date: Tue Aug 21 11:06:22 2012 InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012) SourcePackage: gedit UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: gedit (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug oneiric running-unity -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit in Ubuntu. https://bugs.launchpad.net/bugs/1039581 Title: Gedit matching brackets highlighting incorrect in some PHP scripts Status in “gedit” package in Ubuntu: New Bug description: In certain PHP scripts, the opening < of <?php is matched with the first > in the code instead of the ending >, possibly because of assignment operators being treated like closing brackets. See the code below: 1 <?php 2 class ErrorInfo { 3 //Some code without less-than or greater-than signs 4 $errArray=array( 5 mbStringNotFound => 'The mbstring extension was not found', 6 //More code here... 7 ?> Note that the greater-than sign in the assignment( => ) on line 5 is matched to the opening on like 1, instead of to the closing ?> on line 7. I am on Ubuntu 11.10, x64, with Gedit 3.2.0-0ubuntu1 ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: gedit 3.2.0-0ubuntu1 ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4 Uname: Linux 3.0.0-12-generic x86_64 ApportVersion: 1.23-0ubuntu3 Architecture: amd64 Date: Tue Aug 21 11:06:22 2012 InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012) SourcePackage: gedit UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1039581/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp