From: peter dot bernholt at hec dot de
Operating system: Windows XP
PHP version: 4.3.11
PHP Bug Type: CGI related
Bug description: CGI Error with mssqlselect
Description:
------------
Hi all,
I am using PHP with IIS ,Windows XP and SQL Server 2000. The Function
mssql_query causes an error, when there is an result of an
Select-Statement (not true or false). Update, insert and delete works
fine. A select with an empty table is ok, true ("true").
I am not using the "header"-function!
Regards, Peter
Reproduce code:
---------------
$connection=mssql_connect($server,$username,$password);
@mssql_select_db($database,$connection) or die( "Unable to select
database");
$sqlquery="Select * FROM Tablename";
$result= mssql_query($sqlquery);
Expected result:
----------------
The Table contains one row, i would expect to get the result in $result.
Actual result:
--------------
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:
--
Edit bug report at http://bugs.php.net/?id=33284&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33284&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33284&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33284&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33284&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33284&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33284&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33284&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33284&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33284&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33284&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33284&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33284&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33284&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33284&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33284&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33284&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33284&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33284&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33284&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33284&r=mysqlcfg