[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] com =?UTF-8?Q?pecl/database/ibm=5Fdb=32=3A=20don=27t=20return=20nothing?= =?UTF-8?Q?=20fr
From:       Calvin Buckley <calvinb () php ! net>
Date:       2020-11-30 17:10:24
Message-ID: php-mail-dfbb0dc8d23edae56ab610b01659fc481364009676 () git ! php ! net
[Download RAW message or body]

Commit:    4b6b7510fc9a4ba0e063a1d109dc4e857c898024
Author:    Calvin Buckley <calvin@cmpct.info>         Wed, 6 May 2020 16:33:48 +0000
Parents:   701030e53a6c31df80ca03fa4d29f1a1e30d7342
Branches:  master

Link:       http://git.php.net/?p=pecl/database/ibm_db2.git;a=commitdiff;h=4b6b7510fc9a4ba0e063a1d109dc4e857c898024


Log:
don't return nothing from non-void

Changed paths:
  M  ibm_db2.c


Diff:
diff --git a/ibm_db2.c b/ibm_db2.c
index 270924b..d3d97fb 100644
--- a/ibm_db2.c
+++ b/ibm_db2.c
@@ -2493,7 +2493,7 @@ static int _php_db2_i5_current_user(conn_handle *conn_res, char \
*uid, int uid_le  SQLINTEGER fStrLen = SQL_NTS;
 
     if (!conn_res || !uid || uid_len < 10) {
-        return;
+        return SQL_ERROR; /* not really from CLI, but... */
     }
 
     _php_db2_clear_stmt_err_cache(TSRMLS_C);


--
PECL CVS Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic