Review main Merged

28586[BUGFIX] Don't access property if subject is scalar

Helmut Hummel CR +2 V +2 Easy +1 −1 updated 03/24/14, 16:36

Commit message

Trying to access a property if the subject is
a string, causes the class loader to be triggered
as is_callable is invoked.

We can avoid that by checking if the subject
is an object or array. We can neglect that
is_scalar also returns false for resource types
as this will not really happen in practice.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1