Re: Bug #1524: sigsev trying to use mysql

From: Date: Thu, 10 Jun 1999 21:08:25 +0000
Subject: Re: Bug #1524: sigsev trying to use mysql
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-6808@lists.php.net to get a copy of this message
On Thu, Jun 10, 1999 at 07:55:59PM -0000, nytral@endirect.qc.ca wrote: > From: nytral@endirect.qc.ca > Operating system: linux 2.2.9/debian 2.1 > PHP version: 3.0.8 > PHP Bug Type: MySQL related > Bug description: sigsev trying to use mysql > > mysql 3.22.21 on linux seems incompatible with functions/mysql.c from 3.0.8 and up.. > if I take mysql.c from 3.0.7 and put it in 3.0.9 tree, no problem. > if I try the 3.0.9, when mysql_connect() is succcessful here is what i get in the logs: > Block 0x084208D0 status at variables.c:77: > Beginning: Cached (allocated on functions/string.c:1318, 5 bytes) > End: OK > --------------------------------------- > --------------------------------------- > Block 0x08421908 status at variables.c:77: > Beginning: Overrun (magic=0x4011A648, expected=0x7312F8DC) > End: Unknown > if it's not successful, i get proper error messages. Does it work, if you apply the attached patch? -- Regards, Sascha Schumann Consultant

Index: mysql.c =================================================================== RCS file: /repository/php3/functions/mysql.c,v retrieving revision 1.181 diff -u -r1.181 mysql.c --- mysql.c 1999/04/13 20:30:07 1.181 +++ mysql.c 1999/06/10 20:07:08 @@ -1497,6 +1497,7 @@ } if (result_type & MYSQL_NUM) { add_index_stringl(return_value, i, data, data_len, should_copy); + should_copy=1; } if (result_type & MYSQL_ASSOC) { add_assoc_stringl(return_value, mysql_field->name, data, data_len, should_copy);
« previous php.dev (#6808) next »