|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9438 Error retrieving image field from MSSQL database
Submitted: 2001-02-24 20:27 UTC Modified: 2001-06-30 15:27 UTC
From: lbf at mail dot ru Assigned:
Status: Closed Package: MSSQL related
PHP Version: 4.0.4pl1 OS: Win2000 Prof SP1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
17 - 7 = ?
Subscribe to this entry?

 [2001-02-24 20:27 UTC] lbf at mail dot ru
When I try to retrieve image field from MSSQL7 database I get "PHP has encountered an Access Violation at 77FCA9EA" and all PHP engine becomes unstable after this. The script is very simple:

    $rs=mssql_query("select Image from SpecBannerData where SpecBannerID=" . $id,$conn);
    if ($arr)
        header( "Content-type: image/jpg");
        echo $arr[0];

        if (!$conn)
            echo ("Can not connect to the database");
        if (!mssql_select_db("metasearch",$conn))
            echo ("Can not connect to the database");

I'm quite new in PHP, but I met some other people report the same problems in PHP-related forums. I used only precompiled PHP modules downloaded from

Best regards,
Leonid Freidin


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 15:27 UTC]
Handling of binary data is changed for php4.0.6. Please update and try again.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 08:01:30 2024 UTC