nil-zhang/php-beanstalk — Issue #1: weight must be a positive integer
Author: mrahmadt
Created: 2011-12-30 11:01:44+00:00
State: open

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