Skip to content

Functionlist breaks with this small string for php files #5150

@TheiAndy

Description

@TheiAndy

Description of the Issue

I looked over the other Functionlist issues and didn't see this particular problem. I believe I've broken it down as much as possible:

Functionlist has an issue showing any functions inside classes when this string is present (and the functions are private, protected or public) in a php file:

$string = "\"{";

Steps to Reproduce the Issue

  1. Create a test.php file
  2. copy paste the following into it:
<?php
class test{
	protected function blah(){
		$string="\"{";
	}
}
?>
  1. Save the file, then look at the function list. Next, take out the word "protected" or comment out the string, save, and then the function list works again.

Expected Behavior

I was expecting it to show the functions in the file even with that string in the function. I can work around it by adding a chr(123) to any string that needs an open bracket (and is followed by an escaped double quotes), but it would be nice if I didn't have to do that.

Actual Behavior

No functions were shown in the list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions