From:             tirny at mail dot ru
Operating system: freeBSD 5.1p10
PHP version:      4.3.4RC2
PHP Bug Type:     IMAP related
Bug description:  imap_thread Apache2 signal Segmentation fault

Description:
------------
On RHL7.3 Apache2.0.44 PHP4.3.4 (cclient - do not remember version)- is
work fine.
Changing OS & soft on freeBSD, Apache2.0.47, 4.3.4RC1, cclient-2002d,1 not
work:
script terminated after 30s (in my news group 5 messages)
and in apache error log this:
child pid 21979 exit signal Segmentation fault (11)

Reproduce code:
---------------
<?php

  $nntp = imap_open("{news.mydomain.tld:119/nntp}newsgroup", "", "");

  $headers = imap_headers($nntp);
   
  $threads = imap_thread($nntp);
   
  while (list($key, $val) = each($threads)) {
    $tree = explode(".", $key);
    if ($tree[1] == "num") {
      print "<ul>\n<li>" . $headers[$val - 1] . "\n";
    }
    else if ($tree[1] == "branch") {
      print "</ul>\n";
    }
  }
  imap_close($nntp);

?>



-- 
Edit bug report at http://bugs.php.net/?id=26015&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26015&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26015&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26015&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26015&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26015&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26015&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26015&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26015&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26015&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26015&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26015&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26015&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26015&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26015&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26015&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26015&r=float

Reply via email to