mirror of
https://github.com/php/pecl-networking-gearman.git
synced 2026-03-23 23:22:22 +01:00
29 lines
601 B
PHP
29 lines
601 B
PHP
<?php
|
|
/*
|
|
* Gearman PHP Extension
|
|
*
|
|
* Copyright (C) 2008 James M. Luedke <contact@jamesluedke.com>,
|
|
* Eric Day <eday@oddments.org>
|
|
* All rights reserved.
|
|
*
|
|
* Use and distribution licensed under the PHP license. See
|
|
* the LICENSE file in this directory for full text.
|
|
*/
|
|
|
|
/* create our object */
|
|
$gmclient= new GearmanClient();
|
|
|
|
/* add the default server */
|
|
$gmclient->addServer();
|
|
|
|
/* run reverse client */
|
|
$job_handle = $gmclient->doBackground("reverse", "this is a test");
|
|
|
|
if ($gmclient->returnCode() != GEARMAN_SUCCESS)
|
|
{
|
|
echo "bad return code\n";
|
|
exit;
|
|
}
|
|
exit;
|
|
?>
|