[dev] Re: [cvs] commit: horde/lib Server.php
Jon Parise
jon at horde.org
Sat Jan 4 13:46:29 PST 2003
On Thu, Jan 02, 2003 at 03:42:03PM -0800, Michael M Slusarz wrote:
> Log:
> Use PHP constants for upload error messages. Since these constants aren't
> defined for pre 4.3 PHP builds, add temp code to define these constants.
I think an explicit test for the constant's existence would be
preferrable to testing the PHP version, e.g.:
if (defined('UPLOAD_ERR_OK')) {
--
Jon Parise (jon at horde.org) :: The Horde Project (http://horde.org/)
More information about the dev
mailing list