Skip to content

Call to undefined function posix_fpathconf() in default configure setting #12725

Closed
@mumumu

Description

@mumumu

Description

The following code:

$ ./sapi/cli/php -r 'echo posix_fpathconf(0, POSIX_PC_LINK_MAX);'

Resulted in this output:

Fatal error: Uncaught Error: Call to undefined function posix_fpathconf() in Command line code:1
Stack trace:
#0 {main}
  thrown in Command line code on line 1

But I expected this output instead:

127

Extra description:

#11774 fixes this issue, but not merged even in RC release cycle.

PHP Version

8.3.0 RC6

Operating System

Ubuntu 22.04

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions