okay, need to go to sleep, I keep screwing with this...
I changed the parameter to the API call to a integer (1) rather than a boolean (true) and now I'm getting a different set of data back that is actually correct.
Gives me something to go off of, I'll look at it more in the morning.
I've got no idea what you are referring to there.
I wrote the cgminer API, but yeah I need a little more information to make any sense of that.
Basically, when passing the command & parameter to the API from PHP, it seems to like an integer to be passed rather than a boolean. Something PHP might be doing odd on the write to the socket, who knows, some times there is some strange shit that pops up.
$command = 'summary';
$parameter= 1;
Rather than
$command = 'summary';
$parameter= true;
PHP will parse 1 as true (and 0 as false) unless explicitly defined...
ie:
if($foo == 1)() is the same as if($foo == true){} (also if($foo == '1'){} and if($foo == "1")() even though technically the 1 is a string in the last example, PHP doesn't really care), unless you specifically look for a boolean like so, if($foo === true){} or if(is_bool($foo) && $foo == true){}
When I'm passing it to the API socket as true, it seems to not like it for some reason, but it's fine with it as an integer,
someone on the CGMiner thread did bring up an interesting thing about SDCard read/writes and I have about 10 SDCards at the house, so I may clone the card and just check that. I'm at work now, if I survive the day with no sleep, I'll try a few things and post more info later today.