Bug #60696 [Opn]: Large Integers problem

From: Date: Tue, 03 Apr 2012 01:39:51 +0000
Subject: Bug #60696 [Opn]: Large Integers problem
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-169174@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60696&edit=1

 ID:                 60696
 Updated by:         yohgaki@php.net
 Reported by:        danhen at web dot de
 Summary:            Large Integers problem
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Windows
 PHP Version:        5.4.0RC5
 Block user comment: N
 Private report:     N

 New Comment:

Could you or anyone try see if this happens with other PDO drivers?

$iTest is overflowed (i.e. larger than 31^2), but this should not matter.


Previous Comments:
------------------------------------------------------------------------
[2012-01-10 05:20:22] danhen at web dot de

Description:
------------
If large integer values ​​are defined in the source code, connecting to MSSQL-Server
fails.

Setup:
Windows Vista
PHP5.4 RC5
php_pdo_sqlsrv as additional extension

The code which defines the value doesn't need to be executed. It's enough defining such
values before connecting to mssql (inside a previous loadad class in my case). When 9999999990 is
changed to 999999999 everything is fine.

Test script:
---------------
<?php
$iTest = 1;

if($iTest < 9999999990) {
  //do something;
}

$oTest = new PDO('sqlsrv:Server=server;Database=db', 'user', 'pass');



Expected result:
----------------
Blank page for apache, no output for CLI

Actual result:
--------------
PDOException with message:
SQLSTATE[IMSSP]: Failed to retrieve the server version. Unable to continue.


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=60696&edit=1


Thread (9 messages)

« previous php.bugs (#169174) next »