Ticket #268 (closed Task: fixed)

Opened 12 months ago

Last modified 12 months ago

Object of class Foo could not be converted to int....

Reported by: dynom Owned by: Shadowhand
Priority: major Milestone: 2.1
Component: Core Version: SVN HEAD
Keywords: event hook object convert integer Cc:

Description

More information:
http://forum.kohanaphp.com/index.php/topic,369.0.html[[BR]] http://bugs.php.net/bug.php?id=43545[[BR]]

Change loose checking to strict checking when working with objects. A working fix for system/core/Event.php:44 would be:

<?php

// change
if ( ! in_array($callback, self::$events[$name]))

// to
if ( ! in_array($callback, self::$events[$name], TRUE))

?>

Change History

Changed 12 months ago by dynom

  • priority changed from minor to major

Changed 12 months ago by Shadowhand

  • keywords event hook object convert integer added; event,hook,object,convert,integer,int removed
  • owner set to Shadowhand
  • status changed from new to assigned

Changed 12 months ago by Shadowhand

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r1482.

Note: See TracTickets for help on using tickets.