|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-22 19:03 UTC] torben@php.net
[2001-02-22 19:45 UTC] torben@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 03:00:01 2025 UTC |
When I try to use the date() inside of a class in PHP4.0.4pl1 an error gets returned. Example: <? class showDate { var $dateTest = date("Y-m-d"); } $object1 = new showDate; echo $object1->dateTest; ?> Returns the following error: Parse error: parse error, expecting `','' or `';'' in /path/to/file/date_test.php on line 7 My php.ini has expose tags = off, and an include path, otherwise it's pretty much out of the box php.ini I did a static build with the following config: ./configure --with-apache=../apache --with-mysql=/path/to/mysql --with-openssl=/path/to/ssl --with-zlib --with-xml --enable-bcmath Thanks, eric