? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
22 Aug 2016

Summary of Changes

On PHP 7.1 a A non-numeric value encountered warning is raised on these lines. The values are used for arithmetic operations so need to be numeric types first.

The issue is caused because JProfiler::mark() creates mark objects that prefix the time and memory values with a "+" or "-" symbol and the "+" symbol isn't allowed with numeric types. Since these aren't explicitly typecasted before the arithmetic operation (either by us or by PHP), it seems a change in 7.1 causes these new warnings.

Testing Instructions

Enable debug mode and the debug plugin. It should still work with correct output pre- and post- patch. If running a PHP 7.1 environment, you should be able to confirm the warning goes away.

Documentation Changes Required

N/A

avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2016
Category Plugins Front End
avatar mbabker mbabker - open - 22 Aug 2016
avatar mbabker mbabker - change - 22 Aug 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2016
Labels Added: ?
avatar wilsonge wilsonge - close - 22 Aug 2016
avatar wilsonge wilsonge - merge - 22 Aug 2016
avatar wilsonge wilsonge - change - 22 Aug 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-08-22 22:30:08
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 22 Aug 2016

Merged on review

Add a Comment

Login with GitHub to post a comment