[PCBC-295] "PHP Warning: Invalid callback , no array or string given in CouchbaseNative on line 1075" in CouchbaseBucket->upsert Created: 24/Sep/14  Updated: 29/Sep/14

Status: Open
Project: Couchbase PHP client library
Component/s: library
Affects Version/s: 2.0.0
Fix Version/s: .next
Security Level: Public

Type: Bug Priority: Critical
Reporter: Artem Teleshev Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: debian, linux
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: php 5.5.17
couchbase ext 2.0.0 from http://pecl.php.net/package/couchbase
couchbase-server-enterprise_2.5.1_x86_64.deb


 Description   
$offers = [
  'key1' => 'val1',
  'key2' => 'val2',
  'key3' => 'val3',
];

$cb = new \CouchbaseCluster('127.0.0.1');
$db = $cb->openBucket('all_directions');
$db->upsert($offers); -> show PHP Warning
$db->upsert(array_keys($offers), $offers); -> show PHP Warning

CouchbaseBucket.class.php

public function upsert($ids, $val = NULL, $options = array()) {




[PCBC-294] Conflicts with XDebug Created: 20/Sep/14  Updated: 20/Sep/14

Status: Open
Project: Couchbase PHP client library
Component/s: library
Affects Version/s: 2.0.0
Fix Version/s: None
Security Level: Public

Type: Task Priority: Major
Reporter: Remi Collet Assignee: Brett Lawson
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
$ gdb php
(gdb) run -n -d zend_extension=xdebug.so -dextension=modules/couchbase.so --re couchbase
...
Program received signal SIGSEGV, Segmentation fault.
...
(gdb) bt
#0 0x00007fffed533a9e in xdebug_execute_internal (current_execute_data=0x7ffff7f78668, fci=0x0, return_value_used=0)
    at /usr/src/debug/php-pecl-xdebug-2.2.5/NTS/xdebug.c:1589
#1 0x000055555582c3c0 in zend_do_fcall_common_helper_SPEC (execute_data=<optimized out>) at /usr/src/debug/php-5.6.1RC1/Zend/zend_vm_execute.h:560
#2 0x00005555557c32d8 in execute_ex (execute_data=0x7ffff7f78668) at /usr/src/debug/php-5.6.1RC1/Zend/zend_vm_execute.h:363
#3 0x0000555555777db9 in dtrace_execute_ex (execute_data=<optimized out>) at /usr/src/debug/php-5.6.1RC1/Zend/zend_dtrace.c:73
#4 0x00007fffed532fcc in xdebug_execute_ex (execute_data=0x7ffff7f78668) at /usr/src/debug/php-pecl-xdebug-2.2.5/NTS/xdebug.c:1437
#5 0x000055555577b61a in zend_eval_stringl (
    str=0x7fffed318f10 "/**\n * Various constants used for flags, data-type encoding and decoding, etc...\n * throughout this SDK.\n *\n * @author Brett Lawson <brett19@gmail.com>\n */\n\n/** @internal */ define('COUCHBASE_VAL_MASK"..., str_len=<optimized out>, retval_ptr=retval_ptr@entry=0x0,
    string_name=string_name@entry=0x7fffed318e8b "CouchbaseNative") at /usr/src/debug/php-5.6.1RC1/Zend/zend_execute_API.c:1080
#6 0x000055555577b6f6 in zend_eval_string (str=<optimized out>, retval_ptr=retval_ptr@entry=0x0, string_name=string_name@entry=0x7fffed318e8b "CouchbaseNative")
    at /usr/src/debug/php-5.6.1RC1/Zend/zend_execute_API.c:1119
#7 0x00007fffed31497c in zm_activate_couchbase (type=<optimized out>, module_number=<optimized out>) at /tmp/couchbase-2.0.0/couchbase.c:63
#8 0x0000555555790060 in zend_activate_modules () at /usr/src/debug/php-5.6.1RC1/Zend/zend_API.c:2414
#9 0x00005555557265da in php_request_startup () at /usr/src/debug/php-5.6.1RC1/main/main.c:1672
#10 0x000055555582da05 in do_cli (argc=7, argv=0x555555b85880) at /usr/src/debug/php-5.6.1RC1/sapi/cli/php_cli.c:965
#11 0x0000555555611550 in main (argc=7, argv=0x555555b85880) at /usr/src/debug/php-5.6.1RC1/sapi/cli/php_cli.c:1378





