php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21435 termination when calling mysql_info()
Submitted: 2003-01-05 13:09 UTC Modified: 2003-01-07 04:37 UTC
From: drews at laborox dot com Assigned: georg (profile)
Status: Closed Package: MySQL related
PHP Version: 4.3.0 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-01-05 13:09 UTC] drews at laborox dot com
when calling mysql_info() apache 1.3.24 terminates with an error: "The instruction at "0x100c1588" referenced memory at "0x0000000a". the memory could not be "read" [ok/debug]. M$ debug gives 
"100C1588  cmp         byte ptr [eax+8],7"

script when calling:
<?php
$vk = mysql_pconnect($host, $user, $pass)
          or die ();
      mysql_select_db($database, $vk)
          or die ();
$sql = "select * from user";
$result = mysql_query($sql, $vk);
if($result)
{
  while ($row = mysql_fetch_array($result))
  {
    echo $row[0]; 
  }
}
echo mysql_info($vk);
?>

regards,

-Wolfgang

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-05 13:11 UTC] derick@php.net
As you have MSVC, would you be able to provide a stack trace (which you should have on the screen when you see those assembler code lines)?

Derick
 [2003-01-05 14:25 UTC] georg@php.net
verified... assigned to myself
 [2003-01-05 15:11 UTC] georg@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-01-06 18:13 UTC] gothfather at zotteltier dot de
I think this is not the solution ... i just downloaded the 22:30 Snapshot of Jan 01st (stabel 4.3.0) and I get a SegVault calling mysql_info($vk).

calling mysql_info() (without parameter) seems to work!
 [2003-01-07 03:36 UTC] georg@php.net
I changed something yesterday again, please try the lastest snapshot.
 [2003-01-07 04:37 UTC] drews at laborox dot com
thanx georg, latest snap (4.4.x dev) works now at least for me.

greetings

-Wolfgang
 [2003-01-07 05:44 UTC] gothfather at zotteltier dot de
Sorry Jan 01st must be Jan 06th ... 22:30 ... and 4.3.0-dev does not work ... till this Version ... :(
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 20:01:35 2024 UTC