Bug #53966 [Opn->Fbk]: convertion NULL value in integer 0

From: Date: Tue, 15 Jul 2014 22:35:42 +0000
Subject: Bug #53966 [Opn->Fbk]: convertion NULL value in integer 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186649@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53966&edit=1 ID: 53966 Updated by: yohgaki@php.net Reported by: julien dot fabre at pg-soft dot fr Summary: convertion NULL value in integer 0 -Status: Open +Status: Feedback Type: Bug Package: MSSQL related Operating System: Windows XP SP3 PHP Version: 5.2.17 Block user comment: N Private report: N New Comment: I don't see vote for this bug. Do you still have this problem? Previous Comments: ------------------------------------------------------------------------ [2011-02-09 00:21:39] julien dot fabre at pg-soft dot fr Description: ------------ --- From manual page: http://www.php.net/function.mssql-fetch-object#Valeurs de retour --- System Windows NT BLISS 5.1 build 2600 Build Date Jul 21 2010 18:41:42 Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--without-pi3web" Server API Apache 2.0 Handler Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File C:\WINDOWS\php.ini Scan this dir for additional .ini files (none) additional .ini files parsed (none) PHP API 20041225 PHP Extension 20060613 Zend Extension 220060519 Debug Build no Thread Safety enabled Zend Memory Manager enabled IPv6 Support enabled Registered PHP Streams php, file, data, http, ftp, compress.zlib, zip, sqlsrv Registered Stream Socket Transports tcp, udp Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* Test script: --------------- in MS SQL server 2000 : Foo bit null authorised Bar integer null authorised select Foo , Bar from BF result in MS SQL: <NULL>,<NULL> in php you have 0,NULL a bit at NULL is automaticly convert to 0 Expected result: ---------------- you must have result in MS SQL: <NULL>,<NULL> in php you have NULL,NULL ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53966&edit=1

« previous php.bugs (#186649) next »