After some test, the problem seems related to libcouchbase and no the PHP SDK.
For the moment, you should not use positional parameter.
Anywhere i think its a best practice to use name parameter.
I’m working on a query builder for n1ql. It is essential to have positional parameter working for it. For the moment, I’m prefixing number with ‘a’ for a workaround.
Thank you for the information!
I would like to hear from someone in the cb team though.
Only if you explicitly bind it. There is simply no reason to use it if not needed. It will simply complicate things. Anyway, I think that is not related to this thread.
Positional parameter is there as a feature for a reason. I really would like to get it working.