PHP 4.0 Bug #6820: readdir function cause php core dump while reading second entry
| From: | robert at ahoj dot pl | Date: | Thu, 21 Sep 2000 01:46:54 +0000 |
| Subject: | PHP 4.0 Bug #6820: readdir function cause php core dump while reading second entry | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33582@lists.php.net to get a copy of this message | ||
From: robert@ahoj.pl
Operating system: SunOS 5.8 Generic i86pc i386 i86pc
PHP version: 4.0.2
PHP Bug Type: Directory function related
Bug description: readdir function cause php core dump while reading second entry
<?
$fi=opendir("./");
echo readdir($fi); //ok
echo readdir($fi); //and now dumps core :(
closedir($fi);
?>
---------------------
apache compiled with gcc
configure line:
./configure \
"--with-layout=Apache" \
"--prefix=/usr2/web/apache" \
"--exec-prefix=/usr2/web/apache" \
"--activate-module=src/modules/php4/libphp4.a" \
"--enable-module=log_referer" \
---------------------
php compiled
'./configure \
--with-apache=/usr2/web/src/apache_1.3.12'
'--with-mysql=/usr2/mysql/'
'--with-db'
'--with-gdbm=/usr/local'
'--disable-debug'
'--enable-track-vars'
'--with-gd=/usr/local'
---------------------
from gdb
#0 0x80fdcc8 in execute ()
#1 0xdfbd31a9 in ?? ()
#2 0x8070bc0 in php_execute_script ()
#3 0x80e15ac in apache_php_module_main ()
#4 0x806e37a in send_php ()
#5 0x806e3b2 in send_parsed_php ()
#6 0x811f595 in ap_invoke_handler ()
#7 0x81339cc in ap_some_auth_required ()
#8 0x8133a36 in ap_process_request ()
#9 0x812ab57 in ap_child_terminate ()
#10 0x812ad19 in ap_child_terminate ()
#11 0x812ae92 in ap_child_terminate ()
#12 0x812b4b4 in ap_child_terminate ()
#13 0x812bcdc in main ()
#14 0x806d6df in _start ()