net_gearman icon indicating copy to clipboard operation
net_gearman copied to clipboard

Resource ID#17 used as offset, casting to integer (17)

Open Jeffrey04 opened this issue 16 years ago • 1 comments

I have my script throwing exception for all errors and notices, and I have this error while working with Net_Gearman

Resource ID#17 used as offset, casting to integer (17)

To fix this, I cast all occurrence of a resource used as array key to integer in Net_Gearman_Client class (#169, #170, #173, #247) by following Net_Gearman_Connection class, i.e.

// before

!is_array(Net_Gearman_Connection::$waiting[$s])

// after

!is_array(Net_Gearman_Connection::$waiting[(int) $s])

Jeffrey04 avatar Dec 07 '09 06:12 Jeffrey04

I don't want to change the sources, but unbelievably this is happens till now ! At least with the version I'm using.

Now I'm suspection outdated sources.

DinoSane avatar Feb 16 '17 20:02 DinoSane