DIRECTORY_SEPARATOR not defined

From: Date: Sun, 26 May 2002 14:24:16 +0000
Subject: DIRECTORY_SEPARATOR not defined
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4396@lists.php.net to get a copy of this message
Smarty 2.1.1 uses a new definition define('DIR_SEP', DIRECTORY_SEPARATOR); but DIRECTORY_SEPARATOR is not defined anywhere. Running this version on a site where PHP 4.0.4pl1 is installed, this leads to errors. On my machine with PHP 4.1.2 it runs. So I guess, DIRECTORY_SEPARATOR is a newly defined constant in PHP. I succest, to define it in smarty if it is not already defined. if(!defined('DIRECTORY_SEPARATOR')) { define('DIRECTORY_SEPARATOR', '/'); } Werner Schweizer

« previous php.smarty.general (#4396) next »