Bug inside serendipity_query_default function.
Posted: Fri Apr 22, 2005 11:54 pm
Following fragment of code does not work correctly on a Windows system, problem is that on a Windows system directories inside path variable are separated by ";" and not by ":".
Fix:
There is a also hang somewhere inside following expression on my system when a directory is an empty string.
Fix:
System:
System Windows NT SHREK 5.1 build 2600
Server API Apache 2.0 Handler
PHP Version 4.3.11
Best regards,
Andrija
Code: Select all
if (isset($_SERVER['PATH'])) {
$path = array_merge($path, explode(':', $_SERVER['PATH']));
}
Code: Select all
if (isset($_SERVER['PATH'])) {
$path = array_merge($path, explode(';', $_SERVER['PATH']));
}
Code: Select all
if ((function_exists('is_executable') && is_executable($dir . '/convert')) || is_file($dir . '/convert')) {
Code: Select all
if (strlen($dir)>0 && ((function_exists('is_executable') && is_executable($dir . '/convert')) || is_file($dir . '/convert'))) {
System Windows NT SHREK 5.1 build 2600
Server API Apache 2.0 Handler
PHP Version 4.3.11
Best regards,
Andrija