Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Ldap] Add verbose ext-ldap error if present for easier debugging#28424

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromscaytrase:bugfix/28149
Sep 21, 2018

Conversation

@scaytrase
Copy link
Contributor

@scaytrasescaytrase commentedSep 10, 2018
edited by nicolas-grekas
Loading

QA
Branch?master (be careful when merging)
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?
Fixed tickets#28149
LicenseMIT
Doc PR

Added an optional message suffix if ldap_errno is not equals to 0

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

(with minor comment)

if (false ===$this->search) {
thrownewLdapException(sprintf('Could not complete search with dn "%s", query "%s" and filters "%s".',$this->dn,$this->query,implode(',',$this->options['filter'])));
$ldapError ='';
if (0 !== ($errno =ldap_errno($con))) {

Choose a reason for hiding this comment

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

I'd suggest to write this asif ($errno = ldap_errno($con)) {

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I hoped to find something likeLDAP_ERROR_NONE for better readability, but failed. Initial idea was

if (LDAP_ERROR_NONE !== ($errno = ldap_errno($con))) {

Without that your suggestion looks better, indeed, I'll fix it

@nicolas-grekas
Copy link
Member

(to be merged on master actually as that's not a bug fix but an improvement.)

@nicolas-grekasnicolas-grekas changed the titleAdd verbose ext-ldap error if present for easier debugging[Ldap] Add verbose ext-ldap error if present for easier debuggingSep 10, 2018
@scaytrase
Copy link
ContributorAuthor

@nicolas-grekas should I rebase?

@nicolas-grekas
Copy link
Member

@scaytrase if you can please yes, otherwise no worries we'll take care of it.

@scaytrasescaytrase changed the base branch from3.4 tomasterSeptember 11, 2018 11:26
@scaytrase
Copy link
ContributorAuthor

rebased

@nicolas-grekas
Copy link
Member

Thank you@scaytrase.

@nicolas-grekasnicolas-grekas merged commit761415f intosymfony:masterSep 21, 2018
nicolas-grekas added a commit that referenced this pull requestSep 21, 2018
…r debugging (scaytrase)This PR was merged into the 4.2-dev branch.Discussion----------[Ldap] Add verbose ext-ldap error if present for easier debugging| Q             | A| ------------- | ---| Branch?       | master (be careful when merging)| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   || Fixed tickets |#28149| License       | MIT| Doc PR        |Added an optional message suffix if ldap_errno is not equals to 0Commits-------761415f Add verbose ext-ldap error if present for easier debugging
@scaytrasescaytrase deleted the bugfix/28149 branchSeptember 21, 2018 11:45
@nicolas-grekasnicolas-grekas modified the milestones:next,4.2Nov 1, 2018
This was referencedNov 3, 2018
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.2

Development

Successfully merging this pull request may close these issues.

3 participants

@scaytrase@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp