php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39189 Segmentation fault in mysql_fetch_field function
Submitted: 2006-10-18 19:46 UTC Modified: 2006-10-26 01:00 UTC
From: mail_konstantin at bk dot ru Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 5.1.6 OS: Linux v2.6.15
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail_konstantin at bk dot ru
New email:
PHP Version: OS:

 

 [2006-10-18 19:46 UTC] mail_konstantin at bk dot ru
Description:
------------
Segmentation fault.

Reproduce code:
---------------
<?
$conn  = mysql_connect("localhost", "root", "password");
if ($conn) {
print "It worked...";
} else {
print "There was a problem";
}
mysql_select_db("teach_db",$conn);
$sql = "SELECT * FROM group_tbl";
$result = mysql_query($sql);
print "$result\n";
$fild = mysql_fetch_field($result);
print "$fild->name\n";
?>


Expected result:
----------------
I want see name of column

Actual result:
--------------
Segmentation fault.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-18 19:49 UTC] tony2001@php.net
Please try using this CVS snapshot:

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


 [2006-10-18 20:14 UTC] mail_konstantin at bk dot ru
I have tried CVS snapshot, but the problem has remained. 4 version works normally.Please help.
 [2006-10-18 20:19 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2006-10-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 17:01:58 2024 UTC