Fail to call function

2 views
Skip to first unread message

Đoàn Cao Nghĩa

unread,
Nov 15, 2009, 11:46:12 PM11/15/09
to gearman
Hi,
Here is my client.php

<?php

# create our client object
$gmclient= new GearmanClient();

# add the default server (localhost)
$gmclient->addServer();

# run reverse client in the background

$job_handle = $gmclient->doBackground("reverse", "this is a test");
$gmclient->setData("aaa");
if ($gmclient->returnCode() != GEARMAN_SUCCESS)
{
echo "bad return code\n";
exit;
}

echo "done!\n";

?>

as result, i have error : Fatal error: Call to undefined method
GearmanClient::setData() in /var/www/client.php on line 12.

could I install wrong some thing ? please help me resovel this !

Thanks
Nghia

Eric Day

unread,
Nov 16, 2009, 3:53:34 AM11/16/09
to gea...@googlegroups.com
Hi!

The setData method was renamed to setContext for consistency.

-Eric

Đoàn Cao Nghĩa

unread,
Nov 16, 2009, 4:43:23 AM11/16/09
to gearman
Thanks.
Reply all
Reply to author
Forward
0 new messages