Req #73040 [Ver]: Remove usages of getdtablesize from ext/standard/php_fopen_wrapper.c

From: Date: Wed, 07 Sep 2016 17:06:42 +0000
Subject: Req #73040 [Ver]: Remove usages of getdtablesize from ext/standard/php_fopen_wrapper.c
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-203858@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73040&edit=1

 ID:                 73040
 User updated by:    subins2000 at gmail dot com
 Reported by:        subins2000 at gmail dot com
 Summary:            Remove usages of getdtablesize from
                     ext/standard/php_fopen_wrapper.c
 Status:             Verified
 Type:               Feature/Change Request
 Package:            Compile Failure
 Operating System:   Ubuntu 16.04 Xenial Xerus
 PHP Version:        7.1.0RC1
 Block user comment: N
 Private report:     N

 New Comment:

Okay.

I caught this error while cross compiling for Android. Android has already removed getdtablesize()


Previous Comments:
------------------------------------------------------------------------
[2016-09-07 16:15:24] cmb@php.net

Good catch, thanks for reporting! This issue might even be
regarded as being a bug.

However, according to the Open Group
specification of getdtablesize()[1], getrlimit() should be called
instead of using OPEN_MAX.

[1] <http://pubs.opengroup.org/onlinepubs/7908799/xsh/getdtablesize.html>

------------------------------------------------------------------------
[2016-09-07 14:48:03] subins2000 at gmail dot com

Description:
------------
The getdtablesize function is removed since 2004, here is the link: https://code.google.com/p/android/issues/detail?id=74387

It should be replaced with OPEN_MAX



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=73040&edit=1


Thread (3 messages)

« previous php.bugs (#203858) next »