iliaa           Thu Dec  2 21:26:36 2004 EDT

  Modified files:              (Branch: PHP_5_0)
    /php-src    NEWS 
    /php-src/ext/mssql  php_mssql.c 
  Log:
  MFH: Fixed bug #30962 (mssql returns space for NULL columns).
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.137&r2=1.1760.2.138&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.137 php-src/NEWS:1.1760.2.138
--- php-src/NEWS:1.1760.2.137   Wed Dec  1 13:22:23 2004
+++ php-src/NEWS        Thu Dec  2 21:26:36 2004
@@ -7,6 +7,7 @@
 - Extended the functionality of is_subclass_of() to accept either a class name
   or an object as first parameter. (Andrey) 
 - Fixed potential problems with unserializing invalid serialize data. (Marcus)
+- Fixed bug #30962 (mssql returns space for NULL columns). (Ilia)
 - Fixed bug #30856 (ReflectionClass::getStaticProperties segfaults). (Marcus)
 - Fixed bug #30832 ("!" stripped off comments in xml parser). (Rob)
 - Fixed bug #30799 (SoapServer doesn't handle private or protected properties).
http://cvs.php.net/diff.php/php-src/ext/mssql/php_mssql.c?r1=1.137.2.4&r2=1.137.2.5&ty=u
Index: php-src/ext/mssql/php_mssql.c
diff -u php-src/ext/mssql/php_mssql.c:1.137.2.4 
php-src/ext/mssql/php_mssql.c:1.137.2.5
--- php-src/ext/mssql/php_mssql.c:1.137.2.4     Mon Nov 15 18:35:50 2004
+++ php-src/ext/mssql/php_mssql.c       Thu Dec  2 21:26:36 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_mssql.c,v 1.137.2.4 2004/11/15 23:35:50 iliaa Exp $ */
+/* $Id: php_mssql.c,v 1.137.2.5 2004/12/03 02:26:36 iliaa Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -800,6 +800,10 @@
                        char *data = charcol(offset);
 
                        length=dbdatlen(mssql_ptr->link,offset);
+                       if (!length) {
+                               ZVAL_EMPTY_STRING(result);
+                               break;
+                       }
 #if ilia_0
                        while (length>0 && data[length-1] == ' ') { /* nuke 
trailing whitespace */
                                length--;

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

Reply via email to