php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1002 Mysql Crashes using PHP mysql_numrows($result)
Submitted: 1998-12-23 08:11 UTC Modified: 1998-12-23 09:33 UTC
From: maverick at im2 dot im dot tku dot edu dot tw Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.5 OS: FreeBSD 3.0-RELEASE Apache_1.3.3
Private report: No CVE-ID: None
 [1998-12-23 08:11 UTC] maverick at im2 dot im dot tku dot edu dot tw
$result=mysql($database,"select tcode from thenet $index $index1");
$datanum=mysql_numrows($result);

when $resule nothing
then mysql_numrows($result) whill  crash mysqld
system display  this error message
pid 24903 (mysqld), uid 0: exited on signal 11

use php-3.0.5 & 3.0.6 have the same problem
mysql-3.21.33 & 3.22.13

i compiled mysql use freebsds threads lib like this
--with-named-thread-libs=-lc_r

is this touch off this problem ??

or i should mit-threads......

thanks..


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-12-23 09:33 UTC] rasmus
This cannot possibly be a PHP bug.  Sounds to me like a question for the MySQL people and not something that should be submitted as a bug in PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC