Skip to content

max_execution_time always 0 on Windows #2474

@Serveronet

Description

@Serveronet

What happened?

max_execution_time in phpinfo() is always 0 on Windows.
As a result script times out with: Maximum execution time of 5 seconds exceeded.

The problem is on Windows only.
Steps to reproduce.

  • Fetch windows zip
  • Unzip
  • Place index.php with <?php phpinfo();
  • Start frankenphp with .\frankenphp.exe php-server
  • Observe in phpinfo max_execution_time 0 0

Notes:
Setting max_execution_time through php.ini or Caddyfile makes no difference.
On linux works correctly with default and also setting have proper effect max_execution_time 30 30
v1.12.4

Build Type

Static binary

Worker Mode

No

Operating System

Windows

CPU Architecture

x86_64

PHP configuration

phpinfo() output
Without php.ini

Relevant log output

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions