Bug #60696 [NEW]: Large Integers problem

From: Date: Tue, 10 Jan 2012 05:20:22 +0000
Subject: Bug #60696 [NEW]: Large Integers problem
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-166311@lists.php.net to get a copy of this message
From:             
Operating system: Windows
PHP version:      5.4.0RC5
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Large Integers problem

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 bug report at https://bugs.php.net/bug.php?id=60696&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=60696&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=60696&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=60696&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=60696&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60696&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=60696&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=60696&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=60696&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=60696&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=60696&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=60696&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=60696&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=60696&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=60696&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=60696&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60696&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=60696&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=60696&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=60696&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=60696&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=60696&r=mysqlcfg



Thread (9 messages)

« previous php.bugs (#166311) next »