cakephp / cakephp/phinx

Conflict with env function

Open
#1,647 10 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug major
Dominant language
PHP
Stars
4.5k
Forks
884
PR merge metrics
No merged PRs in 30d

Description

Hi.
My site stopped working because I have a env function to return environment variables and I just realized this library use CakePHP, that defines another env function before, so the site was using the cake's function that have a different behaviour.
Is there any way to have phinx installed without having these functions defined by default? (Maybe using a phar file or something like that).

Thanks!

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

No files or tests are named in the issue. Start by tracing where the conflicting CakePHP env function is loaded and review how Phinx is installed; done means providing a supported installation or loading approach that avoids the global function collision.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.