|  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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: mail_konstantin at bk dot ru
New email:
PHP Version: OS:


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

Reproduce code:
$conn  = mysql_connect("localhost", "root", "password");
if ($conn) {
print "It worked...";
} else {
print "There was a problem";
$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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-18 19:49 UTC]
Please try using this CVS snapshot:
For Windows:

 [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]
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 for *NIX and 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 Jun 22 12:01:30 2024 UTC