Skip to content

GearmanWorker::addFunction example throws warning #37

Description

@cracksalad

When running the example from the GearmanWorker::addFunction documentation, the following warning shows up:

PHP Warning:  reverse_cb(): Argument php/doc-en#2 ($count) must be passed by reference, value given in worker.php on line 16

Seems like the $context is not passed by reference.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions