I am running 1.8.4 in production, but I really wanted to get the API features to create new proxies in code, which I found in 1.9.5alpha. I ported the class.cproxy.php over, and found a few problems with variables being treated as object properties when they are called statically (via call_user_func, am I using the right terminology?).
I was able to get everything working as long as I import $USER_DETAILS from global and and set the self::$userData['type'] to match whats in the global USER_DETAILS. This seems to be playing with security settings that I know nothing about, so I figured I'd post here for feedback.
So I am wondering if USER_DETAILS is going away? Or if this was just a problem because its an alpha version. Does my workaround seem ok? Am I going to run into problems because my Zabbix back end is really 1.8.4, but I'm kluding in 1.9.5a code?
Please feel free to send me to the proper forum if this isn't it.. thanks!
I was able to get everything working as long as I import $USER_DETAILS from global and and set the self::$userData['type'] to match whats in the global USER_DETAILS. This seems to be playing with security settings that I know nothing about, so I figured I'd post here for feedback.
So I am wondering if USER_DETAILS is going away? Or if this was just a problem because its an alpha version. Does my workaround seem ok? Am I going to run into problems because my Zabbix back end is really 1.8.4, but I'm kluding in 1.9.5a code?
Please feel free to send me to the proper forum if this isn't it.. thanks!
Comment