![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 312 Pomógł: 0 Dołączył: 29.12.2004 Ostrzeżenie: (0%) ![]() ![]() |
cześć, mam problem ze zdefinowaniem stałej w klasie (PHP5.0.1):
w rezultacie print conf::SOMEDIR daje: Parse error: parse error, unexpected '.', expecting ',' or ';' in /var/www/test/5/2.0/conf.inc.php on line 42 print conf::SOMECNS działa dobrze: zwraca /var/www/test/5/2.0/ dlaczego nie mogę nic dowiązać do stałej za pomocą operatora kropki ? Ten post edytował ennics 24.11.2005, 10:25:57 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 559 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
moze dlatego:
Cytat "The value must be a constant expression, not (for example) a variable, a class member, result of a mathematical operation or a function call." define a const chyba mają prawo sie różnic? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 20:37 |