[PHP-DEV] PHP 4.0 Bug #8049: missing argument in readir_r function call From: xn04451 <email protected>
Date: 11/30/00

From: xn04451 <email protected>
Operating system: Solaris 2.6
PHP version: 4.0.3pl1
PHP Bug Type: Compile Failure
Bug description: missing argument in readir_r function call

Hi,

my system is :
Solaris 2.6 on Sparc-Ultra 10

Installation :

apache 1.3.14
php4.0.3pl1

with mysql and gd

i got the error that in
reentrancy.c line 106 # ret = readdir_r(dirp, entry); located in php-4.0.3pl1/main and compiling aborted

2 arguments are passed to readdir_r, but 3 are exprected

i fixed it the following way
ret = readdir_r(dirp, entry, &result);

Compiling problems dissapeared.

Maybe that solution is not 100% correct, but if you could take a look at it, it would be very nice if you could tell, if i can leave it hat way.

-- 
Edit Bug report at: http://bugs.php.net/?id=8049&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>