PRIVATE and PUBLIC are reserved words under PHP5

This commit is contained in:
Lars Kneschke 2005-04-06 04:55:49 +00:00
parent 51a0ac0f80
commit 63870b9d9e

View File

@ -39,8 +39,8 @@
define('IN_PROCESS',6);
/* class */
define('PRIVATE',0);
define('PUBLIC',1);
define('PRIVATECAL',0);
define('PUBLICCAL',1);
define('CONFIDENTIAL',3);
/* transparency */
@ -1910,10 +1910,10 @@
switch($var)
{
case 'PRIVATE':
return PRIVATE;
return PRIVATECAL;
break;
case 'PUBLIC':
return PUBLIC;
return PUBLICCAL;
break;
case 'CONFIDENTIAL':
return CONFIDENTIAL;
@ -1924,10 +1924,10 @@
{
switch((int)$var)
{
case PRIVATE:
case PRIVATECAL:
return 'PRIVATE';
break;
case PUBLIC:
case PUBLICCAL:
return 'PUBLIC';
break;
case CONFIDENTIAL: