List:Commits« Previous MessageNext Message »
From:ahristov Date:March 19 2007 6:23pm
Subject:PHP mysqlnd svn commit: r203 - trunk/ext/mysqli/mysqlnd
View as plain text  
Author: ahristov
Date: 2007-03-19 19:23:24 +0100 (Mon, 19 Mar 2007)
New Revision: 203

Modified:
   trunk/ext/mysqli/mysqlnd/mysqlnd_ps_codec.c
Log:
Fixed wrong macro name, which led to data corruption.
SIZEOF_LONG is the right one, SIZE_OF_LONG doesn't exist.


Modified: trunk/ext/mysqli/mysqlnd/mysqlnd_ps_codec.c
===================================================================
--- trunk/ext/mysqli/mysqlnd/mysqlnd_ps_codec.c	2007-03-19 18:07:52 UTC (rev 202)
+++ trunk/ext/mysqli/mysqlnd/mysqlnd_ps_codec.c	2007-03-19 18:23:24 UTC (rev 203)
@@ -117,7 +117,7 @@
 
 		/* unsigned int (11) */
 		uval= (my_uint32) sint4korr(*row);
-#if SIZE_OF_LONG==4
+#if SIZEOF_LONG==4
 		if (uval > INT_MAX) {
 			char *tmp, *p;
 			int j=10;
@@ -133,9 +133,9 @@
 			ZVAL_STRING(zv, tmp, 0);
 #else
 			ZVAL_UTF8_STRINGL(zv, tmp, 10, ZSTR_AUTOFREE);
-#endif
+#endif /* PHP_MAJOR_VERSION < 6 */
 		} else 
-#endif
+#endif /* #if SIZEOF_LONG==4 */
 		{
 			ZVAL_LONG(zv, uval);
 		}

Thread
PHP mysqlnd svn commit: r203 - trunk/ext/mysqli/mysqlndahristov19 Mar