PHP 4.0 Bug #2445: calling pgsql_fetch_array with 3 args causes segfault

From: Date: Tue, 05 Oct 1999 17:43:15 +0000
Subject: PHP 4.0 Bug #2445: calling pgsql_fetch_array with 3 args causes segfault
Groups: php.dev 
Request: Send a blank email to php-dev+get-11549@lists.php.net to get a copy of this message
From: brian@soda.berkeley.edu Operating system: FreeBSD 4-CURRENT PHP version: 4.0 Beta 2 PHP Bug Type: Reproduceable crash Bug description: calling pgsql_fetch_array with 3 args causes segfault Apply the following patch to fix the bug: --- php-4.0b2/ext/pgsql/pgsql.c.old Mon Aug 2 12:16:49 1999 +++ php-4.0b2/ext/pgsql/pgsql.c Tue Oct 5 10:33:26 1999 @@ -883,7 +883,7 @@ } break; case 3: - if (getParameters(ht, 2, &result, &row, &arg3)==FAILURE) { + if (getParameters(ht, 3, &result, &row, &arg3)==FAILURE) { RETURN_FALSE; } convert_to_long(arg3);

« previous php.dev (#11549) next »