Edit report at https://bugs.php.net/bug.php?id=60696&edit=1
ID: 60696 Comment by: danhen at web dot de 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: Have tried other PDO-Drivers. It only happens on pdo_sqlsrv. So what was changed in 5.4 integer Handling? The broken Code in 5.4 works fine in 5.3 and earlier Versions. Previous Comments: ------------------------------------------------------------------------ [2012-04-03 01:39:51] yohg...@php.net 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. ------------------------------------------------------------------------ [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