Skip to content

spl_object_hash collisions #118

Closed
Closed
@wvanderstel

Description

@wvanderstel
Q A
Bug? yes
New Feature? no
Version 1.8.0 and higher

Behavior

The method "spl_object_hash" can issue the same hash for two different objects if one of the objects has been destroyed (i.e. garbage collector run).

This hash collision can cause a request to pass without actually adding the path.

See the notes for "spl_object_hash" in the PHP documentation: http://php.net/manual/en/function.spl-object-hash.php

Steps to Reproduce

Send multiple requests with the same HTTP client.

Possible Solutions

  1. Do not cache requests (as done in 1.70)
  2. Do not use 'spl_object_hash' for hashing objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions