Config class conflict with xamppfiles\lib\php\config.php

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Config class conflict with xamppfiles\lib\php\config.php

Postby petruza » 05. August 2014 19:22

What is xamppfiles\lib\php for?
And I see that path is in PHP's include_path but it's not set in php.ini so I guess XAMPP includes it internally.
What do those php files do and why are they included by default?

I just installed an application that does include('config.php'); trying to reference a file from the same path, but ends up including xamppfiles\lib\php\config.php instead and has a name clash with class Config.

How can I avoid including XAMPP's php files or otherwise avoid this problem?
petruza
 
Posts: 11
Joined: 27. September 2009 19:29

Re: Config class conflict with xamppfiles\lib\php\config.php

Postby JJ_Tagy » 05. August 2014 19:36

I remember this from before. Perhaps read this thread: viewtopic.php?f=16&t=55350&hilit=config.php

Basically, if the path is not referenced, it uses the first loaded resource.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: Config class conflict with xamppfiles\lib\php\config.php

Postby Altrea » 05. August 2014 19:37

=> viewtopic.php?f=16&t=55350&p=209223#p209223

Edit: JJ was a little bit faster :D
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Config class conflict with xamppfiles\lib\php\config.php

Postby petruza » 06. August 2014 00:44

Ok thanks!
So I go back to my first question then, What is xamppfiles\lib\php for?
Are those kind of XAMPP's own libraries? what do they do? is there any documentation for that?
petruza
 
Posts: 11
Joined: 27. September 2009 19:29


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 106 guests