Skip to content

Additiona php deprecation fixes for the 1.2 branch. #309

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

monnerat
Copy link

@monnerat monnerat commented Apr 9, 2025

Hi Deon,
Here are some commits fixing php 8.x deprecations for the 1.2 branch.
I authored the first one.
The others have been taken from the Fedora official package and I successfully tested them with php 8.3
Thanks for considering this PR.

monnerat and others added 5 commits April 9, 2025 16:48
Origin: vendor
Forwarded: no
Same fix as tecnickcom/TCPDF#734

Origin: vendor
Forwarded: no
Uncaught Exception: Serialization of 'SensitiveParameterValue' is not allowed in /usr/share/phpldapadmin/lib/functions.php:645

Origin: vendor
Forwarded: no
- Deprecated: Creation of dynamic property page::$index is deprecated in /usr/share/phpldapadmin/lib/page.php on line 38
- Deprecated: Creation of dynamic property page::$sysmsg is deprecated in /usr/share/phpldapadmin/lib/page.php on line 468
- Deprecated: Creation of dynamic property page::$_block is deprecated in /usr/share/phpldapadmin/lib/page.php on line 241
- Creation of dynamic property Template::$askcontainer is deprecated
- Creation of dynamic property PLAAttribute::$js is deprecated (on create entry of type Thunderbird)
- On import feature
- On export feature
- And others..

Origin: vendor
Forwarded: leenooks#202
Bug-Debian: https://bugs.debian.org/1100771
@williamdes
Copy link

This is #202 and #303
This one will get closed like #303 I guess

@williamdes
Copy link

Please submit a Debian Bug and patch for the changes that are not yet in my Debian patches

@monnerat
Copy link
Author

monnerat commented Apr 9, 2025

This is #202 and #303

Sorry, they've been closed and that's why I did not see them.

This one will get closed like #303 I guess

Considering the comment in #303, I'm afraid you're right on this point.

Please submit a Debian Bug and patch for the changes that are not yet in my Debian patches.

No I won't: I'm not in the Debian world and have no account/knowledge there.
You better pick patch of commit https://github.com/monnerat/phpLDAPadmin/commit/a7c05dac1b5f4993cadb19cdb36691fb7259a2bc.patch and add it to your collection.

Thanks for your patches.

@leenooks leenooks added the old Old version of PLA, may not be fixed. label Apr 9, 2025
@leenooks
Copy link
Owner

leenooks commented Apr 9, 2025

Thanks for taking the time to address v1.2, however, PLA v1.2 is officially deprecated and no further updates will be applied.

All focus is on developing and enhancing v2.

@leenooks leenooks closed this Apr 9, 2025
@williamdes
Copy link

No I won't: I'm not in the Debian world and have no account/knowledge there. You better pick patch of commit https://github.com/monnerat/phpLDAPadmin/commit/a7c05dac1b5f4993cadb19cdb36691fb7259a2bc.patch and add it to your collection.

Thanks for your patches.

No worries, I understand.

I posted some question about your changes:

Comment on lines +101 to +102
$t = $server->getContainer($base->getDN());
$this->javascript .= sprintf('<input type="hidden" name="container" value="%s" />',htmlspecialchars(is_null($t)? '': $t));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use $this->javascript .= sprintf('<input type="hidden" name="container" value="%s" />',htmlspecialchars($server->getContainer($base->getDN() ?? '')));

In what case did you encounter a null value ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to retain php 5.6 compatibility thus I don't use ??

In what case did you encounter a null value ?

I don't remember. exactly: I wrote it a long time ago and, as PR were not very responsive here, did not submit it.
AFAICR, I was experimenting with a DN component count <= 1.
See

phpLDAPadmin/lib/ds_ldap.php

Lines 1066 to 1067 in 3c1f016

if (count($parts) <= 1)
$return = null;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
old Old version of PLA, may not be fixed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants