-
Notifications
You must be signed in to change notification settings - Fork 768
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
ext/bcmath: Correctly modified an existing document #4163
Conversation
7416fdc
to
d0aea10
Compare
reference/bc/functions/bcmul.xml
Outdated
<refsect1 role="errors"> | ||
&reftitle.errors; | ||
<para> | ||
This function throws a <exceptionname>ValueError</exceptionname> in the following cases: | ||
<simplelist> | ||
<member><parameter>num1</parameter> or <parameter>num2</parameter> is not a well-formed BCMath numeric string</member> | ||
<member><parameter>scale</parameter> is outside the valid range</member> | ||
</simplelist> | ||
</para> | ||
</refsect1> |
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.
Considering how often this is repeated I would use XIncludes to avoid the repetition
fixed |
@SakiTakamachi I pushed a bunch of wording fixes and docs fixes which are existing issues, as I wanted to check locally that everything renders somewhat as expected. |
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.
Small nits, otherwise ok
Co-authored-by: Niels Dossche <[email protected]>
Hmm, the commit breaks |
The same happens with me (Suse Linux, libxml 2.10.3, PHP 8.4.0). It is not processing nested xincludes. I processed locally repeating the |
Hmm, from https://discourse.gnome.org/t/libxml2-2-11-0-released/15123:
Confused. |
Indeed, works (for me) with libxml2 2.11.9; is our CI running libxml2 2.11, since the nested includes have been processed properly?
Well, apparently it does for this repo. Still, I don't think we can require libxml2 2.11 (even php-src master still supports >= 2.9.4). |
I meant I could not build the pt_BR repo in Github. I've just downgraded to libxml2 2.9.14 to match the repo config, but I get the same errors. What we could do is a loop to redo xinclude() until it gets to zero includes in configure. |
Just a heads up. I'm doing a big change on The looping |
I tried a looping |
Why could we not? I don't see really an issue with the doc repo requiring a certain version of libxml, they fix (and break) stuff all the time so needing to support a whole range of versions is going to be impossible. |
By the way, my local version is 2.9.4, but for some reason there are no problems... |
Exactly what I said, the |
@Girgias, libxml2 2.11 is pretty new, so that might break builds for many users. Even Ubuntu 24.04 ships libxml2 2.9.14 by default. And you would have to ask @derickr (or someone else) to update the build machines. Might also be an issue for CHM building. |
It seems the issue is just present in libxml 2.10, if Saki is able to build with 2.9, soooo. |
From #4163 (comment):
Apparently, it sometimes works with libxml2 < 2.11, but sometimes it doesn't. |
I opened php/doc-base#194 , that patchs part the problem for translations (it's not related with recursive calls, but with failed XIncludes, that exacerbate the problem). It does not include looping over |
Included on doc-base PR 194 above both fixes: tor recursive XIncludes (all languages) and failing XIncludes (all translations). Let me know it this fixes the two separate problems one go. @SakiTakamachi @cmb69 @leonardolara |
Fixed and added exception behavior.
Also added a
<literal>
tag.