[bugs] [Bug 1143] New - isWarning function depreciated in Pear
bundled with PHP 4.3.0
bugs at bugs.horde.org
bugs at bugs.horde.org
Sun Jan 5 16:17:51 PST 2003
http://bugs.horde.org/show_bug.cgi?id=1143
*** shadow/1143 Sun Jan 5 16:17:51 2003
--- shadow/1143.tmp.14880 Sun Jan 5 16:17:51 2003
***************
*** 0 ****
--- 1,40 ----
+ Bug#: 1143
+ Product: Horde
+ Version: 2.1 Unstable
+ Platform: All Browsers
+ OS/Version: other
+ Status: NEW
+ Resolution:
+ Severity: critical
+ Priority: P2
+ Component: IMP
+ Area: BUILD
+ AssignedTo: chuck at horde.org
+ ReportedBy: phil at cyberws.co.uk
+ URL:
+ Cc: phil at cyberws.co.uk
+ Summary: isWarning function depreciated in Pear bundled with PHP 4.3.0
+
+ Installation of PHP 4.3.0 on one of my Apache servers (not the one used by my
+ IMP setup) caused Horde 2.1, Kronolith 1.0, Mnemo 1.0 and Nag 1.0 to bomb with
+ the following error :-
+
+ Fatal error: Call to undefined function: iswarning()
+ in .../horde/lib/Prefs/sql.php on line xx
+
+ Problem appears to be that the function DB::IsWarning is depreciated in the
+ version of PEAR bundled with PHP 4.3.0. The "make install" command when
+ updating another Apache server appears to have overwritten the standard PEAR
+ location with this new version. Thus other server processes using PEAR were
+ immediately updated to the same PEAR version.
+
+ In each case the following changes in sql.php fixed the problem
+
+ /** REMOVED DUE TO PEAR UPDATE
+ if (DB::isError($this->db) || DB::isWarning($this->db)) { **/
+ if (DB::isError($this->db)) {
+
+ Apart from this little problem not of your causing congratulations on an
+ excellent project. (I have not checked if the same code is present in Horde 2.2
+ but either way the same problem exist in current versions of Kronolith, Mnemo
+ and Nag).
More information about the bugs
mailing list