nlopess Mon Aug 1 07:00:29 2005 EDT
Modified files:
/phpdoc/scripts missing-entities.php.in
Log:
try tp fix the windows missing ids search when using cygwin's openjade &
standard PHP (usual setup)
http://cvs.php.net/diff.php/phpdoc/scripts/missing-entities.php.in?r1=1.17&r2=1.18&ty=u
Index: phpdoc/scripts/missing-entities.php.in
diff -u phpdoc/scripts/missing-entities.php.in:1.17
phpdoc/scripts/missing-entities.php.in:1.18
--- phpdoc/scripts/missing-entities.php.in:1.17 Wed Feb 9 18:46:00 2005
+++ phpdoc/scripts/missing-entities.php.in Mon Aug 1 07:00:27 2005
@@ -17,7 +17,7 @@
| Gabor Hojtsy <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: missing-entities.php.in,v 1.17 2005/02/09 23:46:00 hholzgra Exp $
+ $Id: missing-entities.php.in,v 1.18 2005/08/01 11:00:27 nlopess Exp $
*/
set_time_limit(0);
@@ -36,10 +36,15 @@
$NSGMLS_OUTPUT = "missing-entities.out";
// Support for Windows systems
-if (substr(PHP_OS, 0, 3) == 'WIN') {
- $NSGMLS = str_replace("/", "\\", "$NSGMLS");
+$windows = (strpos(PHP_OS, 'WIN') !== false);
+
+// If PHP wasn't compiled on Cygwin, the path needs to be fixed.
+// cygwin's path is hardcoded to C:\cygwin. change it if needed
+if ($windows && (strpos(php_uname(), 'CYGWIN') === false)) {
+ $NSGMLS = preg_replace('@/usr/bin/(.+)@', 'C:\cygwin\bin\\\\\1.exe',
$NSGMLS);
}
+
// Execute a test of the manual
if("@SP_OPTIONS@" == "" || substr(PHP_OS, 0, 3) == 'WIN') {
exec(