PHP Tools gets thrown off by a $ as the last char in string

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

PHP Tools gets thrown off by a $ as the last char in string

Postby Disclosure » September 3rd, 2016, 7:43 pm

Was looking through some WP installation code and came across an issue where PHP Tools would highlight function names like get_post_meta() and such as unknown. Turns out there are parsing issue in the wordpress base files similar to this:

Clipboard Image.png


Basically, what is happening is that when there is a $ as the last char in a double quoted string the parser does not seem know how to close it. The example file was wp-includes/post.php
You do not have the required permissions to view the files attached to this post.
Disclosure
 
Posts: 29
Joined: September 21st, 2015, 6:37 pm

Re: PHP Tools gets thrown off by a $ as the last char in str

Postby Miloslav Beno » September 5th, 2016, 1:01 pm

Hello,

Thank you for reporting this!

We will get it fixed ;-)

In the 1.20 preview version there is completely re-implemented parser, so minor issues are to be expected until release.

Thanks for understanding.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: PHP Tools gets thrown off by a $ as the last char in str

Postby Disclosure » October 6th, 2016, 2:23 pm

Miloslav Beno wrote:Hello,

Thank you for reporting this!

We will get it fixed ;-)

In the 1.20 preview version there is completely re-implemented parser, so minor issues are to be expected until release.

Thanks for understanding.


Hi Miroslav,

I have update to the latest 1.20 but it still seems like the wordpress functions do not get recognized properly:

Clipboard Image.png


It seems to happen to wp code, the one that I have written is recognized. Try opening wp-admin/includes/post.php, the whole sidebar turns green from the function names not being recognized.

Clipboard Image.png
You do not have the required permissions to view the files attached to this post.
Disclosure
 
Posts: 29
Joined: September 21st, 2015, 6:37 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 18 guests

User Control Panel

Login

Who is online

In total there are 18 users online :: 0 registered, 0 hidden and 18 guests (based on users active over the past 5 minutes)
Most users ever online was 399 on April 19th, 2024, 11:49 pm

Users browsing this forum: No registered users and 18 guests