Fixed bug #923: Crashes in ZTS when debugging static properties of internal classes.
Fixed invalid memory read in case the filename is longer than what we're trying to match against.
Make sure the correct member is initialised.
Merged pull request #67