View Issue Details

IDProjectCategoryView StatusLast Update
0035302mantisbtauthenticationpublic2025-03-01 18:40
Reporterraspopov Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformMicrosoftOSWindows ServerOS Version2022
Product Version2.27.0 
Target Version2.27.1Fixed in Version2.27.1 
Summary0035302: Deprecation warning in Securimage captcha with PHP 8.2
Description

The URL http://localhost/mantisbt/vendor/dapphp/securimage/securimage_show.php that should display the captcha image instead displays an error message:

Deprecated: Creation of dynamic property Securimage::$gdnoisecolor is deprecated in ...\vendor\dapphp\securimage\securimage.php on line 1901

Failed to generate captcha image, content has already been output.
This is most likely due to misconfiguration or a PHP error was sent to the browser.

This is a strange error in itself, as the Securimage::$gdnoisecolor property is not actually used to generate the image, but for disabled debug output.

Steps To Reproduce

Enable PHP warning display and open the user registration page.

TagsPHP 8.2

Activities

dregad

dregad

2025-02-05 12:19

developer   ~0069826

Thanks for the report. When you say "the new PHP", I suppose you mean 8.4 ?

raspopov

raspopov

2025-02-05 13:44

reporter   ~0069827

You're quite right. PHP 8.3.14.

dregad

dregad

2025-02-06 02:59

developer   ~0069828

Problem confirmed with PHP 8.2 and later.

dregad

dregad

2025-02-08 10:03

developer   ~0069836

I had actually identified this issue and fixed the problem at the end of last year by updating our fork of dapphp/securimage, but I had never actually pushed the changes or updated composer...

Related Changesets

MantisBT: master-2.27 4d0fe286

2025-02-08 09:57

dregad


Details Diff
Composer update dapphp/securimage

- Upgrading dapphp/securimage (dev-mantis 17a3902 => dev-mantis 997bf03)

Fixes 0035302
Affected Issues
0035302
mod - composer.lock Diff File