|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-03 09:46 UTC] vielina at hn dot vnn dot vn
I have the same set of php scripts, php 4.0.6 CGI running on:
1-Windows NT 4.0 with IIS4, MySQL, MS-SQL 7; this works fine;
2-Windows 2000 server with IIS5, MySQL, MS-SQL 7; this works fine;
3-Windows 2000 advanced server with IIS5, MySQL, MS-SQL 7; this works
fine;
4-Windows 2000 advanced server with IIS5, MySQL, MS-SQL 2000; this still
works except that a curious error occurs:
Im using a lot of Header ("location: some.php") for redirections. In this
particular installation, right after the call of header function, the browser
still gets the right URI, but then it issues the following error (a copy
again here):
<message>
CGI ERROR
CGI application misbehaved by not returning a complete set of
headers.The headers that it did return are:
</message>
The funny thing was that if I refresh the page then it works just fine.
When I look back at the 4 installations, the only difference was the installation 4: MS-SQL 2000.
I later made another test: from the installation 3, I made an upgrade of MS SQL from 7.0 to 2000. The same problem happened.
I have tested with php 4.1.2 and 4.0.6. I had the same symptoms with both versions
Is there anything in php_mssql that does the job with MS-SQL 2000 but has some sort of side-effect that causes the above strange bug?
Would any one spend time looking into the code? It
would help us a lot.
Thank you very much!
Loi Le V.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 09:00:02 2025 UTC |
Same problem, slightly different case... win2000 running php.exe 4.2.1 (and mssql 2000) seems to happen mostly during redrects like... header("Method: GET"); header("Status: 302 Moved"); header("Location: ". $ABSOLUTE_URL); some claim they solved this problem by applying the workaround by microsoft (Q160422). others say they have fixed this by blanking out the doc_root in php.ini I still have this problempart for my connection class as fllow -------------------------------------- class Connection{ var $CID; var $Status=0; //Establish Connection to SQL Server function open($Host=CON_HOST,$User=CON_USER,$Pwd=CON_PWD){ if($this->Status==1) return $this->CID; $this->CID=mssql_connect($Host, $User, $Pwd); mssql_select_db(CON_DB); $this->Status=1; return $this->CID; } function execute($sql){ mssql_query($sql,$this->CID); return mssql_rows_affected($this->CID); } //Close Connection function close(){ return mssql_close($this->CID); } } // end class