ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Lib-Dev
php-Lib-Dev
[phplib-dev] cvs commit
by kk other posts by this author
Jul 14 2001 8:24PM messages near this date
RE: [phplib-dev] cvs commit | [phplib-dev] have a nice weekend...
From: kk
Date: Sat Jul 14 22:24:46 2001
Modified files:
      php-lib/php/prepend.php3

Log message:
This is becasue $_PHPLIB['libdir'] is only initalized if it isn't present.
Simply remvove the if(!(is_array($_PHPLIB)) { call and it will be better.


Index: php-lib/php/prepend.php3
diff -u php-lib/php/prepend.php3:1.19 php-lib/php/prepend.php3:1.20
--- php-lib/php/prepend.php3:1.19	Mon Feb 26 09:29:47 2001
+++ php-lib/php/prepend.php3	Sat Jul 14 22:24:15 2001
@@ -5,29 +5,29 @@
  * Copyright (c) 1998-2000 SH Online Dienst GmbH
  *                    Boris Erdmann, Kristian Koehntopp
  *
- * $Id: prepend.php3,v 1.19 2001/02/26 08:29:47 max Exp $
+ * $Id: prepend.php3,v 1.20 2001/07/14 20:24:15 kk Exp $
  *
  */ 
 
-if (!is_array($_PHPLIB)) {
-  # Can't control your include path? 
-  # Point this to your PHPLIB base directory. Use trailing "/"!
-  $_PHPLIB["libdir"]  = "";
+$_PHPLIB = array();
+
+# Can't control your include path? 
+# Point this to your PHPLIB base directory. Use trailing "/"!
+$_PHPLIB["libdir"]  = "";
   
-  # Which database interface are you using?
-  $_PHPLIB["db"]      = "mysql";
+# Which database interface are you using?
+$_PHPLIB["db"]      = "mysql";
   
-  # Which authentication scheme are you using?
-  $_PHPLIB["auth"]    = "sql";
+# Which authentication scheme are you using?
+$_PHPLIB["auth"]    = "sql";
   
-  # What is your PHP Version? Set to "3" or "4"
-  $_PHPLIB["version"] = "4";
+# What is your PHP Version? Set to "3" or "4"
+$_PHPLIB["version"] = "4";
   
-  # Do you intend to use custom session save handlers (PHP4 only) ?
-  if ($_PHPLIB["version"] == "4") { // do not change this
-    # set to true or false 
-    $_PHPLIB["custom_save_handler"] = false;
-  }
+# Do you intend to use custom session save handlers (PHP4 only) ?
+if ($_PHPLIB["version"] == "4") { // do not change this
+  # set to true or false 
+  $_PHPLIB["custom_save_handler"] = false;
 }
 
 # Load database connector classes



-- 
Abbestellen mit Mail an:   phplib-dev-unsubscribe@[...].de
Kommandoliste mit Mail an: phplib-dev-help@lists.netuse.de

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved