php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19752 Break causing crash
Submitted: 2002-10-04 05:41 UTC Modified: 2002-10-20 23:32 UTC
From: kkk at escsa dot pl Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 4.2.3 OS: Win98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
3 + 16 = ?
Subscribe to this entry?

 
 [2002-10-04 05:41 UTC] kkk at escsa dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-04 11:38 UTC] sniper@php.net
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)

 [2002-10-20 23:32 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 21:01:30 2024 UTC