#317.Remove of dismissed pointers added to uninstall, added method to get all pointers from class.

#317.Remove of dismissed pointers added to uninstall, added method to get all pointers from class.
anonymous function was added only in php 5.3, but we support 5.2.4+ please replace with proper solution