|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-16 04:51 UTC] bryan at phpandmore dot com
[2005-12-16 04:52 UTC] bryan at phpandmore dot com
[2005-12-16 05:31 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 15:00:01 2025 UTC |
Description: ------------ I am defining a constant named SITE_ROOT, and it contains the value "/homepages/29/d113403321/htdocs". When I try to use it in Smarty.class.php, on line 75 or the latest stable version 2.6.11, and I get this parse error. I changed the coding for the class variables so that they would not issue a notice b/c of using var rather than public: Parse error: parse error, unexpected '.', expecting ',' or ';' in /homepages/29/d113403321/htdocs/dev/smarty/Smarty.class.php on line 75 Reproduce code: --------------- define("SITE_ROOT", '/homepages/29/d113403321/htdocs'); public $template_dir = SITE_ROOT2 . '/dev/smarty/templates'; Expected result: ---------------- $template_dir having a value of /homepages/29/d113403321/htdocs/dev/smarty/templates Actual result: -------------- parse error