|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-11 13:22 UTC] sniper@php.net
[2005-08-11 14:35 UTC] mihkel at art dot tartu dot ee
[2005-08-11 14:47 UTC] mihkel at art dot tartu dot ee
[2005-08-11 14:49 UTC] mihkel at art dot tartu dot ee
[2005-08-11 15:20 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 08:00:01 2025 UTC |
Description: ------------ Database: MS-SQL Server 2000 (in case it is important) See code below. Expecting it to NOT hang forever and produce some output. Unfortunately - if ANY of the lines with crash comment behind them is present it will hang forever (until web-server timeout). 'user' - is a present field of type char(20) and value is never NULL. 'kursjuh' - is a present field of type char(1) and will result a crash only if field value is NULL. PHP fails to produce error log - so, no info there. Reproduce code: --------------- $db=new COM("ADODB.Connection"); $db->Open("Driver={SQL Server};Server=***;Database=***;"); $dta=$db->Execute("SELECT * FROM Qigus"); while(!$dta->EOF) { echo $dta->Fields['kursjuh']->Value; // crash echo $dta['kursjuh']; // crash echo $dta['user']; // works fine echo trim($dta['user']); // crash $dta->MoveNext(); }