Bug #15316 Updated: Segmentation fault on Interbase blob creation

From: Date: Fri, 01 Feb 2002 09:15:21 +0000
Subject: Bug #15316 Updated: Segmentation fault on Interbase blob creation
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78752@lists.php.net to get a copy of this message
ID: 15316 Updated by: sander Reported By: bknotts@europa.com Old Status: Open Status: Feedback Bug Type: InterBase related Operating System: Linux 2.4.17-xfs PHP Version: 4.1.1 New Comment: Can you provide a backtrace? (see http://bugs.php.net/bugs-generating-backtrace.php) Previous Comments: ------------------------------------------------------------------------ [2002-01-31 13:08:32] bknotts@europa.com Here is my configure line: ./configure --with-apxs --with-mysql=/usr --enable-track-vars --with-ldap --with-unixODBC=/usr --with-mcrypt --with-interbase=/opt/interbase --with-gd=/usr ------------------------------------------------------------------------ [2002-01-31 13:04:21] bknotts@europa.com When I try to insert an image into a blob, a segmentation fault occurs in apache. This all worked fine in previous versions of php that I used (4.0.4 - 4.0.6). I have recreated this segfault on two different machines, with PHP as DSO, and compiled-in. Here is what seems to be the offending code in my script: if ($ibaseconn) { $blob_id = ibase_blob_create(); $blob_id_str = ibase_blob_close($blob_id); if ($noDB != "1") { ibase_query("UPDATE WN_Client_Data SET WN_Client_DataLogo=?, WN_Client_DataLogoType = '$thisType' WHERE WN_ClientID = '$WN_ClientID'",$blob_id_str); } else { ibase_query("INSERT INTO WN_Client_Data (WN_ClientID, WN_Client_DataLogo, WN_Client_DataLogoType, WN_Client_DataBriefDesc, WN_Client_DataExtDesc) VALUES ((SELECT WN_ClientID FROM WN_User WHERE WN_UserUserName='$HTTP_COOKIE_VARS[directUser]'), ?, ,'','', '');",$blob_id_str); } } ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15316&edit=1

« previous php.dev (#78752) next »