Page 1 of 1

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

PostPosted: 05. August 2014 19:22
by petruza
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?

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

PostPosted: 05. August 2014 19:36
by JJ_Tagy
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.

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

PostPosted: 05. August 2014 19:37
by Altrea
=> viewtopic.php?f=16&t=55350&p=209223#p209223

Edit: JJ was a little bit faster :D

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

PostPosted: 06. August 2014 00:44
by petruza
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?