From 89fff390def30cec00bb9a186cbcbe86ea2e5958 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Mon, 1 Nov 2004 20:17:20 +0000 Subject: Deal with backslashes in the file names, translate them to forward slashes. This is necessary e.g. for pear-DIME, which uses backslashes. --- lang/php/pear_plist.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lang/php') diff --git a/lang/php/pear_plist.php b/lang/php/pear_plist.php index 682a6a22ec4..405240df295 100644 --- a/lang/php/pear_plist.php +++ b/lang/php/pear_plist.php @@ -1,5 +1,5 @@ $v) { break; } + # replace backslashes with forward slashes in the path name, for + # pear packages written by non-UNIX oriented authors. + $f = str_replace('\\', '/', $f); echo "{$PEAR_LIB}/{$prefix}{$f}\n"; -- cgit v1.2.3