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); define('IN_PROCESS',6);
/* class */ /* class */
define('PRIVATE',0); define('PRIVATECAL',0);
define('PUBLIC',1); define('PUBLICCAL',1);
define('CONFIDENTIAL',3); define('CONFIDENTIAL',3);
/* transparency */ /* transparency */
@ -1910,10 +1910,10 @@
switch($var) switch($var)
{ {
case 'PRIVATE': case 'PRIVATE':
return PRIVATE; return PRIVATECAL;
break; break;
case 'PUBLIC': case 'PUBLIC':
return PUBLIC; return PUBLICCAL;
break; break;
case 'CONFIDENTIAL': case 'CONFIDENTIAL':
return CONFIDENTIAL; return CONFIDENTIAL;
@ -1924,10 +1924,10 @@
{ {
switch((int)$var) switch((int)$var)
{ {
case PRIVATE: case PRIVATECAL:
return 'PRIVATE'; return 'PRIVATE';
break; break;
case PUBLIC: case PUBLICCAL:
return 'PUBLIC'; return 'PUBLIC';
break; break;
case CONFIDENTIAL: case CONFIDENTIAL: