-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fixes issue with type transformations #29353
Conversation
I have tested this item ✅ successfully on 4f1d9f5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29353. |
I moved this to the next version and have an annotation. With the new code we loose "+" sign for time and memory on output. I would suggest to precompile this values before adding this to the object and in the printf function. Or evaluate why and if we need this * / 1000 manipulation. |
Are you suggesting to change values stored in I can make the PR, just need to know for which branch. |
Anyways, this PR is fine for now. |
I have tested this item ✅ successfully on 4f1d9f5 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29353. |
RTC. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29353. |
Actually we could fix this here properly, also without changing data type. @jigius are you still around? |
@SharkyKZ I mean the text in the $buffer before this PR we had a + (plus) sign if the value is positive, after this change it's missing. but this doesn't touch the $marks array |
This doesn't change buffer output because it's formatted below with Anyways you might want to take a look at #30582 which solves this in a different way, also solving errors on PHP 8. |
Thanks |
Summary of Changes
Since PHP 7.{1-4} server's logs are polluted with notice messages
PHP Notice: A non well formed numeric value encountered in %ROOT%/libraries/src/Profiler/Profiler.php on line 126
.The problem is wrong type casting (from
string
tofloat
).This patch is resolving this.
Testing Instructions
Looking for mentioned notices into server's logs after any pages have being requested via http proto.
Attention: notice level of messages has to been allowed!
Expected result
Mentioned notices is not found.
Actual result
Mentioned notices is found.
Documentation Changes Required
None