Ad Widget

Collapse

Need help with API

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • horakmar
    Junior Member
    • Aug 2010
    • 8

    #31
    Instances

    Hello.
    I ran into the same problem. After some hours of investigating I think that the problem is in PHP object/instances. It seems like the compiler doesn't know function self::$instance->__login(), because it arises at runtime by self::__init() (both in function login).

    Also if I run ZabbixAPI::debugEnabled(TRUE), that debug state doesn't stay set (following functions have self::$instance->debug undefined).

    I'm sorry, I don't understand OOP in PHP much, so I'm only guessing.

    Martin

    Comment

    Working...