[PCBC-24] deploying to download locations directly from CI Created: 12/Jan/12  Updated: 24/Apr/14

Status: Open
Project: Couchbase PHP client library
Component/s: None
Affects Version/s: None
Fix Version/s: .future
Security Level: Public

Type: Task Priority: Minor
Reporter: Matt Ingenthron Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
The idea here is that non-releases should automatically upload deploy to one location, and releases should automatically deploy to a different location.




[PCBC-296] errors not propagated when not all nodes are accessable for views Created: 25/Sep/14  Updated: 25/Sep/14

Status: Open
Project: Couchbase PHP client library
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: None
Security Level: Public

Type: Bug Priority: Minor
Reporter: Matt Ingenthron Assignee: Brett Lawson
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
From IRC conversation, when one node wasn't available via port 8092, errors weren't propagated back through the view method.

From the convo:

Does someone what is wrong if the getView return NULL in staid of expecting array? Marcus_ @ 10:44
It is really weird, if i run $result = $this->couchbase->view($document, $view, $optionList, $returnErrors); It sometimes returns NULL, if i time the function call then it says about "Took: 0.00014" if i do it again (same request) it takes about 0.03 seconds and does return the expected data 10:45
So it response really fast "null". On the server logs i do not see any information about the view request. (or i am searching the wrong logs) 10:46
ingenthr
are you changing the underlying data between Marcus_? ingenthr @ 10:46
mwuk_ [~mwuk@90.195.128.76] entered the room. 10:46
ingenthr
though it takes some effort to dig in there, the logs may give some info on the execution ingenthr @ 10:47
mrevell left the room (quit: Remote host closed the connection). 10:47
macpaddy
Marcus_: I know you mentioned before you only see this behavior from the SDK and not in the ui? Is that correct macpaddy @ 10:48
? 10:48
JMauss [~jrm@206.169.106.2] entered the room. 10:48
Marcus_
Yes indeed Marcus_ @ 10:49
mwuk left the room (quit: Ping timeout: 260 seconds). 10:49
mwuk_ is now known as mwuk 10:49
You have disconnected 10:49
You have connected 10:51
The topic for #couchbase is: Try 3.0 beta! couchbase.com/beta. Current EE release is 2.5.1, CE is 2.2.0, see: couchbase.com/download. See also #libcouchbase client library discussions. Get the source for all releases here: https://github.com/couchbase/manifest. 10:51
Topic for #couchbase set by ingenthr!~ingenthr@cpe-104-34-202-224.socal.res.rr.com at 19:59:31 on 07/29/14 10:51
mode (+v ingenthr) by ChanServ 10:51
Marcus_
It indeed is php Marcus_ @ 10:52
macpaddy
If you got a simple script turn on LCB logging. macpaddy @ 10:52
LCB = libcouchbase 10:53
 Marcus_
macpaddy: You found the solution, the webserver can not access 1 of the servers 8092 port Marcus_ @ 10:53
Thanks a lot 10:54
:) 10:54
 macpaddy
excellent, should have nailed that one a little earlier. macpaddy @ 10:54
Marcus_
Yea i failed here Marcus_ @ 10:55
macpaddy
No, the SDK should have given a useful error message back. macpaddy @ 10:56
i.e cannot open a connection to node X 10:56
 Marcus_
Yea that would have been nice right :) the hard part was the NULL response i can not do a lot with Marcus_ @ 10:56
ingenthr
even the errors was null? ingenthr @ 10:57
the good news is the new 2.0 PHP SDK should have much better error handling for you 10:57
(unless this was 2.0?) 10:58
 Marcus_
There was not error, the response of the view was null Marcus_ @ 10:58
Also there was no exception or warning. 10:58
No this was php 1.x (newest) 10:58
:) 10:58





Generated at Wed Oct 01 04:20:49 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.