PHP 4.0 Bug #6820 Updated: readdir function cause php core dump while reading second entry
| From: | Bug Database | Date: | Thu, 21 Sep 2000 02:13:39 +0000 |
| Subject: | PHP 4.0 Bug #6820 Updated: readdir function cause php core dump while reading second entry | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33583@lists.php.net to get a copy of this message | ||
ID: 6820
Updated by: sniper
Reported By: robert@ahoj.pl
Status: Closed
Bug Type: Directory function related
Assigned To:
Comments:
Fixed in CVS. Please try latest CVS or snapshot from http://snaps.php.net/
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-09-20 21:46:53] robert@ahoj.pl
<?
$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 ()
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6820