PHP Tools gets thrown off by a $ as the last char in string
3 posts
• Page 1 of 1
PHP Tools gets thrown off by a $ as the last char in string
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:
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
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
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.
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. │ @miloslavbeno │ miloslav@devsense.com
-
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
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:
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.
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
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests