#66725 closed enhancement (fixed)

Add php82 to variants for phpmyadmin

Reported by: ednl (Ewoud Dronkert) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: phpmyadmin

Description

The default version for php is php82 but phpmyadmin @5.2.0_0 has php81 as the default variant, with php82 unavailable as a variant.

I think it would be safest to keep php81 as the default variant for phpmyadmin, because I saw Fix PHP 8.2 deprecated string interpolation syntax in the phpmyadmin release notes for the as yet unreleased version 5.2.1, see https://demo.phpmyadmin.net/master-config/index.php?route=/changelog , but that is just a cosmetic fix, not functional. Phpmyadmin 5.2.0 works with php82 and I would like to use them in that combination. Thanks!

Change History (4)

comment:1 Changed 15 months ago by jmroot (Joshua Root)

Keywords: phpmyadmin php php82 removed
Owner: set to ryandesign
Port: @5.2.0_0 removed
Status: newassigned
Type: updateenhancement

comment:2 Changed 15 months ago by ednl (Ewoud Dronkert)

I fixed this for myself locally by editing the phpmyadmin port file: sudo port edit phpmyadmin and adding these php82 references:

foreach php {php72 php73 php74 php80 php81 php82} {
[...]
if {![variant_isset php72] && ![variant_isset php73] && ![variant_isset php74] && ![variant_isset php80] && ![variant_isset php81] && ![variant_isset php82]} {

The next problem is that php isn't statically compiled with openssl, apparently, which means that the standard authentication method for mysql8 caching_sha2_password does not work, as can be seen from the phpinfo() output under mysqlnd:

Loaded plugins	mysqlnd,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password

Enabling the native password option is not recommended because of exploits. The only good info I saw for how to fix this, with some pros and cons, is at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252420#c49 Would this be worthy of a new ticket, or is this a known issue/discussion?

comment:3 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

If you would like changes made to MacPorts regarding what you wrote in comment:2, please file a separate ticket with more details since I'm not aware of any of it, or file a pull request if you can make the needed changes yourself.

comment:4 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

In 5485ed2a2106a9678af16b7315574a6ee8d09d6a/macports-ports (master):

phpmyadmin: Add php82 variant

Not default yet because of php82 compatibility issues to be resolved in
the next version.

Closes: #66725

Note: See TracTickets for help on using tickets.