'Now I analyze if this is really a PHP eggs thing, or simply a response
that changes a lot on each request. Before, I had something like this:
if relative_distance(original_response.get_body(),
response.get_body()) < 0.1:
But I got some reports about false positives with this approach, so now
I\'m changing it to something a little bit more specific.'

def _are_php_eggs(self, query_results):

    images = 0
    not_images = 0
    for query_result in query_results:
        response = query_result.http_response
        (content_type, _) = response.get_headers().iget('content-type', '')
        if ('image' in content_type):
            images += 1
        else:
            not_images += 1
    if ((images >= 2) and (not_images == 1)):
        for query_result in query_results:
            desc = 'The    PHP    framework    running    on    the    remote    server    has    a    "%s"    easter    egg,    access    to    the    PHP    egg    is    possible    through    the    URL:    "%s".'
            desc %= (query_result.egg_desc, query_result.egg_URL)
            i = Info('PHP    Egg', desc, query_result.http_response.id, self.get_name())
            i.set_url(query_result.egg_URL)
            kb.kb.append(self, 'eggs', i)
            om.out.information(i.get_desc())
        return True
    return False
