summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_nonapi.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-14 16:49:09 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-14 16:49:09 +0000
commit031dd997fbf790ffa209142fe2a06f73509b2327 (patch)
tree0c3b93612d7753579e9e610001643f912cc0ac4d /ext/mysqli/mysqli_nonapi.c
parent4f1b6364f9a0d7b69ef8b0deb50d3de7de73a068 (diff)
downloadphp-git-031dd997fbf790ffa209142fe2a06f73509b2327.tar.gz
Missing portion of the previous patch.
Diffstat (limited to 'ext/mysqli/mysqli_nonapi.c')
-rw-r--r--ext/mysqli/mysqli_nonapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
index 7c340a5cc3..ff12a92b3a 100644
--- a/ext/mysqli/mysqli_nonapi.c
+++ b/ext/mysqli/mysqli_nonapi.c
@@ -60,8 +60,8 @@ PHP_FUNCTION(mysqli_connect)
if (mysql_real_connect(mysql,hostname,username,passwd,dbname,port,socket,0) == NULL) {
/* Save error messages */
- MyG(error_no) = mysql_errno(mysql);
- MyG(error_msg) = estrdup(mysql_error(mysql));
+ php_mysqli_set_error(mysql_errno(mysql), mysql_error(mysql) TSRMLS_CC);
+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", mysql_error(mysql));
/* free mysql structure */
mysql_close(mysql);