Menu

#2923 Crash in SVN 7181 by starting phpgedview: function redefinition

v4.3.1
closed-fixed
php7.2 (1)
5
2022-02-13
2017-12-16
No

Hello,

With the last php (php7-7.2.0-1.1.x86_64) I receive at start a fatal error
"Fatal error: Cannot redeclare imagecreatefrombmp() in /srv/www/htdocs/gedview/includes/functions/functions_mediadb.php on line 2190"

I did a grep for this function but it seems only present in this file. Maybe a double call of the script?

Many thanks in advance
Philippe Condé
°

Discussion

  • Philippe Condé

    Philippe Condé - 2017-12-16

    Hello,

    I fou d a workaround for the 2 functions giving problem . I attach here the function.
    Workaround have marking code "PCE"

    Regards
    Philippe Condé

     
  • Gerry Kroll

    Gerry Kroll - 2017-12-16

    You are correct. With the implementation of PHP 7.2, the BMP image handling functions are built-in, and the method implemented in PhpGedView is no longer necessary.

    I'll update the SVN repository accordingly.

     
  • Gerry Kroll

    Gerry Kroll - 2017-12-16
    • labels: php7 --> php7, php7.2
    • status: open --> open-fixed
    • assigned_to: Gerry Kroll
     
  • Gerry Kroll

    Gerry Kroll - 2017-12-16

    SVN 7185 fixes this problem by only declaring the BMP functions when they're not built into the PHP system.

     
  • Gerry Kroll

    Gerry Kroll - 2017-12-16
    • labels: php7, php7.2 --> php7.2
     
  • Gerry Kroll

    Gerry Kroll - 2022-02-13
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.