get_resources can access object-controlled resources, such as a file stream for SplFileObject (see php/php-src#7920 ).
Consider recommending not using this function in production code and mentioning that this function gives access to resources that would not normally be accessible.