|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-12-09 19:17 UTC] aharvey@php.net
-Status: Open
+Status: Wont fix
[2014-12-09 19:17 UTC] aharvey@php.net
[2014-12-09 19:17 UTC] requinix@php.net
-Status: Wont fix
+Status: Open
[2014-12-09 19:17 UTC] requinix@php.net
[2014-12-09 19:18 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
[2014-12-09 19:18 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 23:00:01 2025 UTC |
Description: ------------ As per test script, define() works, and a simple variable works. But the moment you try to define a const in a class, PHP complains with the error below: Parse error: parse error, expecting `','' or `';'' in /Users/ben/test.php on line 8 Test script: --------------- <?php define(X,1/8); echo X."\n"; $y=1/8; echo $y."\n"; class foo { const bar = 1/8; } ?>