128 $this->enable = $this->enable &&
$bearsamppConfig->getRaw(self::ROOT_CFG_ENABLE);
130 $this->errorLog =
$bearsamppRoot->getLogsPath() .
'/php_error.log';
132 if ($this->bearsamppConfRaw !==
false) {
139 if (!$this->enable) {
143 if (!is_dir($this->currentPath)) {
147 if (!is_dir($this->symlinkPath)) {
151 if (!is_file($this->bearsamppConf)) {
155 if (!is_file($this->cliExe)) {
158 if (!is_file($this->cliSilentExe)) {
161 if (!is_file($this->conf)) {
164 if (!is_file($this->pearExe)) {
269 'Language options' => array(
270 'Short open tag' => self::INI_SHORT_OPEN_TAG,
271 'ASP-style tags' => self::INI_ASP_TAGS,
272 'Year 2000 compliance' => self::INI_Y2K_COMPLIANCE,
273 'Output buffering' => self::INI_OUTPUT_BUFFERING,
274 'Zlib output compression' => self::INI_ZLIB_OUTPUT_COMPRESSION,
275 'Implicit flush' => self::INI_IMPLICIT_FLUSH,
276 'Allow call time pass reference' => self::INI_ALLOW_CALL_TIME_PASS_REFERENCE,
277 'Safe mode' => self::INI_SAFE_MODE,
278 'Safe mode GID' => self::INI_SAFE_MODE_GID,
280 'Miscellaneous' => array(
281 'Expose PHP' => self::INI_EXPOSE_PHP,
283 'Error handling and logging' => array(
284 'Display errors' => self::INI_DISPLAY_ERRORS,
285 'Display startup errors' => self::INI_DISPLAY_STARTUP_ERRORS,
286 'Log errors' => self::INI_LOG_ERRORS,
287 'Ignore repeated errors' => self::INI_IGNORE_REPEATED_ERRORS,
288 'Ignore repeated source' => self::INI_IGNORE_REPEATED_SOURCE,
289 'Report memory leaks' => self::INI_REPORT_MEMLEAKS,
290 'Track errors' => self::INI_TRACK_ERRORS,
291 'HTML errors' => self::INI_HTML_ERRORS,
293 'Data Handling' => array(
294 'Register globals' => self::INI_REGISTER_GLOBALS,
295 'Register long arrays' => self::INI_REGISTER_LONG_ARRAYS,
296 'Register argc argv' => self::INI_REGISTER_ARGC_ARGV,
297 'Auto globals just in time' => self::INI_AUTO_GLOBALS_JIT,
298 'Magic quotes gpc' => self::INI_MAGIC_QUOTES_GPC,
299 'Magic quotes runtime' => self::INI_MAGIC_QUOTES_RUNTIME,
300 'Magic quotes Sybase' => self::INI_MAGIC_QUOTES_SYBASE,
302 'Paths and Directories' => array(
303 'Enable dynamic loading' => self::INI_ENABLE_DL,
304 'CGI force redirect' => self::INI_CGI_FORCE_REDIRECT,
305 'CGI fix path info' => self::INI_CGI_FIX_PATHINFO,
307 'File uploads' => array(
308 'File uploads' => self::INI_FILE_UPLOADS,
310 'Fopen wrappers' => array(
311 'Allow url fopen' => self::INI_ALLOW_URL_FOPEN,
312 'Allow url include' => self::INI_ALLOW_URL_INCLUDE,
314 'Module settings' => array(
316 'Read only' => self::INI_PHAR_READONLY,
317 'Require hash' => self::INI_PHAR_REQUIRE_HASH,
320 'Define syslog variables' => self::INI_DEFINE_SYSLOG_VARIABLES,
323 'Add X-PHP-Originating-Script' => self::INI_MAIL_ADD_X_HEADER,
326 'Safe mode' => self::INI_SQL_SAFE_MODE,
329 'Allow persistent' => self::INI_ODBC_ALLOW_PERSISTENT,
330 'Check persistent' => self::INI_ODBC_CHECK_PERSISTENT,
333 'Allow local infile' => self::INI_MYSQL_ALLOW_LOCAL_INFILE,
334 'Allow persistent' => self::INI_MYSQL_ALLOW_PERSISTENT,
335 'Trace mode' => self::INI_MYSQL_TRACE_MODE,
338 'Allow persistent' => self::INI_MYSQLI_ALLOW_PERSISTENT,
339 'Reconnect' => self::INI_MYSQLI_RECONNECT,
341 'MySQL Native Driver' => array(
342 'Collect statistics' => self::INI_MYSQLND_COLLECT_STATISTICS,
343 'Collect memory statistics' => self::INI_MYSQLND_COLLECT_MEMORY_STATISTICS,
345 'PostgresSQL' => array(
346 'Allow persistent' => self::INI_PGSQL_ALLOW_PERSISTENT,
347 'Auto reset persistent' => self::INI_PGSQL_AUTO_RESET_PERSISTENT,
349 'Sybase-CT' => array(
350 'Allow persistent' => self::INI_SYBCT_ALLOW_PERSISTENT,
353 'Use cookies' => self::INI_SESSION_USE_COOKIES,
354 'Use only cookies' => self::INI_SESSION_USE_ONLY_COOKIES,
355 'Auto start' => self::INI_SESSION_AUTO_START,
356 'Cookie HTTP only' => self::INI_SESSION_COOKIE_HTTPONLY,
357 'Bug compat 42' => self::INI_SESSION_BUG_COMPAT_42,
358 'Bug compat warning' => self::INI_SESSION_BUG_COMPAT_WARN,
359 'Use trans sid' => self::INI_SESSION_USE_TRANS_SID,
362 'Allow persistent' => self::INI_MSSQL_ALLOW_PERSISTENT,
363 'Compatibility mode' => self::INI_MSSQL_COMPATIBILITY_MODE,
364 'Secure connection' => self::INI_MSSQL_SECURE_CONNECTION,
367 'Clean output' => self::INI_TIDY_CLEAN_OUTPUT,
370 'WSDL cache enabled' => self::INI_SOAP_WSDL_CACHE_ENABLED,
373 'Remote enable' => self::INI_XDEBUG_REMOTE_ENABLE,
374 'Profiler enable' => self::INI_XDEBUG_PROFILER_ENABLE,
375 'Profiler enable trigger' => self::INI_XDEBUG_PROFILER_ENABLE_TRIGGER,
378 'Enabled' => self::INI_APC_ENABLED,
379 'Include once override' => self::INI_APC_INCLUDE_ONCE_OVERRIDE,
380 'Canonicalize' => self::INI_APC_CANONICALIZE,
381 'Stat' => self::INI_APC_STAT,
394 self::INI_SHORT_OPEN_TAG => array(
'On',
'Off',
'On'),
395 self::INI_ASP_TAGS => array(
'On',
'Off',
'Off'),
396 self::INI_Y2K_COMPLIANCE => array(
'1',
'0',
'1'),
397 self::INI_OUTPUT_BUFFERING => array(
'4096',
'Off',
'4096'),
398 self::INI_ZLIB_OUTPUT_COMPRESSION => array(
'On',
'Off',
'Off'),
399 self::INI_IMPLICIT_FLUSH => array(
'On',
'Off',
'Off'),
400 self::INI_ALLOW_CALL_TIME_PASS_REFERENCE => array(
'On',
'Off',
'On'),
401 self::INI_SAFE_MODE => array(
'On',
'Off',
'Off'),
402 self::INI_SAFE_MODE_GID => array(
'On',
'Off',
'Off'),
403 self::INI_EXPOSE_PHP => array(
'On',
'Off',
'On'),
404 self::INI_DISPLAY_ERRORS => array(
'On',
'Off',
'On'),
405 self::INI_DISPLAY_STARTUP_ERRORS => array(
'On',
'Off',
'On'),
406 self::INI_LOG_ERRORS => array(
'On',
'Off',
'On'),
407 self::INI_IGNORE_REPEATED_ERRORS => array(
'On',
'Off',
'Off'),
408 self::INI_IGNORE_REPEATED_SOURCE => array(
'On',
'Off',
'Off'),
409 self::INI_REPORT_MEMLEAKS => array(
'On',
'Off',
'On'),
410 self::INI_TRACK_ERRORS => array(
'On',
'Off',
'On'),
411 self::INI_HTML_ERRORS => array(
'On',
'Off',
'On'),
412 self::INI_REGISTER_GLOBALS => array(
'On',
'Off',
'Off'),
413 self::INI_REGISTER_LONG_ARRAYS => array(
'On',
'Off',
'Off'),
414 self::INI_REGISTER_ARGC_ARGV => array(
'On',
'Off',
'Off'),
415 self::INI_AUTO_GLOBALS_JIT => array(
'On',
'Off',
'On'),
416 self::INI_MAGIC_QUOTES_GPC => array(
'On',
'Off',
'Off'),
417 self::INI_MAGIC_QUOTES_RUNTIME => array(
'On',
'Off',
'Off'),
418 self::INI_MAGIC_QUOTES_SYBASE => array(
'On',
'Off',
'Off'),
419 self::INI_ENABLE_DL => array(
'On',
'Off',
'Off'),
420 self::INI_CGI_FORCE_REDIRECT => array(
'1',
'0',
'1'),
421 self::INI_FILE_UPLOADS => array(
'On',
'Off',
'On'),
422 self::INI_ALLOW_URL_FOPEN => array(
'On',
'Off',
'On'),
423 self::INI_ALLOW_URL_INCLUDE => array(
'On',
'Off',
'Off'),
424 self::INI_DEFINE_SYSLOG_VARIABLES => array(
'On',
'Off',
'Off'),
425 self::INI_MAIL_ADD_X_HEADER => array(
'On',
'Off',
'On'),
426 self::INI_SQL_SAFE_MODE => array(
'On',
'Off',
'Off'),
427 self::INI_ODBC_ALLOW_PERSISTENT => array(
'On',
'Off',
'On'),
428 self::INI_ODBC_CHECK_PERSISTENT => array(
'On',
'Off',
'On'),
429 self::INI_MYSQL_ALLOW_LOCAL_INFILE => array(
'On',
'Off',
'Off'),
430 self::INI_MYSQL_ALLOW_PERSISTENT => array(
'On',
'Off',
'On'),
431 self::INI_MYSQL_TRACE_MODE => array(
'On',
'Off',
'Off'),
432 self::INI_MYSQLI_ALLOW_PERSISTENT => array(
'On',
'Off',
'On'),
433 self::INI_MYSQLI_RECONNECT => array(
'On',
'Off',
'Off'),
434 self::INI_MYSQLND_COLLECT_STATISTICS => array(
'On',
'Off',
'On'),
435 self::INI_MYSQLND_COLLECT_MEMORY_STATISTICS => array(
'On',
'Off',
'On'),
436 self::INI_PGSQL_ALLOW_PERSISTENT => array(
'On',
'Off',
'On'),
437 self::INI_PGSQL_AUTO_RESET_PERSISTENT => array(
'On',
'Off',
'Off'),
438 self::INI_SYBCT_ALLOW_PERSISTENT => array(
'On',
'Off',
'On'),
439 self::INI_SESSION_USE_COOKIES => array(
'1',
'0',
'1'),
440 self::INI_SESSION_USE_ONLY_COOKIES => array(
'1',
'0',
'1'),
441 self::INI_SESSION_AUTO_START => array(
'1',
'0',
'0'),
442 self::INI_SESSION_COOKIE_HTTPONLY => array(
'1',
'',
''),
443 self::INI_SESSION_BUG_COMPAT_42 => array(
'On',
'Off',
'On'),
444 self::INI_SESSION_BUG_COMPAT_WARN => array(
'On',
'Off',
'On'),
445 self::INI_SESSION_USE_TRANS_SID => array(
'1',
'0',
'0'),
446 self::INI_MSSQL_ALLOW_PERSISTENT => array(
'On',
'Off',
'On'),
447 self::INI_MSSQL_COMPATIBILITY_MODE => array(
'On',
'Off',
'Off'),
448 self::INI_MSSQL_SECURE_CONNECTION => array(
'On',
'Off',
'Off'),
449 self::INI_TIDY_CLEAN_OUTPUT => array(
'On',
'Off',
'Off'),
450 self::INI_SOAP_WSDL_CACHE_ENABLED => array(
'1',
'0',
'1'),
451 self::INI_XDEBUG_REMOTE_ENABLE => array(
'On',
'Off',
'On'),
452 self::INI_XDEBUG_PROFILER_ENABLE => array(
'On',
'Off',
'Off'),
453 self::INI_XDEBUG_PROFILER_ENABLE_TRIGGER => array(
'On',
'Off',
'Off'),
454 self::INI_APC_ENABLED => array(
'1',
'0',
'1'),
455 self::INI_APC_INCLUDE_ONCE_OVERRIDE => array(
'1',
'0',
'1'),
456 self::INI_APC_CANONICALIZE => array(
'1',
'0',
'1'),
457 self::INI_APC_STAT => array(
'1',
'0',
'1'),