From: Ilia Alshanetsky Date: Wed, 19 May 2004 15:17:52 +0000 (+0000) Subject: More errno stuff. X-Git-Tag: RELEASE_0_1~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c328a15469ea25ab11bd8c29f244c5f288a312a4;p=php More errno stuff. --- diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index f2bd638464..3d8ffc0513 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -32,12 +32,12 @@ int _pdo_mysql_error(char *what, int mysql_errno, const char *file, int line TSRMLS_DC) /* {{{ */ { - switch (errno) { + switch (mysql_errno) { default: php_error_docref(NULL TSRMLS_CC, E_WARNING, "(%s:%d) %s: %d", file, line, what, mysql_errno); break; } - return errno; + return mysql_errno; } /* }}} */