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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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