php / php/php-src

Default extension location for Windows relative to php.exe

Open
#11,596 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature OS: Windows Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

Please can the default extension location be set to the ext directory in the same directory as the php.exe

It seems that the default location without an ini file loaded is
extension_dir => C:\php\ext => C:\php\ext

That would work if php was installed in C:\php

But not if its installed in C:\util\php or C:/php5.6.4 see related issue.

I know that the extension location can be specified in the php.ini,
however usage of sensible default values can prevent superflous/unnecessary configuration

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 tracing how the Windows build determines extension_dir when no php.ini is loaded, using php.exe as the installation reference. Compare installations under C:\php, C:\util\php, and C:/php5.6.4, and verify that the default points to the sibling ext directory without requiring configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, php
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.