[PHP-CVS] cvs: php4 /ext/mysqli php_mysqli.h

2003-03-03 Thread Georg Richter
georg   Mon Mar  3 17:50:56 2003 EDT

  Modified files:  
/php4/ext/mysqliphp_mysqli.h 
  Log:
  fixed bug in macro-definition
  
  
Index: php4/ext/mysqli/php_mysqli.h
diff -u php4/ext/mysqli/php_mysqli.h:1.11 php4/ext/mysqli/php_mysqli.h:1.12
--- php4/ext/mysqli/php_mysqli.h:1.11   Mon Mar  3 17:36:47 2003
+++ php4/ext/mysqli/php_mysqli.hMon Mar  3 17:50:56 2003
@@ -15,7 +15,7 @@
   | Author: Georg Richter [EMAIL PROTECTED]|
   +--+
 
-  $Id: php_mysqli.h,v 1.11 2003/03/03 22:36:47 georg Exp $ 
+  $Id: php_mysqli.h,v 1.12 2003/03/03 22:50:56 georg Exp $ 
 */
 
 /* A little hack to prevent build break, when mysql is used together with
@@ -299,7 +299,7 @@
 #define MYSQLI_PROFILER_HEADER(query) php_mysqli_profiler_header(query)
 #define MYSQLI_PROFILER_REPORT_RESULT(res) php_mysqli_profiler_result_info(res)
 #define MYSQLI_PROFILER_EXPLAIN(mysql,query) \
-if (!strncasecmp(select, Z_STRVAL_PP(query), 6)){ \
+if (!strncasecmp(select, query, 6)){ \
php_mysqli_profiler_explain(mysql,query); \
if (mysql_errno(mysql)) { \
RETURN_FALSE; \



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



[PHP-CVS] cvs: php4 /ext/mysqli php_mysqli.h

2003-02-14 Thread Ilia Alshanetsky
iliaa   Fri Feb 14 11:45:31 2003 EDT

  Modified files:  
/php4/ext/mysqliphp_mysqli.h 
  Log:
  Buncha Fixes.
   * Fixed a number of memory leaks.
   * Fixed some php_error_docref() calls that tried to print non-existent 
 arguments.
   * Fixed some signed/unsigned problems.
   * Fixed the MYSQLI_FETCH_RESOURCE macro so that compilers do not complain
 about un-initialized variables.
   * CS fixes.
  
  
Index: php4/ext/mysqli/php_mysqli.h
diff -u php4/ext/mysqli/php_mysqli.h:1.3 php4/ext/mysqli/php_mysqli.h:1.4
--- php4/ext/mysqli/php_mysqli.h:1.3Wed Feb 12 19:11:17 2003
+++ php4/ext/mysqli/php_mysqli.hFri Feb 14 11:45:31 2003
@@ -15,7 +15,7 @@
   | Author: Georg Richter [EMAIL PROTECTED]|
   +--+
 
-  $Id: php_mysqli.h,v 1.3 2003/02/13 00:11:17 georg Exp $ 
+  $Id: php_mysqli.h,v 1.4 2003/02/14 16:45:31 iliaa Exp $ 
 */
 
 #include mysql.h
@@ -103,7 +103,7 @@
 { \
mysqli_object *intern = (mysqli_object *)zend_object_store_get_object(*(__id) 
TSRMLS_CC);\
if (!((__ptr) != (__type)intern-ptr)) {\
-   php_error(E_WARNING, Couldn' fetch %s, intern-zo.ce-name);\
+   php_error(E_WARNING, Couldn't fetch %s, intern-zo.ce-name);\
RETURN_NULL();\
}\
__ptr = (__type)intern-ptr; \



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




[PHP-CVS] cvs: php4 /ext/mysqli php_mysqli.h

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

  Modified files:  
/php4/ext/mysqliphp_mysqli.h 
  Log:
  Allow mysqli to be built when imap (c-client) is used.
  
  
Index: php4/ext/mysqli/php_mysqli.h
diff -u php4/ext/mysqli/php_mysqli.h:1.5 php4/ext/mysqli/php_mysqli.h:1.6
--- php4/ext/mysqli/php_mysqli.h:1.5Fri Feb 14 11:49:09 2003
+++ php4/ext/mysqli/php_mysqli.hFri Feb 14 16:27:13 2003
@@ -15,8 +15,15 @@
   | Author: Georg Richter [EMAIL PROTECTED]|
   +--+
 
-  $Id: php_mysqli.h,v 1.5 2003/02/14 16:49:09 iliaa Exp $ 
+  $Id: php_mysqli.h,v 1.6 2003/02/14 21:27:13 iliaa Exp $ 
 */
+
+/* A little hack to prevent build break, when mysql is used together with
+ * c-client, which also defines LIST.
+ */
+#ifdef LIST
+#undef LIST
+#endif
 
 #include mysql.h
 



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