|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-02-04 15:36 UTC] iliaa@php.net
  [2003-02-04 17:05 UTC] php at business-solutions dot at
  [2003-02-05 10:44 UTC] iliaa@php.net
  [2003-02-05 11:20 UTC] php at business-solutions dot at
  [2003-05-01 20:29 UTC] sniper@php.net
  [2003-05-09 07:26 UTC] sniper@php.net
  [2003-08-16 10:00 UTC] abies@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 05:00:02 2025 UTC | 
When executing a script from command line (php -f script.php) i get a segmentation fault after successfully finishing the script. This only happens, when using the ibase functions. Replacing them with mysql everything works fine. executing the script by calling it from a browser it works too. This only happens, when using command-line-interface and ibase-functions. tried the following with same result: - using ibase_prepare, ibase_execute instead of ibase_query - explicit start and commit of transactions - ibase_pconnect instead of ibase_connect Here's the script i use: <?php exec("wget -q http://gateway/accounting/ip.cgi"); $hnd=fopen("ip.cgi","r"); If ($link=ibase_connect("bogus.gdb","xx","xx","WIN1250")) { while (!feof($hnd)) { If ($buf=fgets($hnd)) { $src=""; $dst=""; $bytes="0"; $pack="0"; $buf=trim($buf); if ($buf<>"") { list($src,$dst,$bytes,$pack,$rest)=split(" ",$buf,5); $sql="INSERT INTO AcctInfo(SRC,DST,Bytes,Packets) VALUES ('$src','$dst',$bytes,$pack)"; ibase_query($link,$sql); } } } ibase_close($link); } fclose($hnd); unlink("ip.cgi"); php?>