From: [EMAIL PROTECTED] Operating system: Linux (Kernel 2.4.20) PHP version: 4.3.0 PHP Bug Type: InterBase related Bug description: when using Command-Line-Interpreter getting sgementation fault on Exit
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?> -- Edit bug report at http://bugs.php.net/?id=22056&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22056&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22056&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22056&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22056&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22056&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22056&r=support Expected behavior: http://bugs.php.net/fix.php?id=22056&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22056&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22056&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22056&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22056&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22056&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22056&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22056&r=gnused