php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8049 missing argument in readir_r function call
Submitted: 2000-11-30 07:25 UTC Modified: 2000-11-30 21:20 UTC
From: xn04451 at dgbank-dip dot de Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3pl1 OS: Solaris 2.6
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: xn04451 at dgbank-dip dot de
New email:
PHP Version: OS:

 

 [2000-11-30 07:25 UTC] xn04451 at dgbank-dip dot de
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-30 21:20 UTC] sniper@php.net
This is already fixed in CVS. 
Please try latest snapshot from http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 16:00:01 2026 UTC