Crash in SVN 7181 by starting phpgedview: function redefinition
Brought to you by:
canajun2eh,
yalnifj
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é
°
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é
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.
SVN 7185 fixes this problem by only declaring the BMP functions when they're not built into the PHP system.