[Tickets #3016] NEW: preference saving due to PEAR::db failure

bugs@bugs.horde.org bugs at bugs.horde.org
Tue Nov 22 08:18:26 PST 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3016
-----------------------------------------------------------------------
 Ticket             | 3016
 Created By         | phyre at rogers.com
 Summary            | preference saving due to PEAR::db failure
 Queue              | Horde Framework Packages
 Version            | HEAD
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


phyre at rogers.com (2005-11-22 08:18) wrote:

Using php 5.0.5 / MySQL 4.0

I receive the following messages while saving preferences in PHP's error log
and preferences are not saved.

PHP Warning:  Prefs_sql::_connect(DB.php) [<a href='function.-connect'>func
tion.-connect</a>]: failed to open stream: Operation not permitted in
/home/e/site/site.com/webmail/horde/lib/Horde/Prefs/sq
l.php on line 381, referer:
http://webmail.site.com/horde/services/prefs.php?group=identities&app=horde

PHP Fatal error:  Prefs_sql::_connect() [<a href='function.require'>functio
n.require</a>]: Failed opening required 'DB.php'
(include_path='/home/e/site/site.com/webmail/horde/lib:.:/usr/local/lib/php
') in /home/e/site/site.com/webmail/horde/lib/Horde/Prefs/sql.php on line
381, referer: http://webmail.site.com/horde/s
ervices/prefs.php?group=identities&app=horde

This is with open_basedir on.

Moving the require_once('DB.php') from within the _connect function to
outside of the class in horde/lib/Horde/Prefs/sql.php seems to solve the
problem.

Nonetheless, this looks like an interesting bug- I'd imagine something to do
with http://bugs.php.net/bug.php?id=33772 maybe?




More information about the bugs mailing list