#19752 [Opn->Fbk]: Break causing crash

From: Date: Fri, 04 Oct 2002 16:38:37 +0000
Subject: #19752 [Opn->Fbk]: Break causing crash
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21498@lists.php.net to get a copy of this message
ID: 19752 Updated by: sniper@php.net Reported By: kkk@escsa.pl -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Win98 PHP Version: 4.2.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip Also, if the crash still happens with that snapshot, then please provide a complete, short and self-contained sript which does't have any database functions in it. (unless of course the reason for the crash is in those) Previous Comments: ------------------------------------------------------------------------ [2002-10-04 05:41:47] kkk@escsa.pl This script crashes php: $stan_sql= "SELECT * FROM check_rozkaz ($id_roz)"; $start = time()+15; $licz=0; while ($start >= $obecna_godz){ $obecna_godz = time(); $trans = ibase_trans (IBASE_NOWAIT,$polaczenie); $stan = ibase_query($trans , $stan_sql); while ($row = ibase_fetch_object ($stan)) { $nazwa_tabeli = $row->AT_1; if ($nazwa_tabeli == "XT1") {$licz++; break 2; } } ibase_commit($trans); } When I change Break to 1 or 3 it works but the script wait for the time loop to end. This function worked on linux without crash. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19752&edit=1

« previous php.bugs (#21498) next »