6.0.0-alpha12
6/7/25

[#5090] Incorrect ini_set('include_path'..) in horde/lib/core.php
Summary Incorrect ini_set('include_path'..) in horde/lib/core.php
Queue Horde Groupware Webmail Edition
Type Bug
State Resolved
Priority 3. High
Owners
Requester paolo.vicario (at) uniud (dot) it
Created 03/08/2007 (6666 days ago)
Due 03/08/2007 (6666 days ago)
Updated 03/08/2007 (6666 days ago)
Assigned
Resolved 03/08/2007 (6666 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/08/2007 03:23:07 PM Jan Schneider Comment #4 Reply to this comment
No, the path is fine. But Net_LDAP is missing from the Groupware
bundle. Fixed in CVS.
I'm afraid I don't understand: actually the file LDAP.php is included
in Groupware bundle
(lib/Horde/LDAP.php), but it seems to me unreachable because of the path
(phpinfo displays include_path =
/var/www/webmail/horde-webmail-1.0/lib:/var/www/webmail/horde-webmail-1.0/lib/../pear).
No, this is a different LDAP.php.
Moreover, in my server there are four different versions of the same
file (only the last one
is inside Horde tree):

/usr/share/pear/Net/LDAP.php (@version CVS: $Id: LDAP.php,v 1.39
2007/02/22 08:06:10 beni Exp $)
This would be the correct one, if it came with Horde. But it's from 
your regular PEAR install.
/usr/share/pear/Auth/Container/LDAP.php (@version CVS: $Id:
LDAP.php,v 1.41 2007/02/02 02:17:26 aashley Exp $)
/usr/share/pear/Horde/LDAP.php ($Horde: framework/LDAP/LDAP.php,v 1.5
2004/01/01 15:15:52 jan Exp $)
/var/www/webmail/horde-webmail-1.0/horde/lib/Horde/LDAP.php ($Horde:
framework/LDAP/LDAP.php,v 1.5.12.10 2006/01/01 21:28:23 jan Exp $)
All these are completely different files.



But this bug is closed now, if you have more questions ask on the list.
03/08/2007 02:59:40 PM paolo (dot) vicario (at) uniud (dot) it Comment #3 Reply to this comment
No, the path is fine. But Net_LDAP is missing from the Groupware
bundle. Fixed in CVS.
I'm afraid I don't understand: actually the file LDAP.php is included 
in Groupware bundle

(lib/Horde/LDAP.php), but it seems to me unreachable because of the path

(phpinfo displays include_path =

/var/www/webmail/horde-webmail-1.0/lib:/var/www/webmail/horde-webmail-1.0/lib/../pear).

Moreover, in my server there are four different versions of the same 
file (only the last one

is inside Horde tree):



/usr/share/pear/Net/LDAP.php (@version CVS: $Id: LDAP.php,v 1.39 
2007/02/22 08:06:10 beni Exp $)

/usr/share/pear/Auth/Container/LDAP.php (@version CVS: $Id: LDAP.php,v 
1.41 2007/02/02 02:17:26 aashley Exp $)

/usr/share/pear/Horde/LDAP.php ($Horde: framework/LDAP/LDAP.php,v 1.5 
2004/01/01 15:15:52 jan Exp $)

/var/www/webmail/horde-webmail-1.0/horde/lib/Horde/LDAP.php ($Horde: 
framework/LDAP/LDAP.php,v 1.5.12.10 2006/01/01 21:28:23 jan Exp $)



Which one is the "right" one?

Thanks in advance,

Paolo
03/08/2007 01:40:11 PM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
No, the path is fine. But Net_LDAP is missing from the Groupware 
bundle. Fixed in CVS.
03/08/2007 01:35:46 PM paolo (dot) vicario (at) uniud (dot) it Comment #1
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ Incorrect ini_set('include_path'..) in horde/lib/core.php
Due ⇒ 03/08/2007
Queue ⇒ Horde Groupware Webmail Edition
State ⇒ Unconfirmed
Reply to this comment
Horde Groupware Webmail Edition V1.0 (14-jan-2007) includes an 
incorrect version of the file horde/lib/core.php. It differs from 
Horde standard version this way:



42c42

< ini_set('include_path', dirname(__FILE__) . PATH_SEPARATOR . 
ini_get('include_path'));

---
ini_set('include_path', dirname(__FILE__) . PATH_SEPARATOR . 
dirname(__FILE__) . '/../pear');
This bug prevents, for example, Turba from connecting to LDAP data source:



"Warning: _getschema(Net/LDAP.php): failed to open stream: No such 
file or directory in

/var/www/webmail/horde-webmail-1.0/turba/lib/Driver/ldap.php on line 674"

"Fatal error: _getschema(): Failed opening required 'Net/LDAP.php'

(include_path='/var/www/webmail/horde-webmail-1.0/lib:/var/www/webmail/horde-webmail-1.0/lib/../pear') 
in

/var/www/webmail/horde-webmail-1.0/turba/lib/Driver/ldap.php on line 674"



Worst of all: both file (Horde standard and Horde Groupware) have the 
same version

string "$Horde: horde/lib/core.php,v 1.26.6.7 2006/01/07 16:40:28 
chuck Exp $"!

It's been a bit difficult to trace the bug...


Saved Queries