php / php/frankenphp

max_execution_time always 0 on Windows

Open
#2,474 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Go
Stars
11.3k
Forks
488
Avg merge
4d 10h
Merged PRs (30d)
11

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the Windows static binary and frankenphp.exe php-server, then inspect the entry points responsible for phpinfo() and max_execution_time initialization. Verify the result with and without php.ini or Caddyfile settings; done means Windows reports and applies the configured execution limit as Linux does.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, php
Domain
backend, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.