Hello,
I've found a little "bug" with global and PHP
Reproduce sequence:
$ mkdir test
$ echo '<?php
class FooBar {}
$xFooBar = new FooBar;
$yFooBar = new FooBar;
$FooBar = "test";' > test/FooBar.php
$ cd test/
$ gtags
$ global -rx FooBar
FooBar 4 FooBar.php $xFooBar = new FooBar;
FooBar 5 FooBar.php $yFooBar = new FooBar;
FooBar 7 FooBar.php $FooBar = "test";
$ global -rx yFooBar
$
To me:
FooBar 7 FooBar.php $FooBar = "test";
Should not be a reference to the FooBar object.
When doing:
$ global -rx yFooBar
The behaviour looks correct by not returning any line.
Regards,
--
Patrick Allaert
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global