nativecode shows up in userinfo

This commit is contained in:
Evan Prodromou 2011-11-26 10:20:32 -05:00
parent 8cdbef098b
commit 7af29bf0d2
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ function PEAR_ErrorToPEAR_Exception($err)
// keep the same broken connection. We die here to get a new
// process started.
if (php_sapi_name() == 'cli' && preg_match('/nativecode=2006/', $msg)) {
if (php_sapi_name() == 'cli' && preg_match('/nativecode=2006/', $userInfo)) {
common_log(LOG_ERR, "Lost DB connection; dying.");
exit(100);
}