Created
June 11, 2011 20:21
-
-
Save Tyrael/1020915 to your computer and use it in GitHub Desktop.
peclweb sql/data.php problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: data.php | |
=================================================================== | |
--- data.php (revision 312067) | |
+++ data.php (working copy) | |
@@ -1,5 +1,6 @@ | |
<?php | |
+require_once "../include/pear-prepend.php"; | |
require_once "DB.php"; | |
require_once "../include/pear-database.php"; | |
@@ -7,7 +8,7 @@ | |
extract($HTTP_SERVER_VARS); | |
} | |
-PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "error_handler"); | |
+PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "data_error_handler"); | |
list($progname, $type, $user, $pass, $db) = $argv; | |
$dbh = DB::connect("$type://$user:$pass@localhost/$db"); | |
$me = getenv("USER"); | |
@@ -18,7 +19,7 @@ | |
include "./addpackages.php"; | |
include "./addacls.php"; | |
-function error_handler($obj) { | |
+function data_error_handler($obj) { | |
print "Error when adding users: "; | |
print $obj->getMessage(); | |
print "\nMore info: "; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment