nil-zhang / php-beanstalk

A php c extension beanstalkd client, multi-server support, high performance, using libbeanstalkclient.
145 stars 35 forks source link

weight must be a positive integer #1

Open mrahmadt opened 12 years ago

mrahmadt commented 12 years ago

Hi

I did the installation and everything went ok but the example seems not working

root@core1:/etc/php5/conf.d# php -m|grep be beanstalk

root@core1:/etc/php5/conf.d# php -v PHP 5.3.6-13ubuntu3.3 with Suhosin-Patch (cli) (built: Dec 13 2011 18:18:37) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

root@core1:/etc/php5/conf.d# cat /etc/issue Ubuntu 11.10 \n \l

iroot@core1:/etc/php5/conf.d# php test.php PHP Warning: Beanstalk::addserver(): weight must be a positive integer in /etc/php5/conf.d/test.php on line 5 PHP Warning: Beanstalk::addserver(): weight must be a positive integer in /etc/php5/conf.d/test.php on line 6 PHP Warning: BeanstalkPool::list_tubes(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 8 PHP Warning: BeanstalkPool::use(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 16 PHP Warning: BeanstalkPool::put(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 17 key0 value0 PHP Warning: BeanstalkPool::watch(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 20 PHP Warning: BeanstalkPool::reserve(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 21 PHP Warning: BeanstalkPool::bury(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 24 Segmentation fault

root@core1:/etc/php5/conf.d# php test.php PHP Warning: Beanstalk::addserver(): weight must be a positive integer in /etc/php5/conf.d/test.php on line 5 PHP Warning: Beanstalk::addserver(): weight must be a positive integer in /etc/php5/conf.d/test.php on line 6 PHP Warning: BeanstalkPool::list_tubes(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 8 PHP Warning: BeanstalkPool::use(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 16 PHP Warning: BeanstalkPool::put(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 17 key0 value0 PHP Warning: BeanstalkPool::watch(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 20 PHP Warning: BeanstalkPool::reserve(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 21 PHP Warning: BeanstalkPool::bury(): No servers added to beanstalk connection in /etc/php5/conf.d/test.php on line 24 Segmentation fault

Aimsam commented 12 years ago

you lost a parameter --wight $bsc->addserver("127.0.0.1", 11300, 1);