Author Topic: mpForm messages Methods with same name  (Read 256 times)

Offline dbs

  • Betatester
  • **
  • Posts: 7903
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
mpForm messages Methods with same name
« on: December 26, 2018, 05:25:43 PM »
Hello and happy christmas,

the upload function in mpForm 1.3.23 generates some messages (since PHP 7.0?):
Code: [Select]
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTTP_Upload_Error has a deprecated constructor in /modules/mpform/pear/Upload.php on line 58
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTTP_Upload has a deprecated constructor in /modules/mpform/pear/Upload.php on line 298
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; HTTP_Upload_File has a deprecated constructor in /modules/mpform/pear/Upload.php on line 526
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PEAR has a deprecated constructor in /modules/mpform/pear/PEAR.php on line 102
PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PEAR_Error has a deprecated constructor in /modules/mpform/pear/PEAR.php on line 826"

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 580
  • Gender: Male
    • meine Homepage
Re: mpForm messages Methods with same name
« Reply #1 on: December 27, 2018, 10:36:08 PM »
Hi Frank,

I have fixed this by updating the pear components included in the module in release 1.3.24.

Cheers, Martin

Offline dbs

  • Betatester
  • **
  • Posts: 7903
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: mpForm messages Methods with same name
« Reply #2 on: December 28, 2018, 08:12:10 AM »
Thanks Martin, it works.  (Y)
No messages, no problems.
The 1.3.24 is now in Add-ons Repo.

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 580
  • Gender: Male
    • meine Homepage
mpForm update
« Reply #3 on: January 15, 2019, 09:00:45 PM »
I have another update for mpForm which solves a problem when uploading multiple files with one upload field. The file names were not stored properly in the results table. Only the last one was stored there (in the submissions table and the notification mails everything was fine).

Offline dbs

  • Betatester
  • **
  • Posts: 7903
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: mpForm messages Methods with same name
« Reply #4 on: January 15, 2019, 11:25:38 PM »
Now in the Repo, thanks  (Y)

 

postern-length