Project

General

Profile

Actions

Bug #6563

closed

PHP7: PclZip: A non well formed numeric value encountered

Added by krileon over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
03 April 2017
Due date:
% Done:

100%

Estimated time:

Description

With PHP 7.1.1 the following notice is thrown.

Notice: A non well formed numeric value encountered in /srv/www/vhosts/mysite.ch/httpdocs/libraries/CBLib/CB/Legacy/PclZip.php on line 1881,

This is due to a string containing an integer being multiplied by an integer. Fix is to properly cast to int before multiplying.

https://www.joomlapolis.com/forum/153-professional-member-support/236335-updating-language-files-on-php-7-1-1-getting-error-notice#292710

This class probably needs to be updated entirely?

Actions #1

Updated by beat over 7 years ago

- Upgrading first is always a good idea (if PHP minimum requirements are met)
- A string containing an integer is ok, but most probably there are non-int chars inside, like a space, to throw such an error.

Actions #2

Updated by krileon about 7 years ago

  • Status changed from New to Closed
  • Assignee set to krileon
  • Target version changed from CB 2.2 to CB 2.1.4
  • % Done changed from 0 to 100

This was already fixed in commit ba0e149a

Actions

Also available in: Atom PDF