I wasted my time because of mistake in code - not substr
but subsrt
- why Eclipse not highlight mistakes like this?
I have installed PDT:
PDT haven't static code analysis. PDT-Eg core plugin have now only initial support for classes and unused variables.
As a workaround (still no warnings in code), you can enable internal function highlighting (PHP/Editor/Syntax Coloring).