[dev] Bug in horde/test.php + patch

Jan Kuipers jrkuipers at lauwerscollege.nl
Sat Mar 1 21:44:34 PST 2003


Regarding HEAD:

I get this error with test.php:
[Sat Mar  1 21:29:36 2003] [error] PHP Fatal error:  Cannot redeclare class
net_url in /usr/local/lib/php/Net/URL.php on line 38

Solution: include Net_URL before HTTP_Request:

Index: test.php
===================================================================
RCS file: /repository/horde/test.php,v
retrieving revision 1.89
diff -u -r1.89 test.php
--- test.php	27 Feb 2003 21:18:33 -0000	1.89
+++ test.php	1 Mar 2003 20:37:13 -0000
@@ -216,8 +216,8 @@
 include 'Net/Socket.php';
 include 'Date/Calc.php';
 include 'Auth/SASL.php';
-include 'HTTP/Request.php';
 include 'Net/URL.php';
+include 'HTTP/Request.php';
 restore_error_handler();
 
 /* Check the version of the pear database API. */


-- 
Jan Kuipers
Systeembeheer Lauwers College



More information about the dev mailing list