ID:               15665
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: FreeBSD 4.4-STABLE
 PHP Version:      4.1.1
 New Comment:

Please recompile php with debug symbols (--enable-debug) and provide a
backtrace.


Previous Comments:
------------------------------------------------------------------------

[2002-05-29 18:21:10] [EMAIL PROTECTED]

I have very similar thing happening. Script is reading directory with
a
lot of image files, printing them in colors. The script crash as both
mod_php4 in apache and command-line. It crash every time at same
position, however it crash in different positions when called thru
apache and when run from command line. Relevant part of script:

$handle = opendir("/home/pav/images/fit"); 
while ($fajl = readdir($handle)) {
        if ($fajl == "." || $fajl == "..") continue;
        echo '<a href="wow.php3?showme='.$fajl.'" target="_blank"
style="color:
'; 
        if ($rates[$fajl]) echo calclinkcolor($ratingy[$fajl]); 
        else echo calclinkcolor(-1);
        echo '">'.$fajl."</a>\n";
}
closedir($handle);

backtrace
#0  0x2836aaed in readdir_r () from /usr/lib/libc.so.4
(gdb) bt
#0  0x2836aaed in readdir_r () from /usr/lib/libc.so.4
#1  0x8091935 in php_if_readdir ()
#2  0x80ed79c in execute ()
#3  0x80d9171 in zend_execute_scripts ()
#4  0x8062406 in php_execute_script ()
#5  0x8060288 in main ()
#6  0x805f629 in _start ()

PHP 4.2.1, Apache 1.3.24, FreeBSD 4.5-STABLE

------------------------------------------------------------------------

[2002-05-08 04:49:34] [EMAIL PROTECTED]

I had the mkdir problem in 4.1.1 under FreeBSD, but it appears to be
fixed in 4.2.1RC2:

http://bugs.php.net/bug.php?id=17034

------------------------------------------------------------------------

[2002-05-08 04:35:09] [EMAIL PROTECTED]

Ok, ignore that :) Maybe its related?

------------------------------------------------------------------------

[2002-05-08 04:33:49] [EMAIL PROTECTED]

See:

http://bugs.php.net/bug.php?id=16905 (closed)
&&
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/37825 (patch)

Jason

------------------------------------------------------------------------

[2002-04-13 08:55:39] [EMAIL PROTECTED]

forgon to tell you...
apache 1.3.22 and php4.1.1 (both from the ports collection)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/15665

-- 
Edit this bug report at http://bugs.php.net/?id=15665&edit=1

Reply via email to