Re: [SMARTY] smarty date format error (on AMD64?)

From: Date: Wed, 09 Mar 2005 16:48:55 +0000
Subject: Re: [SMARTY] smarty date format error (on AMD64?)
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12310@lists.php.net to get a copy of this message
Joe Stump writes: > Why not put a check into the smarty_make_timestamp() function? It's > predictable in that it returns huge timestamps (3441718022400 is an > example). The check could (and should) be removed once PHP fixes what > appears to be a fairly simple bug. I'm not sure that this should go in as described; there is every reason why someone will subsequently upgrade their Smarty version (to a version without the bugfix) without also upgrading PHP, thus breaking things. If this goes into the codebase it'll probably stay there for good. And that isn;t the right place for what is a PHP workaround, not Smarty fix. Publishing (ie documenting) a patch to Smarty that fixes the problem in the absence of a PHP fix is the way to go, imho. Making it available next to the smarty .tgz download would be a good idea, clearly labled as a workaround for PHP bug 30215 affecting the AMD64 architecture, fixed in PHP vX.XX (for some X.XX). Thanks for posting the workaround though; I'm just starting to play with AMD64 systems so I'll probably need it if PHP isn't fixed soon. -- Mark Rogers

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