<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi Dawid,<div>thanks. I've managed to apply it, I've been having some issues with my local git copy.</div><div><br></div><div>It's already applied in libvirt-php master branch.</div>
<div><br></div>
<div>Sorry for the noise and thanks again!</div><div>Michal</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-19 0:05 GMT+02:00 Dawid Zamirski <span dir="ltr"><<a href="mailto:dzamirski@dattobackup.com" target="_blank">dzamirski@dattobackup.com</a>></span>:<div>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Wed, 2014-06-18 at 22:50 +0200, Michal Novotny wrote:<br>
> Hi Dawid,<br>
</div><div>> thanks for the information. Well, please rebase to the latest commit<br>
> of my master branch and resend, thanks a lot!<br>
><br>
><br>
> Michal<br>
><br>
<br>
</div>Ok, now I'm puzzled. I've rebased the patch from clean master and the<br>
diff ended up identical to the original one. To double check, I've also<br>
successfully re-applied original mbox file on a fresh git clone, like<br>
this:<br>
<br>
git clone git://<a href="http://libvirt.org/libvirt-php" target="_blank">libvirt.org/libvirt-php</a><br>
git am ~/\[php_PATCH\]_Fix_compiler_warnings_after_int_to_long_conversion.mbox<br>
Applying: Fix compiler warnings after int to long conversion<br>
<br>
It seems that my original patch was correctly generated against remote's<br>
master due to:<br>
<div><br>
git send-email --no-chain-reply-to --annotate origin/master<br>
<br>
</div>which means it was made against remote master branch, not my local copy<br>
that was "dirty".<br>
<br>
At this point, I'm not sure what else I can do on my end.<br>
<br>
Sorry for the noise with such a simple patch...<br>
<br>
Regards,<br>
Dawid<br>
<div><div><br>
<br>
><br>
> 2014-06-18 22:05 GMT+02:00 Dawid Zamirski <<a href="mailto:dzamirski@dattobackup.com" target="_blank">dzamirski@dattobackup.com</a>>:<br>
>         Ugh, now I know what happened - my local master branch has<br>
>         commits I<br>
>         have not sent pull requests for yet so it wasn't in 100% in<br>
>         sync with<br>
>         remote. Do you want me to resend the patch to the ML?<br>
><br>
>         On Wed, 2014-06-18 at 16:02 -0400, Dawid Zamirski wrote:<br>
>         > Hi Michal,<br>
>         ><br>
>         > I'm pretty sure I did git pull right before sending the<br>
>         patch. Here's<br>
>         > what I did exactly:<br>
>         ><br>
>         > On master branch:<br>
>         ><br>
>         > git pull<br>
>         > git checkout -b parse-param-fix origin/master<br>
>         > created original patch & commit<br>
>         > git format-patch -1<br>
>         > git send-email --no-chain-reply-to --annotate<br>
>         0001-Use-long-variable-type-for-zend_parse_parameters.patch<br>
>         ><br>
>         > then I've noticed the warnings (still on parse-param-fix<br>
>         branch)<br>
>         > create patch & commit<br>
>         > git fetch --all<br>
>         > git pull --rebase<br>
>         > git send-email --no-chain-reply-to --annotate origin/master<br>
>         ><br>
>         > I guess that before starting the waring fix patch I should<br>
>         have create a<br>
>         > new local branch:<br>
>         > git checkout master<br>
>         > git pull<br>
>         > git checkout -b warning-fix origin/master<br>
>         ><br>
>         > and then work from there.<br>
>         ><br>
>         > Regards,<br>
>         > Dawid<br>
>         ><br>
>         ><br>
>         > On Wed, 2014-06-18 at 21:28 +0200, Michal Novotny wrote:<br>
>         > > Hi Dawid,<br>
>         > ><br>
>         > ><br>
>         > > thanks for the patch, I'll apply it when I have time to do<br>
>         so.<br>
>         > > However, the patch is not critical as it's in the DPRINTF<br>
>         debug macro<br>
>         > > (for production environment you should disable the DEBUG<br>
>         macro).<br>
>         > ><br>
>         > ><br>
>         > > Also, please make sure you are you the latest git tree (by<br>
>         running git<br>
>         > > pull before writing the patch) as I'm having issues<br>
>         applying some of<br>
>         > > the patches cleanly.<br>
>         > ><br>
>         > ><br>
>         > > Thanks,<br>
>         > > Michal<br>
>         > ><br>
>         > ><br>
>         > > 2014-06-18 21:09 GMT+02:00 Dawid Zamirski<br>
>         <<a href="mailto:dzamirski@dattobackup.com" target="_blank">dzamirski@dattobackup.com</a>>:<br>
>         > >         The previous patch [1] caused compiler warnings<br>
>         after variable<br>
>         > >         types<br>
>         > >         were changed from int to long and this patch fixes<br>
>         this.<br>
>         > ><br>
>         > >         [1]<br>
>         > ><br>
>         <a href="https://www.redhat.com/archives/libvir-list/2014-June/msg00835.html" target="_blank">https://www.redhat.com/archives/libvir-list/2014-June/msg00835.html</a><br>
>         > >         ---<br>
>         > >          src/libvirt-php.c | 8 ++++----<br>
>         > >          1 file changed, 4 insertions(+), 4 deletions(-)<br>
>         > ><br>
>         > >         diff --git a/src/libvirt-php.c b/src/libvirt-php.c<br>
>         > >         index 224943d..6d6fa81 100644<br>
>         > >         --- a/src/libvirt-php.c<br>
>         > >         +++ b/src/libvirt-php.c<br>
>         > >         @@ -3928,7 +3928,7 @@<br>
>         > >         PHP_FUNCTION(libvirt_domain_send_pointer_event)<br>
>         > >                         RETURN_FALSE;<br>
>         > >                 }<br>
>         > ><br>
>         > >         -       DPRINTF("%s: x = %d, y = %d, clicked = %d,<br>
>         release = %<br>
>         > >         d, hostname = %s...\n", PHPFUNC, pos_x, pos_y,<br>
>         clicked,<br>
>         > >         release, hostname);<br>
>         > >         +       DPRINTF("%s: x = %d, y = %d, clicked = %d,<br>
>         release = %<br>
>         > >         d, hostname = %s...\n", PHPFUNC, (int) pos_x,<br>
>         (int) pos_y,<br>
>         > >         (int) clicked, release, hostname);<br>
>         > >                 ret = vnc_send_pointer_event(hostname,<br>
>         tmp, pos_x,<br>
>         > >         pos_y, clicked, release);<br>
>         > >                 if (ret == 0) {<br>
>         > >                         DPRINTF("%s: Pointer event result<br>
>         is %d\n",<br>
>         > >         PHPFUNC, ret);<br>
>         > >         @@ -4428,7 +4428,7 @@<br>
>         PHP_FUNCTION(libvirt_domain_new)<br>
>         > >                 numNets = i;<br>
>         > ><br>
>         > >                 snprintf(tmpname, sizeof(tmpname), "%<br>
>         s-install",<br>
>         > >         name);<br>
>         > >         -       DPRINTF("%s: Name is '%s', memMB is %d,<br>
>         maxmemMB is %d<br>
>         > >         \n", PHPFUNC, tmpname, memMB, maxmemMB);<br>
>         > >         +       DPRINTF("%s: Name is '%s', memMB is %d,<br>
>         maxmemMB is %d<br>
>         > >         \n", PHPFUNC, tmpname, (int) memMB, (int)<br>
>         maxmemMB);<br>
>         > >                 tmp = installation_get_xml(1,<br>
>         > >                                 conn->conn, tmpname,<br>
>         memMB, maxmemMB,<br>
>         > >         NULL /* arch */, NULL, vcpus, iso_image,<br>
>         > >                                 vmDisks, numDisks,<br>
>         vmNetworks,<br>
>         > >         numNets,<br>
>         > >         @@ -6272,7 +6272,7 @@<br>
>         > >         PHP_FUNCTION(libvirt_domain_snapshot_delete)<br>
>         > >                 GET_SNAPSHOT_FROM_ARGS("r|l",&zsnapshot,<br>
>         &flags);<br>
>         > ><br>
>         > >                 retval =<br>
>         virDomainSnapshotDelete(snapshot->snapshot,<br>
>         > >         flags);<br>
>         > >         -       DPRINTF("%s: virDomainSnapshotDelete(%p, %<br>
>         d) returned<br>
>         > >         %d\n", PHPFUNC, snapshot->snapshot, flags,<br>
>         retval);<br>
>         > >         +       DPRINTF("%s: virDomainSnapshotDelete(%p, %<br>
>         d) returned<br>
>         > >         %d\n", PHPFUNC, snapshot->snapshot, (int) flags,<br>
>         retval);<br>
>         > >                 if (retval == -1) RETURN_FALSE;<br>
>         > >                 RETURN_TRUE;<br>
>         > >          }<br>
>         > >         @@ -6772,7 +6772,7 @@<br>
>         > >         PHP_FUNCTION(libvirt_storagevolume_delete)<br>
>         > >                 GET_VOLUME_FROM_ARGS("r|<br>
>         l",&zvolume,&flags);<br>
>         > ><br>
>         > >                 retval =<br>
>         virStorageVolDelete(volume->volume, flags);<br>
>         > >         -       DPRINTF("%s: virStorageVolDelete(%p, %d)<br>
>         returned %d<br>
>         > >         \n", PHPFUNC, volume->volume, flags, retval);<br>
>         > >         +       DPRINTF("%s: virStorageVolDelete(%p, %d)<br>
>         returned %d<br>
>         > >         \n", PHPFUNC, volume->volume, (int) flags,<br>
>         retval);<br>
>         > >                  if (retval != 0) {<br>
>         > >                         set_error_if_unset("Cannot delete<br>
>         storage<br>
>         > >         volume" TSRMLS_CC);<br>
>         > >                         RETURN_FALSE;<br>
>         > >         --<br>
>         > >         1.9.3<br>
>         > ><br>
>         > >         --<br>
>         > >         libvir-list mailing list<br>
>         > >         <a href="mailto:libvir-list@redhat.com" target="_blank">libvir-list@redhat.com</a><br>
>         > ><br>
>         <a href="https://www.redhat.com/mailman/listinfo/libvir-list" target="_blank">https://www.redhat.com/mailman/listinfo/libvir-list</a><br>
>         > ><br>
>         > ><br>
>         ><br>
>         ><br>
><br>
><br>
><br>
><br>
><br>
<br>
<br>
</div></div></blockquote></div></div></div><br></div>
</div><br></div>