[PHP-CVS] cvs: php4 /ext/mysqli mysqli_nonapi.c

2003-06-06 Thread Georg Richter
georg   Fri Jun  6 04:57:51 2003 EDT

  Modified files:  
/php4/ext/mysqlimysqli_nonapi.c 
  Log:
  fixed return value
  
  
Index: php4/ext/mysqli/mysqli_nonapi.c
diff -u php4/ext/mysqli/mysqli_nonapi.c:1.9 php4/ext/mysqli/mysqli_nonapi.c:1.10
--- php4/ext/mysqli/mysqli_nonapi.c:1.9 Sat Mar 15 17:51:49 2003
+++ php4/ext/mysqli/mysqli_nonapi.c Fri Jun  6 04:57:51 2003
@@ -15,7 +15,7 @@
   | Author: Georg Richter [EMAIL PROTECTED]|
   +--+
 
-  $Id: mysqli_nonapi.c,v 1.9 2003/03/15 22:51:49 hholzgra Exp $ 
+  $Id: mysqli_nonapi.c,v 1.10 2003/06/06 08:57:51 georg Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -169,7 +169,7 @@
}
 
if (!mysql_field_count(mysql)) {
-   RETURN_FALSE;
+   RETURN_TRUE;
}
 
/* profiler result information */



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



[PHP-CVS] cvs: php4 /ext/mysqli mysqli_nonapi.c

2003-02-14 Thread Georg Richter
georg   Fri Feb 14 13:18:12 2003 EDT

  Modified files:  
/php4/ext/mysqlimysqli_nonapi.c 
  Log:
  fixed compiler warning
  
  
Index: php4/ext/mysqli/mysqli_nonapi.c
diff -u php4/ext/mysqli/mysqli_nonapi.c:1.2 php4/ext/mysqli/mysqli_nonapi.c:1.3
--- php4/ext/mysqli/mysqli_nonapi.c:1.2 Fri Feb 14 11:49:09 2003
+++ php4/ext/mysqli/mysqli_nonapi.c Fri Feb 14 13:18:12 2003
@@ -15,7 +15,7 @@
   | Author: Georg Richter [EMAIL PROTECTED]|
   +--+
 
-  $Id: mysqli_nonapi.c,v 1.2 2003/02/14 16:49:09 iliaa Exp $ 
+  $Id: mysqli_nonapi.c,v 1.3 2003/02/14 18:18:12 georg Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -60,7 +60,7 @@
 
if (mysql_real_connect(mysql,hostname,username,passwd,dbname,port,socket,0) == 
NULL) {
/* Save error messages */
-   php_mysqli_set_error(mysql_errno(mysql), mysql_error(mysql) TSRMLS_CC);
+   php_mysqli_set_error(mysql_errno(mysql), (char *mysql_error(mysql) 
+TSRMLS_CC);
 
php_error_docref(NULL TSRMLS_CC, E_WARNING, %s, mysql_error(mysql));
/* free mysql structure */



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




[PHP-CVS] cvs: php4 /ext/mysqli mysqli_nonapi.c

2003-02-14 Thread Ilia Alshanetsky
iliaa   Fri Feb 14 13:27:20 2003 EDT

  Modified files:  
/php4/ext/mysqlimysqli_nonapi.c 
  Log:
  Fixed a typo.
  
  
Index: php4/ext/mysqli/mysqli_nonapi.c
diff -u php4/ext/mysqli/mysqli_nonapi.c:1.3 php4/ext/mysqli/mysqli_nonapi.c:1.4
--- php4/ext/mysqli/mysqli_nonapi.c:1.3 Fri Feb 14 13:18:12 2003
+++ php4/ext/mysqli/mysqli_nonapi.c Fri Feb 14 13:27:20 2003
@@ -15,7 +15,7 @@
   | Author: Georg Richter [EMAIL PROTECTED]|
   +--+
 
-  $Id: mysqli_nonapi.c,v 1.3 2003/02/14 18:18:12 georg Exp $ 
+  $Id: mysqli_nonapi.c,v 1.4 2003/02/14 18:27:20 iliaa Exp $ 
 */
 
 #ifdef HAVE_CONFIG_H
@@ -60,7 +60,8 @@
 
if (mysql_real_connect(mysql,hostname,username,passwd,dbname,port,socket,0) == 
NULL) {
/* Save error messages */
-   php_mysqli_set_error(mysql_errno(mysql), (char *mysql_error(mysql) 
TSRMLS_CC);
+
+   php_mysqli_set_error(mysql_errno(mysql), (char *) mysql_error(mysql) 
+TSRMLS_CC);
 
php_error_docref(NULL TSRMLS_CC, E_WARNING, %s, mysql_error(mysql));
/* free mysql structure */



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