Probs with file-entities.php.in and Cygwin
| From: | Thomas Schöfbeck | Date: | Tue, 24 Sep 2002 21:53:00 +0000 |
| Subject: | Probs with file-entities.php.in and Cygwin | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969348804@lists.php.net to get a copy of this message | ||
Hi there,
after a veeeery long break, I try to use some of my still very limited time to follow the list again, and sync at least my "critical" trasnslation-files.
Unfortunately, a configure is not so easy, because the file-entities.ent can't be created at my Cygwin-config.
file-entities.php.in relies in line 56 on @WORKDIR@, which is in fact the return of a 'pwd' and gives therefore /home/....
Since my Cygwin is installed at c:/cygwin, the right absolute path can't be created with pwd.
So is there any reason against letting do PHP the job instead of autoconf and change the line 56 in file-entities.php.in from
$out_dir = abs_path(preg_replace("!^/cygdrive/(\\w)/!", "\\1:/", "@WORKDIR@"));
to e.g.
$out_dir = preg_replace(array("!\\\!","!/scripts$!"), array("/",""), getcwd());
(have I missed something in the hurry)?
Thanks,
Thomas