net_gearman
net_gearman copied to clipboard
Resource ID#17 used as offset, casting to integer (17)
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])
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.