ID: 44068
Updated by: [EMAIL PROTECTED]
Reported By: nda at acoservices dot be
-Status: Open
+Status: Bogus
Bug Type: Apache2 related
Operating System: Windows XP SP2
PHP Version: 5.2.5
New Comment:
If you had bothered doing the search using 'my_thread_global_end' as
query you would have found couple of dozen reports (closed/bogused) and
also the solutions..
Previous Comments:
------------------------------------------------------------------------
[2008-02-07 09:49:16] nda at acoservices dot be
Description:
------------
Using a MaxDB_query inside a while from another Max_DB query makes
Apache (version 2.2.6) to crash.
PHP.INI
maxdb extention unable, dll version 5.2.5.5.
[maxdb]
maxdb.default_host=aco-portable
maxdb.default_db=IDTECH
maxdb.default_user=IDTECH
maxdb.default_pw=*****
Reproduce code:
---------------
<?php
$today=date("Y-m-d")." 00:00:00.000000";
$link=maxdb_connect() or die("Connection failed :
".maxdb_connect_error());
$query_users= "Select * from ptage_infotel where d_contrat<='$today'
and d_contrat_fin>='$today' order by name";
$result_users= maxdb_query($link,$query_users) or die("Request failed :
".maxdb_error($link));
while ($users=maxdb_fetch_array($result_users)){
echo $users[1].'<br>';
$id_user=$users[0];
if(isset($users[3])){
$query_user= "Select * from ptage_infotel where d_contrat<='$today' and
d_contrat_fin>='$today' and badge='$id_user' order by day DESC, time
ASC";
$result_user= maxdb_query($link,$query_user) or die("Request failed :
".maxdb_error($link));
while ($user=maxdb_fetch_array($result_user)){
echo $users[3].'<br>';
}}}
?>
Expected result:
----------------
Print name and time for each users.
Actual result:
--------------
Apache crash with error log : "Error in my_thread_global_end(): 252
threads didn't exit"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44068&edit=1