I am trying to incorporate PHP error handling as well as PEAR error handling. It's driving me nuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C' driving me nuts...
Here is my code.Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove thetr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB::connec
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("e;In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'ling as well as PEAR error handling. It's driving me nuts...
Here is my code.Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("e;In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB::connect( trying to incorporate PHP error handling as well as PEAR error handling. It's driving me nuts...
Here is my code.Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, lineuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$prate PHP error handling as well as PEAR error handling. It's driving me nuts...
Here is my code.Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = &le, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6
s well as PEAR error handling. It's driving me nuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6
amp;quote;In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);
If I run the above code, I get:
In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6
83b]
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("e;In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB::connect($dsn, false);
If I run the above code, I get:
In D:\php\PEAR\DB.php, line: 470
Assigning the retandling. It's driving me nuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I r trying to incorporate PHP error handling as well as PEAR error handling. It's driving me nuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6
R error handling. It's driving me nuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.0 handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);
If I run the above code, I get:
In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6
trying to incorporate PHP error handling as well as PEAR error handling. It's driving me nuts...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br&ror handling as well as PEAR error handling. It's driving me nuts...
Here is my code.Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("e;In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handlers...
Here is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP errorre is my code.
Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("e;In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB: trying to incorporate PHP error handling as well as PEAR error handling. It's driving me nuts...
Here is my code.Code: Select all
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("e;In $errfile, line: $errline\n<br>$errstr"e;);
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "e;mysql://$user:$pass@$host/$db_name"e;;
$db = DB::connect($dsn, false);In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PE
error_reporting (E_ALL ^ E_NOTICE);
// this function will handle all errors reported by PHP
function php_error_handler ($errno, $errstr, $errfile, $errline) {
die ("In $errfile, line: $errline\n<br>$errstr");
}
set_error_handler ('php_error_handler');
// this function will catch errors generated by Pear,
// transform it to PHP errors and trigger them to the php_error_handler
function pear_error_handler ($err_obj) {
$error_string = $err_obj->getMessage() . '<br>' . $error_obj->getDebugInfo();
trigger_error ($error_string, E_USER_ERROR);
}
require 'DB.php';
PEAR::setErrorHandling (PEAR_ERROR_CALLBACK, 'pear_error_handler');
$host = 'localhost';
$user = 'A';
$pass = 'B';
$db_name = 'C';
$dsn = "mysql://$user:$pass@$host/$db_name";
$db = DB::connect($dsn, false);
If I run the above code, I get:
In D:\php\PEAR\DB.php, line: 470
Assigning the return value of new by reference is deprecated
If I remove the PHP error handler, PEAR runs fines.
I would like to have both. Is it possible??
I have PHP 5.04 and PEAR:B 1.7.6