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])