Bug 662363

Summary: Undefined variable: result (E_NOTICE)
Product: [Fedora] Fedora Reporter: Michael <mclroy>
Component: phpldapadminAssignee: Dmitry Butskoy <dmitry>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: low    
Version: 14CC: dmitry
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-13 14:51:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael 2010-12-12 02:44:23 UTC
I get this message on an attempt to login:

You found a non-fatal phpLDAPadmin bug!
Error:	Undefined variable: result (E_NOTICE)
File:	ds_ldap.php line 488, caller cmd.php
Versions:	PLA: 1.2.0.5, PHP: 5.3.3, SAPI: apache2handler
Web server:	Apache/2.2.17 (Fedora)

Comment 1 Michael 2010-12-12 12:55:59 UTC
in addition:

You found a non-fatal phpLDAPadmin bug!
Error:	Undefined variable: request (E_NOTICE)
File:	rdelete.php line 66, caller cmd.php
Versions:	PLA: 1.2.0.5, PHP: 5.3.3, SAPI: apache2handler
Web server:	Apache/2.2.17 (Fedora)

Comment 2 Dmitry Butskoy 2010-12-13 14:51:46 UTC
It is something related to the coding style.

The default php config uses "error_reporting = E_ALL & ~E_NOTICE", whereas the production distributions (as well as Fedora) use "E_ALL & ~E_DEPRECATED" instead.

It seems you should add the "& ~E_NOTICE" to your /etc/php.ini to avoid such messages.


Reported upstream:
https://sourceforge.net/tracker/?func=detail&aid=3136564&group_id=61828&atid=498546