From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.17-xfs
PHP version:      4.1.1
PHP Bug Type:     InterBase related
Bug description:  Segmentation fault on Interbase blob creation

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 bug report at: http://bugs.php.net/?id=15316&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to