Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring PhpReader::read() to check for .php file first #250

Merged
merged 1 commit into from Oct 17, 2011

Conversation

majna
Copy link
Contributor

@majna majna commented Oct 16, 2011

Performance optimization:
PhpReader files are php files by default (including all Cake/Config/ files). Try to include them first.

Fixed error when there's a directory with the same name.
Consider APP/Config/config/ or APP/Config/settings/

Then Configure::load('config'); should throw an exception by reader, not PHP warning.

  • passes tests

…or when there's a directory with the same name.
ADmad added a commit that referenced this pull request Oct 17, 2011
Refactoring PhpReader::read() to check for .php file first
@ADmad ADmad merged commit 1432e78 into cakephp:2.0 Oct 17, 2011
westernmagic pushed a commit to westernmagic/cakephp that referenced this pull request Oct 17, 2011
helps fix a race condition where dbo->defaultConditions could cause
additional data loss.  Fixes cakephp#250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants