My problem is the following. I'm getting hex values and converting to INT gives me problems.
I'm actually using the template for the general san fibre alliance mibs. ( http://forums.cacti.net/viewtopic.php?t ... ght=mcdata )
The issue turns out to be the values are 64bit values in hex. The largest INT value in php is not 64bit compliant and hence my problem.
I actually created a perl script to convert the value but I'm wondering if anyone has had this problem and come up with a more elegant solution.
-Pierre
64bit hex count converting to int causes php problem
Moderators: Developers, Moderators
-
- Posts: 28
- Joined: Fri Nov 16, 2007 1:55 pm
- Location: Stuttgart, Germany
Re: 64bit hex count converting to int causes php problem
Hello,
Best regards,
Frank
had the same problem, see http://bugs.cacti.net/view.php?id=1587 for a quick'n'dirty fix.pjm wrote:My problem is the following. I'm getting hex values and converting to INT gives me problems.
I'm actually using the template for the general san fibre alliance mibs. ( http://forums.cacti.net/viewtopic.php?t ... ght=mcdata )
The issue turns out to be the values are 64bit values in hex. The largest INT value in php is not 64bit compliant and hence my problem.
I actually created a perl script to convert the value but I'm wondering if anyone has had this problem and come up with a more elegant solution.
-Pierre
Best regards,
Frank
Who is online
Users browsing this forum: No registered users and 4 guests