Skip to content

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

@Jeffrey04

Description

@Jeffrey04

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions