-
Notifications
You must be signed in to change notification settings - Fork 732
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 return values for floor()
function
#3007
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.
Please remove the changelogs changes, we do not document the behaviour of passing invalid types to functions as this was never standard.
reference/math/functions/cos.xml
Outdated
<refsect1 role="changelog"> | ||
&reftitle.changelog; | ||
<informaltable> | ||
<tgroup cols="2"> | ||
<thead> | ||
<row> | ||
<entry>&Version;</entry> | ||
<entry>&Description;</entry> | ||
</row> | ||
</thead> | ||
<tbody> | ||
<row> | ||
<entry>8.0.0</entry> | ||
<entry> | ||
<parameter>num</parameter> no longer accepts internal objects which support | ||
numeric conversion. Previous to this version, this function returns &false; | ||
in case of an error and an <constant>E_WARNING</constant> error is emitted. | ||
</entry> | ||
</row> | ||
</tbody> | ||
</tgroup> | ||
</informaltable> | ||
</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.
This is invalid, it never supported internal objects.
reference/math/functions/ceil.xml
Outdated
@@ -57,7 +57,8 @@ | |||
<entry>8.0.0</entry> | |||
<entry> | |||
<parameter>num</parameter> no longer accepts internal objects which support | |||
numeric conversion. | |||
numeric conversion. Previous to this version, this function returns &false; | |||
in case of an error and an <constant>E_WARNING</constant> error is emitted. |
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.
An E_WARNING is not always emitted, an E_NOTICE is emitted for objects see: https://3v4l.org/SGfsd a warning is only emitted for non-numeric strings as far as I can tell.
And other types such as arrays do not emit any diagnostic at all: https://3v4l.org/FCHmh
Moreover, I consider those to be ZPP/Type failures and something we do not document.
86f5732
to
97af202
Compare
floor()
function
Thanks for the feedback. |
Thank you! |
No description provided.