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

From: Date: Tue, 30 Dec 2014 10:41:41 +0000
Subject: Bug #53966 [Fbk->NoF]: convertion NULL value in integer 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189403@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:       php-bugs@lists.php.net
 Reported by:      julien dot fabre at pg-soft dot fr
 Summary:          convertion NULL value in integer 0
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          MSSQL related
 Operating System:  Windows XP SP3
 PHP Version:      5.2.17
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2014-07-15 22:35:41] yohgaki@php.net

I don't see vote for this bug. Do you still have this problem?

------------------------------------------------------------------------
[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


Thread (3 messages)

« previous php.bugs (#189403) next »