-
Notifications
You must be signed in to change notification settings - Fork 750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ext/oci8 methodsynopses based on stubs #601
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a cursory look, this seems to be okay. I don't have any experience with OCI, and I don't have the time to check PHP 7 implementation regarding potential changes. Maybe @cjbj wants to have 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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cjbj, I think you need to rebase this PR onto HEAD of master (also update doc-base and phd if not already done).
Good call.
@@ -9,7 +9,7 @@ | |||
<refsect1 role="description"> | |||
&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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems OCICollection::assignElem wasn't updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, I think that must be because of the different capitalization (assignElem
vs assignelem
). :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created php/php-src#7405 to fix the inconsistency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That new PR doesn't seem to add the public modifier to OCICollection::assignElem ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
@@ -80,13 +86,12 @@ | |||
&reftitle.seealso; | |||
<para> | |||
<simplelist> | |||
<member><xref linkend="oci-lob.truncate" /></member> | |||
<member><xref linkend="oci-lob.truncate"/></member> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the prototype for Lob::truncate itself hasn't been updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The APIs for getBuffering and setBuffering don't seem to have been updated.
</methodsynopsis> | ||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think showing the default as 0 is helpful to readers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! I'll fix it in php-src as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Submitted php/php-src#7429
Can I get a (hopefully) final review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.