php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31426 IIS and mysql_fetch_field
Submitted: 2005-01-06 11:08 UTC Modified: 2005-01-10 09:15 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: guillaume dot jung at usocome dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 5.0.3 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: guillaume dot jung at usocome dot com
New email:
PHP Version: OS:

 

 [2005-01-06 11:08 UTC] guillaume dot jung at usocome dot com
Description:
------------
With the last version of PHP5 mysql_fetch_field block and all scripts are timed out.

Reproduce code:
---------------
function PMA_DBI_get_fields_meta($result) {
    $fields       = array();
    $num_fields   = mysql_num_fields($result);
    for ($i = 1; $i < $num_fields; $i++) {
        $fields[] = PMA_convert_display_charset(mysql_fetch_field($result, $i));
    }
    return $fields;
}

Expected result:
----------------
This code come from phpmyadmin and when I execute sql.php file it blocks.

Actual result:
--------------
Script timed out.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-06 11:30 UTC] georg@php.net
Which mysql client and server version do you use? 
 [2005-01-06 13:19 UTC] guillaume dot jung at usocome dot com
I use MySQL 4.0.21 on Windows 2000 SP4 Server.

After some minutes I receive this message :

<a href="tbl_propertiesHTTP/1.1 502 Gateway Error Server: Microsoft-IIS/5.0 Date: Thu, 06 Jan 2005 12:17:47 GMT Connection: close Content-Length: 186 Content-Type: text/html 
CGI Timeout
The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
 [2005-01-10 02:24 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip


 [2005-01-10 09:15 UTC] guillaume dot jung at usocome dot com
This solved the problem. Is that a bug of PHP 5.0.3 ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 01 12:01:31 2024 UTC