Update ext/oci8 methodsynopses based on stubs#601
Conversation
Girgias
left a comment
There was a problem hiding this comment.
Looks mostly good to me other than a couple of changes, but I haven't really followed all the stub changes discussions.
|
@Girgias Can you please take another look? |
|
Gotta love the PHP community for being active on this! Thanks all. Visually it seemed OK but my long-working build command Hints anyone? |
|
@cjbj, I think you need to rebase this PR onto HEAD of master (also update doc-base and phd if not already done). |
| &reftitle.description; | ||
| <methodsynopsis role="oop"> | ||
| <type>bool</type><methodname>OCICollection::assign</methodname> | ||
| <modifier>public</modifier> <type>bool</type><methodname>OCICollection::assign</methodname> |
There was a problem hiding this comment.
It seems OCICollection::assignElem wasn't updated.
There was a problem hiding this comment.
Ohh, I think that must be because of the different capitalization (assignElem vs assignelem). :/
There was a problem hiding this comment.
I created php/php-src#7405 to fix the inconsistency
There was a problem hiding this comment.
That new PR doesn't seem to add the public modifier to OCICollection::assignElem ?
There was a problem hiding this comment.
No, the new PR is unrelated from <modifier>public</modifier>. It is only added because the script always generates the access modifier for methods, while OCICollection::assign() didn't have one previously.
There was a problem hiding this comment.
Yay for tidy-ups! Will you update this (601) PR with <modifier> for OCICollection::assignElem, Lob::truncate, getBuffering and setBuffering, and writeTemporary?
There was a problem hiding this comment.
Yes, I've just pushed all the changes. In the meanwhile, I found out why OCILob::truncate() wasn't autogenerated: c3978de#diff-1ef7c5160d41789c5faf14de56219ac73b3039795ebbac6da6ebaa716cdd8d21L12 :D It's fixed now.
| <para> | ||
| <simplelist> | ||
| <member><xref linkend="oci-lob.truncate" /></member> | ||
| <member><xref linkend="oci-lob.truncate"/></member> |
There was a problem hiding this comment.
It looks like the prototype for Lob::truncate itself hasn't been updated.
There was a problem hiding this comment.
What do you miss from Lob::truncate()? It looks good for me.
| <member><xref linkend="oci-lob.getbuffering" /></member> | ||
| <member><xref linkend="oci-lob.setbuffering" /></member> | ||
| <member><xref linkend="oci-lob.getbuffering"/></member> | ||
| <member><xref linkend="oci-lob.setbuffering"/></member> |
There was a problem hiding this comment.
The APIs for getBuffering and setBuffering don't seem to have been updated.
| <para> | ||
| Closes descriptor of LOB or FILE. This function should be used only with | ||
| <xref linkend="oci-lob.writetemporary" />. | ||
| <xref linkend="oci-lob.writetemporary"/>. |
There was a problem hiding this comment.
The API for writeTemporary doesn't seem to have been updated.
| <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer><constant>OCI_FETCHSTATEMENT_BY_COLUMN</constant> + <constant>OCI_ASSOC</constant></initializer></methodparam> | ||
| <methodparam choice="opt"><type>int</type><parameter>offset</parameter><initializer>0</initializer></methodparam> | ||
| <methodparam choice="opt"><type>int</type><parameter>limit</parameter><initializer>-1</initializer></methodparam> | ||
| <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam> |
There was a problem hiding this comment.
I don't think showing the default as 0 is helpful to readers
There was a problem hiding this comment.
Nice catch! I'll fix it in php-src as well
|
Can I get a (hopefully) final review? |
Girgias
left a comment
There was a problem hiding this comment.
Other than the minor nit in how the changelog is written (which well we're already inconsistent about so not that important), LGTM but then I don't know anything about OCI8
fe73de6 to
964cbcd
Compare
|
I rebased + added a new commit (964cbcd) which fixes a few minor things (+ an overloaded signature). I'd love if I could merge this PR soon, after 4 months. :/ |
|
Thank you, @Girgias ! |
|
Thanks everyone! |
No description provided.