[PHP4BETA] initializing of class variables doesn't work..
| From: | Thies C. Arntzen | Date: | Wed, 12 May 1999 15:35:05 +0000 |
| Subject: | [PHP4BETA] initializing of class variables doesn't work.. | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-790@lists.php.net to get a copy of this message | ||
<?php
function File_GetTempDir()
{ return "/tmp/";
}
class tubu
{ var $qCacheDir = File_GetTempDir()."/dbcache/";
}
?>
causes:
./php t.php3
Content-Type: text/html
<br>
<b>Parse error</b>: parse error, expecting
','' or
';'' in <b>t.php3</b> on line <b>7</b><br>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany
--
PHP 4 Beta