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

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Dec 1 13:02:13 PST 2005


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

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


phyre at rogers.com (2005-12-01 13:02) wrote:

I don't believe this is bogus, as it does not appear to be a problem with
PHP.  It seems to be a change in PHP, in which Horde needs to account for in
order to ensure compatibility.

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.  It is clear that PHP doesn't want you to introduce new files while
it's shutting down or shuts something down in a different order.

It also doesn't change the way the functions work, but just moves the
define.  So why not move the line and everyone is happy?

To add to it, I've found a few posts on the net stating the same solution I
found.  The open_basedir is right, but the fact that it's trying to include
in the shutdown function is causing issues.




More information about the bugs mailing list