Page 1 of 1

Problem Relocating php.ini

PostPosted: 24. February 2010 23:34
by jas399
Hi all,
There seems to be something wrong with the relocate function for php.ini in package_php.php (or
relocate_xampp.bat)

If something is added to the default include_path like this

include_path = ".;\xamp\php\PEAR;\xamp\myPhpApp"

and you try to do a relocate with setup_xampp.bat, you will end up with a path which is partially replaced like this:
include_path = ".;\new_xamp_dir\php\PEAR;\xamp\myPhpApp"

i.e only the first occurrence on the line is replaced.

Is this the intended behavior? Is there something that can be done to correct it? I must admit that I'm a noob wrt preg_replace which seems powerful beyond belief.

Rgds
/Anders