Closed xiaozhiwen closed 9 years ago
In php_zookeeper.c:334
static PHP_METHOD(Zookeeper, get) { ... //!! zoo_wget set length = -1 indicate that buffer is null, status = zoo_wget(i_obj->zk, path, (fci.size != 0) ? php_zk_watcher_marshal : NULL, cb_data, buffer, &length, &stat); //!! length = -1 buffer[length] = 0; ... //!! length=-1 for RETURN_STRINGL, suppose //!! if (length == -1) RETURN_NULL(); RETURN_STRINGL(buffer, length, 0); }
Hi,
I submitted pull #22 for this. It also fixes setting / creating null's.
Please close this issue!
In php_zookeeper.c:334