package net.katagaitai.phpscan.php.builtin;

import net.katagaitai.phpscan.compiler.BuiltinBase;
import net.katagaitai.phpscan.interpreter.Interpreter;
import net.katagaitai.phpscan.symbol.SymbolOperator;

public class Core_d extends BuiltinBase {

	public Core_d(Interpreter ip) {
		super(ip);
		SymbolOperator operator = ip.getOperator();
		putConstant("\\E_ERROR", operator.createSymbol(1));
		putConstant("\\E_RECOVERABLE_ERROR", operator.createSymbol(4096));
		putConstant("\\E_WARNING", operator.createSymbol(2));
		putConstant("\\E_PARSE", operator.createSymbol(4));
		putConstant("\\E_NOTICE", operator.createSymbol(8));
		putConstant("\\E_STRICT", operator.createSymbol(2048));
		putConstant("\\E_DEPRECATED", operator.createSymbol(8192));
		putConstant("\\E_CORE_ERROR", operator.createSymbol(16));
		putConstant("\\E_CORE_WARNING", operator.createSymbol(32));
		putConstant("\\E_COMPILE_ERROR", operator.createSymbol(64));
		putConstant("\\E_COMPILE_WARNING", operator.createSymbol(128));
		putConstant("\\E_USER_ERROR", operator.createSymbol(256));
		putConstant("\\E_USER_WARNING", operator.createSymbol(512));
		putConstant("\\E_USER_NOTICE", operator.createSymbol(1024));
		putConstant("\\E_USER_DEPRECATED", operator.createSymbol(16384));
		putConstant("\\E_ALL", operator.createSymbol(30719));
		putConstant("\\DEBUG_BACKTRACE_PROVIDE_OBJECT", operator.createSymbol(1));
		putConstant("\\DEBUG_BACKTRACE_IGNORE_ARGS", operator.createSymbol(2));
		putConstant("\\S_MEMORY", operator.createSymbol(1));
		putConstant("\\S_VARS", operator.createSymbol(4));
		putConstant("\\S_FILES", operator.createSymbol(8));
		putConstant("\\S_INCLUDE", operator.createSymbol(16));
		putConstant("\\S_SQL", operator.createSymbol(32));
		putConstant("\\S_EXECUTOR", operator.createSymbol(64));
		putConstant("\\S_MAIL", operator.createSymbol(128));
		putConstant("\\S_SESSION", operator.createSymbol(256));
		putConstant("\\S_MISC", operator.createSymbol(2));
		putConstant("\\S_INTERNAL", operator.createSymbol(536870912));
		putConstant("\\S_ALL", operator.createSymbol(511));
		putConstant("\\LOG_EMERG", operator.createSymbol(0));
		putConstant("\\LOG_ALERT", operator.createSymbol(1));
		putConstant("\\LOG_CRIT", operator.createSymbol(2));
		putConstant("\\LOG_ERR", operator.createSymbol(3));
		putConstant("\\LOG_WARNING", operator.createSymbol(4));
		putConstant("\\LOG_NOTICE", operator.createSymbol(5));
		putConstant("\\LOG_INFO", operator.createSymbol(6));
		putConstant("\\LOG_DEBUG", operator.createSymbol(7));
		putConstant("\\LOG_KERN", operator.createSymbol(0));
		putConstant("\\LOG_USER", operator.createSymbol(8));
		putConstant("\\LOG_MAIL", operator.createSymbol(16));
		putConstant("\\LOG_DAEMON", operator.createSymbol(24));
		putConstant("\\LOG_AUTH", operator.createSymbol(32));
		putConstant("\\LOG_SYSLOG", operator.createSymbol(40));
		putConstant("\\LOG_LPR", operator.createSymbol(48));
		putConstant("\\LOG_NEWS", operator.createSymbol(56));
		putConstant("\\LOG_UUCP", operator.createSymbol(64));
		putConstant("\\LOG_CRON", operator.createSymbol(72));
		putConstant("\\LOG_AUTHPRIV", operator.createSymbol(80));
		putConstant("\\LOG_LOCAL0", operator.createSymbol(128));
		putConstant("\\LOG_LOCAL1", operator.createSymbol(136));
		putConstant("\\LOG_LOCAL2", operator.createSymbol(144));
		putConstant("\\LOG_LOCAL3", operator.createSymbol(152));
		putConstant("\\LOG_LOCAL4", operator.createSymbol(160));
		putConstant("\\LOG_LOCAL5", operator.createSymbol(168));
		putConstant("\\LOG_LOCAL6", operator.createSymbol(176));
		putConstant("\\LOG_LOCAL7", operator.createSymbol(184));
		putConstant("\\LOG_PID", operator.createSymbol(1));
		putConstant("\\LOG_CONS", operator.createSymbol(2));
		putConstant("\\LOG_ODELAY", operator.createSymbol(4));
		putConstant("\\LOG_NDELAY", operator.createSymbol(8));
		putConstant("\\LOG_NOWAIT", operator.createSymbol(16));
		putConstant("\\LOG_PERROR", operator.createSymbol(32));
		putConstant("\\ZEND_THREAD_SAFE", operator.createFalse());
		putConstant("\\ZEND_DEBUG_BUILD", operator.createFalse());
		putConstant("\\PHP_WINDOWS_VERSION_BUILD", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_MAJOR", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_MINOR", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_PLATFORM", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_PRODUCTTYPE", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_SP_MAJOR", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_SP_MINOR", operator.createSymbol(0));
		putConstant("\\PHP_WINDOWS_VERSION_SUITEMASK", operator.createSymbol(0));
		putConstant("\\PHP_VERSION", operator.createSymbol("5.3.6-13ubuntu3.2"));
		putConstant("\\PHP_MAJOR_VERSION", operator.createSymbol(5));
		putConstant("\\PHP_MINOR_VERSION", operator.createSymbol(3));
		putConstant("\\PHP_RELEASE_VERSION", operator.createSymbol(6));
		putConstant("\\PHP_EXTRA_VERSION", operator.createSymbol("-13ubuntu3.2"));
		putConstant("\\PHP_VERSION_ID", operator.createSymbol(50306));
		putConstant("\\PHP_ZTS", operator.createSymbol(0));
		putConstant("\\PHP_DEBUG", operator.createSymbol(0));
		putConstant("\\PHP_OS", operator.createSymbol("Linux"));
		putConstant("\\PHP_SAPI", operator.createSymbol("cli"));
		putConstant("\\DEFAULT_INCLUDE_PATH", operator.createSymbol(".:/usr/share/php:/usr/share/pear"));
		putConstant("\\PEAR_INSTALL_DIR", operator.createSymbol("/usr/share/php"));
		putConstant("\\PEAR_EXTENSION_DIR", operator.createSymbol("/usr/lib/php5/20090626"));
		putConstant("\\PHP_EXTENSION_DIR", operator.createSymbol("/usr/lib/php5/20090626"));
		putConstant("\\PHP_PREFIX", operator.createSymbol("/usr"));
		putConstant("\\PHP_BINDIR", operator.createSymbol("/usr/bin"));
		putConstant("\\PHP_LIBDIR", operator.createSymbol("/usr/lib/php5"));
		putConstant("\\PHP_DATADIR", operator.createSymbol("/usr/share"));
		putConstant("\\PHP_SYSCONFDIR", operator.createSymbol("/etc"));
		putConstant("\\PHP_LOCALSTATEDIR", operator.createSymbol("/var"));
		putConstant("\\PHP_CONFIG_FILE_PATH", operator.createSymbol("/etc/php5/cli"));
		putConstant("\\PHP_CONFIG_FILE_SCAN_DIR", operator.createSymbol("/etc/php5/cli/conf.d"));
		putConstant("\\PHP_SHLIB_SUFFIX", operator.createSymbol("so"));
		putConstant("\\PHP_EOL", operator.createSymbol("\n"));
		putConstant("\\SUHOSIN_PATCH", operator.createSymbol(1));
		putConstant("\\SUHOSIN_PATCH_VERSION", operator.createSymbol("0.9.10"));
		putConstant("\\PHP_MAXPATHLEN", operator.createSymbol(4096));
		putConstant("\\PHP_INT_MAX", operator.createSymbol(9223372036854775807L));
		putConstant("\\PHP_INT_MIN", operator.createSymbol(-9223372036854775808L));
		putConstant("\\PHP_INT_SIZE", operator.createSymbol(8));
		putConstant("\\ZEND_MULTIBYTE", operator.createSymbol(0));
		putConstant("\\PHP_OUTPUT_HANDLER_START", operator.createSymbol(1));
		putConstant("\\PHP_OUTPUT_HANDLER_CONT", operator.createSymbol(2));
		putConstant("\\PHP_OUTPUT_HANDLER_END", operator.createSymbol(4));
		putConstant("\\UPLOAD_ERR_OK", operator.createSymbol(0));
		putConstant("\\UPLOAD_ERR_INI_SIZE", operator.createSymbol(1));
		putConstant("\\UPLOAD_ERR_FORM_SIZE", operator.createSymbol(2));
		putConstant("\\UPLOAD_ERR_PARTIAL", operator.createSymbol(3));
		putConstant("\\UPLOAD_ERR_NO_FILE", operator.createSymbol(4));
		putConstant("\\UPLOAD_ERR_NO_TMP_DIR", operator.createSymbol(6));
		putConstant("\\UPLOAD_ERR_CANT_WRITE", operator.createSymbol(7));
		putConstant("\\UPLOAD_ERR_EXTENSION", operator.createSymbol(8));
	}
}
