2024.8.23
Loading...
Searching...
No Matches
BinPhp Class Reference
+ Inheritance diagram for BinPhp:
+ Collaboration diagram for BinPhp:

Public Member Functions

 __construct ($id, $type)
 
 getApacheModule ($apacheVersion, $phpVersion=null)
 
 getCliExe ()
 
 getCliSilentExe ()
 
 getConf ()
 
 getErrorLog ()
 
 getExtensions ()
 
 getExtensionsFromConf ()
 
 getExtensionsFromFolder ()
 
 getExtensionsLoaded ()
 
 getPearExe ()
 
 getPearVersion ($cache=false)
 
 getSettings ()
 
 getSettingsValues ()
 
 getTsDll ($phpVersion=null)
 
 isSettingActive ($name)
 
 isSettingExists ($name)
 
 reload ($id=null, $type=null)
 
 setEnable ($enabled, $showWindow=false)
 
 setVersion ($version)
 
 switchVersion ($version, $showWindow=false)
 
- Public Member Functions inherited from Module
 __toString ()
 
 getCurrentPath ()
 
 getId ()
 
 getName ()
 
 getRelease ()
 
 getRootPath ()
 
 getSymlinkPath ()
 
 getType ()
 
 getVersion ()
 
 getVersionList ()
 
 isEnable ()
 
 update ($sub=0, $showWindow=false)
 

Data Fields

const INI_ALLOW_CALL_TIME_PASS_REFERENCE = 'allow_call_time_pass_reference'
 
const INI_ALLOW_URL_FOPEN = 'allow_url_fopen'
 
const INI_ALLOW_URL_INCLUDE = 'allow_url_include'
 
const INI_APC_CANONICALIZE = 'apc.canonicalize'
 
const INI_APC_ENABLED = 'apc.enabled'
 
const INI_APC_INCLUDE_ONCE_OVERRIDE = 'apc.include_once_override'
 
const INI_APC_STAT = 'apc.stat'
 
const INI_ASP_TAGS = 'asp_tags'
 
const INI_AUTO_GLOBALS_JIT = 'auto_globals_jit'
 
const INI_CGI_FIX_PATHINFO = 'cgi.fix_pathinfo'
 
const INI_CGI_FORCE_REDIRECT = 'cgi.force_redirect'
 
const INI_DEFINE_SYSLOG_VARIABLES = 'define_syslog_variables'
 
const INI_DISPLAY_ERRORS = 'display_errors'
 
const INI_DISPLAY_STARTUP_ERRORS = 'display_startup_errors'
 
const INI_ENABLE_DL = 'enable_dl'
 
const INI_EXPOSE_PHP = 'expose_php'
 
const INI_FILE_UPLOADS = 'file_uploads'
 
const INI_HTML_ERRORS = 'html_errors'
 
const INI_IGNORE_REPEATED_ERRORS = 'ignore_repeated_errors'
 
const INI_IGNORE_REPEATED_SOURCE = 'ignore_repeated_source'
 
const INI_IMPLICIT_FLUSH = 'implicit_flush'
 
const INI_LOG_ERRORS = 'log_errors'
 
const INI_MAGIC_QUOTES_GPC = 'magic_quotes_gpc'
 
const INI_MAGIC_QUOTES_RUNTIME = 'magic_quotes_runtime'
 
const INI_MAGIC_QUOTES_SYBASE = 'magic_quotes_sybase'
 
const INI_MAIL_ADD_X_HEADER = 'mail.add_x_header'
 
const INI_MSSQL_ALLOW_PERSISTENT = 'mssql.allow_persistent'
 
const INI_MSSQL_COMPATIBILITY_MODE = 'mssql.compatability_mode'
 
const INI_MSSQL_SECURE_CONNECTION = 'mssql.secure_connection'
 
const INI_MYSQL_ALLOW_LOCAL_INFILE = 'mysql.allow_local_infile'
 
const INI_MYSQL_ALLOW_PERSISTENT = 'mysql.allow_persistent'
 
const INI_MYSQL_TRACE_MODE = 'mysql.trace_mode'
 
const INI_MYSQLI_ALLOW_PERSISTENT = 'mysqli.allow_persistent'
 
const INI_MYSQLI_RECONNECT = 'mysqli.reconnect'
 
const INI_MYSQLND_COLLECT_MEMORY_STATISTICS = 'mysqlnd.collect_memory_statistics'
 
const INI_MYSQLND_COLLECT_STATISTICS = 'mysqlnd.collect_statistics'
 
const INI_ODBC_ALLOW_PERSISTENT = 'odbc.allow_persistent'
 
const INI_ODBC_CHECK_PERSISTENT = 'odbc.check_persistent'
 
const INI_OUTPUT_BUFFERING = 'output_buffering'
 
const INI_PGSQL_ALLOW_PERSISTENT = 'pgsql.allow_persistent'
 
const INI_PGSQL_AUTO_RESET_PERSISTENT = 'pgsql.auto_reset_persistent'
 
const INI_PHAR_READONLY = 'phar.readonly'
 
const INI_PHAR_REQUIRE_HASH = 'phar.require_hash'
 
const INI_REGISTER_ARGC_ARGV = 'register_argc_argv'
 
const INI_REGISTER_GLOBALS = 'register_globals'
 
const INI_REGISTER_LONG_ARRAYS = 'register_long_arrays'
 
const INI_REPORT_MEMLEAKS = 'report_memleaks'
 
const INI_SAFE_MODE = 'safe_mode'
 
const INI_SAFE_MODE_GID = 'safe_mode_gid'
 
const INI_SESSION_AUTO_START = 'session.auto_start'
 
const INI_SESSION_BUG_COMPAT_42 = 'session.bug_compat_42'
 
const INI_SESSION_BUG_COMPAT_WARN = 'session.bug_compat_warn'
 
const INI_SESSION_COOKIE_HTTPONLY = 'session.cookie_httponly'
 
const INI_SESSION_USE_COOKIES = 'session.use_cookies'
 
const INI_SESSION_USE_ONLY_COOKIES = 'session.use_only_cookies'
 
const INI_SESSION_USE_TRANS_SID = 'session.use_trans_sid'
 
const INI_SHORT_OPEN_TAG = 'short_open_tag'
 
const INI_SOAP_WSDL_CACHE_ENABLED = 'soap.wsdl_cache_enabled'
 
const INI_SQL_SAFE_MODE = 'sql.safe_mode'
 
const INI_SYBCT_ALLOW_PERSISTENT = 'sybct.allow_persistent'
 
const INI_TIDY_CLEAN_OUTPUT = 'tidy.clean_output'
 
const INI_TRACK_ERRORS = 'track_errors'
 
const INI_XDEBUG_PROFILER_ENABLE = 'xdebug.profiler_enable'
 
const INI_XDEBUG_PROFILER_ENABLE_TRIGGER = 'xdebug.profiler_enable_trigger'
 
const INI_XDEBUG_REMOTE_ENABLE = 'xdebug.remote_enable'
 
const INI_Y2K_COMPLIANCE = 'y2k_compliance'
 
const INI_ZLIB_OUTPUT_COMPRESSION = 'zlib.output_compression'
 
const LOCAL_CFG_CLI_EXE = 'phpCliExe'
 
const LOCAL_CFG_CLI_SILENT_EXE = 'phpCliSilentExe'
 
const LOCAL_CFG_CONF = 'phpConf'
 
const LOCAL_CFG_PEAR_EXE = 'phpPearExe'
 
const ROOT_CFG_ENABLE = 'phpEnable'
 
const ROOT_CFG_VERSION = 'phpVersion'
 
- Data Fields inherited from Module
const BUNDLE_RELEASE = 'bundleRelease'
 

Protected Member Functions

 updateConfig ($version=null, $sub=0, $showWindow=false)
 
- Protected Member Functions inherited from Module
 __construct ()
 
 replace ($key, $value)
 
 replaceAll ($params)
 

Private Member Functions

 isExtensionExcluded ($ext)
 

Private Attributes

 $apacheConf
 
 $cliExe
 
 $cliSilentExe
 
 $conf
 
 $errorLog
 
 $pearExe
 

Additional Inherited Members

- Protected Attributes inherited from Module
 $bearsamppConf
 
 $bearsamppConfRaw
 
 $currentPath
 
 $enable
 
 $name
 
 $release = 'N/A'
 
 $rootPath
 
 $symlinkPath
 
 $version
 

Detailed Description

Class BinPhp

This class extends the Module class and provides functionalities specific to managing PHP binaries within the Bearsampp application. It includes methods for reloading configurations, switching versions, updating configurations, and retrieving various PHP settings and extensions.

Definition at line 17 of file class.bin.php.php.

Constructor & Destructor Documentation

◆ __construct()

BinPhp::__construct ( $id,
$type )

Constructor for the BinPhp class.

Parameters
string$idThe ID of the module.
string$typeThe type of the module.

Definition at line 109 of file class.bin.php.php.

109 {
110 Util::logInitClass($this);
111 $this->reload($id, $type);
112 }
reload($id=null, $type=null)
static logInitClass($classInstance)

References Module\$id, Module\$type, Util\logInitClass(), and reload().

Member Function Documentation

◆ getApacheModule()

BinPhp::getApacheModule ( $apacheVersion,
$phpVersion = null )

Retrieves the path to the Apache module for the specified Apache and PHP versions.

Parameters
string$apacheVersionThe version of Apache.
string | null$phpVersionThe version of PHP. If null, the current PHP version is used.
Returns
string|false The path to the Apache module, or false if not found.

Definition at line 602 of file class.bin.php.php.

602 {
603 $apacheVersion = substr(str_replace('.', '', $apacheVersion), 0, 2);
604 $phpVersion = $phpVersion == null ? $this->getVersion() : $phpVersion;
605
606 $currentPath = str_replace('php' . $this->getVersion(), 'php' . $phpVersion, $this->getCurrentPath());
607 $bearsamppConf = str_replace('php' . $this->getVersion(), 'php' . $phpVersion, $this->bearsamppConf);
608
609 if (in_array($phpVersion, $this->getVersionList()) && file_exists($bearsamppConf)) {
610 $apacheCpt = parse_ini_file($bearsamppConf);
611 if ($apacheCpt !== false) {
612 foreach ($apacheCpt as $aVersion => $apacheModule) {
613 $aVersion = str_replace('apache', '', $aVersion);
614 $aVersion = str_replace('.', '', $aVersion);
615 if ($apacheVersion == $aVersion && file_exists($currentPath . '/' . $apacheModule)) {
616 return $currentPath . '/' . $apacheModule;
617 }
618 }
619 }
620 }
621
622 return false;
623 }

References Module\$bearsamppConf, Module\$currentPath, Module\getCurrentPath(), Module\getVersion(), and Module\getVersionList().

Referenced by updateConfig().

+ Here is the caller graph for this function:

◆ getCliExe()

BinPhp::getCliExe ( )

Retrieves the path to the PHP CLI executable.

Returns
string The path to the PHP CLI executable.

Definition at line 702 of file class.bin.php.php.

702 {
703 return $this->cliExe;
704 }

References $cliExe.

◆ getCliSilentExe()

BinPhp::getCliSilentExe ( )

Retrieves the path to the PHP CLI silent executable.

Returns
string The path to the PHP CLI silent executable.

Definition at line 711 of file class.bin.php.php.

711 {
712 return $this->cliSilentExe;
713 }

References $cliSilentExe.

◆ getConf()

BinPhp::getConf ( )

Retrieves the path to the PHP configuration file.

Returns
string The path to the PHP configuration file.

Definition at line 720 of file class.bin.php.php.

720 {
721 return $this->conf;
722 }

References $conf.

Referenced by getExtensionsFromConf(), isSettingActive(), isSettingExists(), and updateConfig().

+ Here is the caller graph for this function:

◆ getErrorLog()

BinPhp::getErrorLog ( )

Retrieves the path to the PHP error log file.

Returns
string The path to the PHP error log file.

Definition at line 693 of file class.bin.php.php.

693 {
694 return $this->errorLog;
695 }

References $errorLog.

◆ getExtensions()

BinPhp::getExtensions ( )

Retrieves the list of PHP extensions from both the configuration file and the extensions folder.

Returns
array An associative array where the key is the extension name and the value is the status (on/off).

Definition at line 503 of file class.bin.php.php.

503 {
504 $fromFolder = $this->getExtensionsFromConf();
505 $fromConf = $this->getExtensionsFromFolder();
506 $result = array_merge($fromConf, $fromFolder);
507 ksort($result);
508 return $result;
509 }
$result
getExtensionsFromConf()
getExtensionsFromFolder()

References $result, getExtensionsFromConf(), and getExtensionsFromFolder().

◆ getExtensionsFromConf()

BinPhp::getExtensionsFromConf ( )

Retrieves the list of PHP extensions from the configuration file.

Returns
array An associative array where the key is the extension name and the value is the status (on/off).

Definition at line 529 of file class.bin.php.php.

529 {
530 $result = array();
531
532 $confContent = file($this->getConf());
533 foreach ($confContent as $row) {
534 $extMatch = array();
535 if (preg_match('/^(;)?extension\s*=\s*"?(.+)"?/i', $row, $extMatch)) {
536 $name = preg_replace("/^php_/", "", preg_replace("/\.dll$/", "", trim($extMatch[2])));
537 if ($this->isExtensionExcluded($name)) {
538 continue;
539 }
540 if ($extMatch[1] == ';') {
542 } else {
544 }
545 }
546 }
547
548 ksort($result);
549 return $result;
550 }
isExtensionExcluded($ext)

References Module\$name, $result, getConf(), isExtensionExcluded(), ActionSwitchPhpExtension\SWITCH_OFF, and ActionSwitchPhpExtension\SWITCH_ON.

Referenced by getExtensions(), and getExtensionsLoaded().

+ Here is the caller graph for this function:

◆ getExtensionsFromFolder()

BinPhp::getExtensionsFromFolder ( )

Retrieves the list of PHP extensions from the extensions folder.

Returns
array An associative array where the key is the extension name and the value is the status (off).

Definition at line 572 of file class.bin.php.php.

572 {
573 $result = array();
574
575 $handle = @opendir($this->getCurrentPath(). '/ext');
576 if (!$handle) {
577 return $result;
578 }
579
580 while (false !== ($file = readdir($handle))) {
581 if ($file != "." && $file != ".." && Util::endWith($file, '.dll')) {
582 $name = preg_replace("/^php_/", "", preg_replace("/\.dll$/", "", trim($file)));
583 if ($this->isExtensionExcluded($name)) {
584 continue;
585 }
587 }
588 }
589
590 closedir($handle);
591 ksort($result);
592 return $result;
593 }
static endWith($string, $search)

References Module\$name, $result, Util\endWith(), Module\getCurrentPath(), isExtensionExcluded(), and ActionSwitchPhpExtension\SWITCH_OFF.

Referenced by getExtensions().

+ Here is the caller graph for this function:

◆ getExtensionsLoaded()

BinPhp::getExtensionsLoaded ( )

Retrieves the list of currently loaded PHP extensions.

Returns
array An array of extension names that are currently loaded.

Definition at line 557 of file class.bin.php.php.

557 {
558 $result = array();
559 foreach ($this->getExtensionsFromConf() as $name => $status) {
561 $result[] = $name;
562 }
563 }
564 return $result;
565 }

References Module\$name, $result, getExtensionsFromConf(), and ActionSwitchPhpExtension\SWITCH_ON.

◆ getPearExe()

BinPhp::getPearExe ( )

Retrieves the path to the PHP PEAR executable.

Returns
string The path to the PHP PEAR executable.

Definition at line 729 of file class.bin.php.php.

729 {
730 return $this->pearExe;
731 }

References $pearExe.

◆ getPearVersion()

BinPhp::getPearVersion ( $cache = false)

Retrieves the version of PEAR.

Parameters
bool$cacheWhether to use the cached version.
Returns
string|null The PEAR version, or null if not found.

Definition at line 739 of file class.bin.php.php.

739 {
740 $cacheFile = $this->getCurrentPath() . '/pear/version';
741 if (!$cache) {
742 file_put_contents($cacheFile, Batch::getPearVersion());
743 }
744 return file_exists($cacheFile) ? file_get_contents($cacheFile) : null;
745 }}
static getPearVersion()

References Module\getCurrentPath(), and Batch\getPearVersion().

◆ getSettings()

BinPhp::getSettings ( )

Retrieves the PHP settings.

Returns
array An associative array of PHP settings.

Definition at line 267 of file class.bin.php.php.

267 {
268 return array(
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,
279 ),
280 'Miscellaneous' => array(
281 'Expose PHP' => self::INI_EXPOSE_PHP,
282 ),
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,
292 ),
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,
301 ),
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,
306 ),
307 'File uploads' => array(
308 'File uploads' => self::INI_FILE_UPLOADS,
309 ),
310 'Fopen wrappers' => array(
311 'Allow url fopen' => self::INI_ALLOW_URL_FOPEN,
312 'Allow url include' => self::INI_ALLOW_URL_INCLUDE,
313 ),
314 'Module settings' => array(
315 'Phar' => array(
316 'Read only' => self::INI_PHAR_READONLY,
317 'Require hash' => self::INI_PHAR_REQUIRE_HASH,
318 ),
319 'Syslog' => array(
320 'Define syslog variables' => self::INI_DEFINE_SYSLOG_VARIABLES,
321 ),
322 'Mail' => array(
323 'Add X-PHP-Originating-Script' => self::INI_MAIL_ADD_X_HEADER,
324 ),
325 'SQL' => array(
326 'Safe mode' => self::INI_SQL_SAFE_MODE,
327 ),
328 'ODBC' => array(
329 'Allow persistent' => self::INI_ODBC_ALLOW_PERSISTENT,
330 'Check persistent' => self::INI_ODBC_CHECK_PERSISTENT,
331 ),
332 'MySQL' => array(
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,
336 ),
337 'MySQLi' => array(
338 'Allow persistent' => self::INI_MYSQLI_ALLOW_PERSISTENT,
339 'Reconnect' => self::INI_MYSQLI_RECONNECT,
340 ),
341 'MySQL Native Driver' => array(
342 'Collect statistics' => self::INI_MYSQLND_COLLECT_STATISTICS,
343 'Collect memory statistics' => self::INI_MYSQLND_COLLECT_MEMORY_STATISTICS,
344 ),
345 'PostgresSQL' => array(
346 'Allow persistent' => self::INI_PGSQL_ALLOW_PERSISTENT,
347 'Auto reset persistent' => self::INI_PGSQL_AUTO_RESET_PERSISTENT,
348 ),
349 'Sybase-CT' => array(
350 'Allow persistent' => self::INI_SYBCT_ALLOW_PERSISTENT,
351 ),
352 'Session' => array(
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,
360 ),
361 'MSSQL' => array(
362 'Allow persistent' => self::INI_MSSQL_ALLOW_PERSISTENT,
363 'Compatibility mode' => self::INI_MSSQL_COMPATIBILITY_MODE,
364 'Secure connection' => self::INI_MSSQL_SECURE_CONNECTION,
365 ),
366 'Tidy' => array(
367 'Clean output' => self::INI_TIDY_CLEAN_OUTPUT,
368 ),
369 'SOAP' => array(
370 'WSDL cache enabled' => self::INI_SOAP_WSDL_CACHE_ENABLED,
371 ),
372 'XDebug' => array(
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,
376 ),
377 'APC' => array(
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,
382 ),
383 ),
384 );
385 }

◆ getSettingsValues()

BinPhp::getSettingsValues ( )

Retrieves the default, off, and current values for various PHP settings.

Returns
array An associative array where the key is the setting name and the value is an array containing the default, off, and current values.

Definition at line 392 of file class.bin.php.php.

392 {
393 return array(
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'),
458 );
459 }

Referenced by isSettingActive().

+ Here is the caller graph for this function:

◆ getTsDll()

BinPhp::getTsDll ( $phpVersion = null)

Retrieves the name of the PHP Thread Safe (TS) DLL for the specified PHP version.

Parameters
string | null$phpVersionThe version of PHP. If null, the current PHP version is used.
Returns
string|false The name of the PHP TS DLL, or false if not found.

Definition at line 631 of file class.bin.php.php.

631 {
632 $phpVersion = $phpVersion == null ? $this->getVersion() : $phpVersion;
633 $currentPath = str_replace('php' . $this->getVersion(), 'php' . $phpVersion, $this->getCurrentPath());
634
635 if (file_exists($currentPath . '/php7ts.dll')) {
636 return 'php7ts.dll';
637 } elseif (file_exists($currentPath . '/php8ts.dll')) {
638 return 'php8ts.dll';
639 }
640
641 return false;
642 }

References Module\$currentPath, Module\getCurrentPath(), and Module\getVersion().

Referenced by updateConfig().

+ Here is the caller graph for this function:

◆ isExtensionExcluded()

BinPhp::isExtensionExcluded ( $ext)
private

Checks if a specific PHP extension is excluded from the list.

Parameters
string$extThe name of the extension to check.
Returns
bool True if the extension is excluded, false otherwise.

Definition at line 517 of file class.bin.php.php.

517 {
518 return in_array($ext, array(
519 'opcache',
520 'xdebug'
521 ));
522 }

Referenced by getExtensionsFromConf(), and getExtensionsFromFolder().

+ Here is the caller graph for this function:

◆ isSettingActive()

BinPhp::isSettingActive ( $name)

Checks if a specific PHP setting is active.

Parameters
string$nameThe name of the setting to check.
Returns
bool True if the setting is active, false otherwise.

Definition at line 467 of file class.bin.php.php.

467 {
468 $settingsValues = $this->getSettingsValues();
469
470 $confContent = file($this->getConf());
471 foreach ($confContent as $row) {
472 $settingMatch = array();
473 if (preg_match('/^' . $name . '\s*=\s*(.+)/i', $row, $settingMatch)) {
474 return isset($settingMatch[1]) && isset($settingsValues[$name]) && $settingsValues[$name][0] == trim($settingMatch[1]);
475 }
476 }
477
478 return false;
479 }
getSettingsValues()

References Module\$name, getConf(), and getSettingsValues().

◆ isSettingExists()

BinPhp::isSettingExists ( $name)

Checks if a specific PHP setting exists in the configuration file.

Parameters
string$nameThe name of the setting to check.
Returns
bool True if the setting exists, false otherwise.

Definition at line 487 of file class.bin.php.php.

487 {
488 $confContent = file($this->getConf());
489 foreach ($confContent as $row) {
490 if (preg_match('/^\s*?;?\s*?' . $name . '\s*=\s*.*/i', $row)) {
491 return true;
492 }
493 }
494
495 return false;
496 }

References Module\$name, and getConf().

◆ reload()

BinPhp::reload ( $id = null,
$type = null )

Reloads the module configuration based on the provided ID and type.

Parameters
string | null$idThe ID of the module. If null, the current ID is used.
string | null$typeThe type of the module. If null, the current type is used.

Reimplemented from Module.

Definition at line 120 of file class.bin.php.php.

120 {
123
124 $this->name = $bearsamppLang->getValue(Lang::PHP);
125 $this->version = $bearsamppConfig->getRaw(self::ROOT_CFG_VERSION);
126 parent::reload($id, $type);
127
128 $this->enable = $this->enable && $bearsamppConfig->getRaw(self::ROOT_CFG_ENABLE);
129 $this->apacheConf = $bearsamppBins->getApache()->getCurrentPath() . '/' . $this->apacheConf; //FIXME: Useful ?
130 $this->errorLog = $bearsamppRoot->getLogsPath() . '/php_error.log';
131
132 if ($this->bearsamppConfRaw !== false) {
133 $this->cliExe = $this->symlinkPath . '/' . $this->bearsamppConfRaw[self::LOCAL_CFG_CLI_EXE];
134 $this->cliSilentExe = $this->symlinkPath . '/' . $this->bearsamppConfRaw[self::LOCAL_CFG_CLI_SILENT_EXE];
135 $this->conf = $this->symlinkPath . '/' . $this->bearsamppConfRaw[self::LOCAL_CFG_CONF];
136 $this->pearExe = $this->symlinkPath . '/' . $this->bearsamppConfRaw[self::LOCAL_CFG_PEAR_EXE];
137 }
138
139 if (!$this->enable) {
140 Util::logInfo($this->name . ' is not enabled!');
141 return;
142 }
143 if (!is_dir($this->currentPath)) {
144 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_FILE_NOT_FOUND), $this->name . ' ' . $this->version, $this->currentPath));
145 return;
146 }
147 if (!is_dir($this->symlinkPath)) {
148 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_FILE_NOT_FOUND), $this->name . ' ' . $this->version, $this->symlinkPath));
149 return;
150 }
151 if (!is_file($this->bearsamppConf)) {
152 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_CONF_NOT_FOUND), $this->name . ' ' . $this->version, $this->bearsamppConf));
153 return;
154 }
155 if (!is_file($this->cliExe)) {
156 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_EXE_NOT_FOUND), $this->name . ' ' . $this->version, $this->cliExe));
157 }
158 if (!is_file($this->cliSilentExe)) {
159 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_EXE_NOT_FOUND), $this->name . ' ' . $this->version, $this->cliSilentExe));
160 }
161 if (!is_file($this->conf)) {
162 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_CONF_NOT_FOUND), $this->name . ' ' . $this->version, $this->conf));
163 }
164 if (!is_file($this->pearExe)) {
165 Util::logError(sprintf($bearsamppLang->getValue(Lang::ERROR_EXE_NOT_FOUND), $this->name . ' ' . $this->version, $this->pearExe));
166 }
167 }
global $bearsamppBins
global $bearsamppLang
global $bearsamppRoot
const LOCAL_CFG_CLI_EXE
const LOCAL_CFG_PEAR_EXE
const LOCAL_CFG_CONF
const LOCAL_CFG_CLI_SILENT_EXE
const ERROR_FILE_NOT_FOUND
const ERROR_CONF_NOT_FOUND
const ERROR_EXE_NOT_FOUND
const PHP
static logReloadClass($classInstance)
static logError($data, $file=null)
static logInfo($data, $file=null)
global $bearsamppConfig
Definition homepage.php:26

References $apacheConf, $bearsamppBins, $bearsamppConfig, $bearsamppLang, $bearsamppRoot, Module\$id, Module\$type, Lang\ERROR_CONF_NOT_FOUND, Lang\ERROR_EXE_NOT_FOUND, Lang\ERROR_FILE_NOT_FOUND, LOCAL_CFG_CLI_EXE, LOCAL_CFG_CLI_SILENT_EXE, LOCAL_CFG_CONF, LOCAL_CFG_PEAR_EXE, Util\logError(), Util\logInfo(), Util\logReloadClass(), and Lang\PHP.

Referenced by __construct(), setEnable(), and setVersion().

+ Here is the caller graph for this function:

◆ setEnable()

BinPhp::setEnable ( $enabled,
$showWindow = false )

Enables or disables the module and updates the configuration.

Parameters
int$enabledThe enable status (Config\ENABLED or Config\DISABLED).
bool$showWindowWhether to show a window during the process.

Definition at line 662 of file class.bin.php.php.

662 {
663 global $bearsamppConfig, $bearsamppBins, $bearsamppLang, $bearsamppWinbinder;
664
665 if ($enabled == Config::ENABLED && !is_dir($this->currentPath)) {
666 Util::logDebug($this->getName() . ' cannot be enabled because bundle ' . $this->getVersion() . ' does not exist in ' . $this->currentPath);
667 if ($showWindow) {
668 $bearsamppWinbinder->messageBoxError(
669 sprintf($bearsamppLang->getValue(Lang::ENABLE_BUNDLE_NOT_EXIST), $this->getName(), $this->getVersion(), $this->currentPath),
670 sprintf($bearsamppLang->getValue(Lang::ENABLE_TITLE), $this->getName())
671 );
672 }
673 $enabled = Config::DISABLED;
674 }
675
676 Util::logInfo($this->getName() . ' switched to ' . ($enabled == Config::ENABLED ? 'enabled' : 'disabled'));
677 $this->enable = $enabled == Config::ENABLED;
678 $bearsamppConfig->replace(self::ROOT_CFG_ENABLE, $enabled);
679
680 $this->reload();
681 $bearsamppBins->getApache()->update();
682 if ($bearsamppBins->getApache()->isEnable() && $bearsamppBins->getApache()->getService()->isRunning()) {
683 $bearsamppBins->getApache()->getService()->stop();
685 }
686 }
const CMD_SYNTAX_CHECK
const DISABLED
const ENABLED
const ENABLE_TITLE
const ENABLE_BUNDLE_NOT_EXIST
static logDebug($data, $file=null)
static startService($bin, $syntaxCheckCmd, $showWindow=false)

References $bearsamppBins, $bearsamppConfig, $bearsamppLang, BinApache\CMD_SYNTAX_CHECK, Config\DISABLED, Lang\ENABLE_BUNDLE_NOT_EXIST, Lang\ENABLE_TITLE, Config\ENABLED, Module\getName(), Module\getVersion(), Util\logDebug(), Util\logInfo(), reload(), and Util\startService().

◆ setVersion()

BinPhp::setVersion ( $version)

Sets the PHP version and updates the configuration.

Parameters
string$versionThe version to set.

Reimplemented from Module.

Definition at line 649 of file class.bin.php.php.

649 {
650 global $bearsamppConfig;
651 $this->version = $version;
652 $bearsamppConfig->replace(self::ROOT_CFG_VERSION, $version);
653 $this->reload();
654 }

References $bearsamppConfig, Module\$version, and reload().

Referenced by updateConfig().

+ Here is the caller graph for this function:

◆ switchVersion()

BinPhp::switchVersion ( $version,
$showWindow = false )

Switches the PHP version to the specified version.

Parameters
string$versionThe version to switch to.
bool$showWindowWhether to show a window during the switch process.
Returns
bool True if the switch was successful, false otherwise.

Definition at line 176 of file class.bin.php.php.

176 {
177 Util::logDebug('Switch ' . $this->name . ' version to ' . $version);
178 return $this->updateConfig($version, 0, $showWindow);
179 }
updateConfig($version=null, $sub=0, $showWindow=false)

References Module\$version, Util\logDebug(), and updateConfig().

◆ updateConfig()

BinPhp::updateConfig ( $version = null,
$sub = 0,
$showWindow = false )
protected

Updates the PHP configuration to the specified version.

Parameters
string | null$versionThe version to update to. If null, the current version is used.
int$subThe sub-level for logging indentation.
bool$showWindowWhether to show a window during the update process.
Returns
bool True if the update was successful, false otherwise.

Reimplemented from Module.

Definition at line 189 of file class.bin.php.php.

189 {
190 global $bearsamppLang, $bearsamppBins, $bearsamppApps, $bearsamppWinbinder;
191
192 if (!$this->enable) {
193 return true;
194 }
195
196 $version = $version == null ? $this->version : $version;
197 Util::logDebug(($sub > 0 ? str_repeat(' ', 2 * $sub) : '') . 'Update ' . $this->name . ' ' . $version . ' config');
198
199 $boxTitle = sprintf($bearsamppLang->getValue(Lang::SWITCH_VERSION_TITLE), $this->getName(), $version);
200
201 $conf = str_replace('php' . $this->getVersion(), 'php' . $version, $this->getConf());
202 $bearsamppConf = str_replace('php' . $this->getVersion(), 'php' . $version, $this->bearsamppConf);
203
204 $tsDll = $this->getTsDll($version);
205 $apachePhpModulePath = $this->getApacheModule($bearsamppBins->getApache()->getVersion(), $version);
206
207 Util::logDebug(($sub > 0 ? str_repeat(' ', 2 * $sub) : '') . 'PHP TsDll found: ' . $tsDll);
208 Util::logDebug(($sub > 0 ? str_repeat(' ', 2 * $sub) : '') . 'PHP Apache module found: ' . $apachePhpModulePath);
209
210 if (!file_exists($conf) || !file_exists($bearsamppConf)) {
211 Util::logError('bearsampp config files not found for ' . $this->getName() . ' ' . $version);
212 if ($showWindow) {
213 $bearsamppWinbinder->messageBoxError(
214 sprintf($bearsamppLang->getValue(Lang::BEARSAMPP_CONF_NOT_FOUND_ERROR), $this->getName() . ' ' . $version),
215 $boxTitle
216 );
217 }
218 return false;
219 }
220
221 $bearsamppConfRaw = parse_ini_file($bearsamppConf);
222 if ($bearsamppConfRaw === false || !isset($bearsamppConfRaw[self::ROOT_CFG_VERSION]) || $bearsamppConfRaw[self::ROOT_CFG_VERSION] != $version) {
223 Util::logError('bearsampp config file malformed for ' . $this->getName() . ' ' . $version);
224 if ($showWindow) {
225 $bearsamppWinbinder->messageBoxError(
226 sprintf($bearsamppLang->getValue(Lang::BEARSAMPP_CONF_MALFORMED_ERROR), $this->getName() . ' ' . $version),
227 $boxTitle
228 );
229 }
230 return false;
231 }
232
233 if ($tsDll === false || $apachePhpModulePath === false) {
234 Util::logDebug($this->getName() . ' ' . $version . ' does not seem to be compatible with Apache ' . $bearsamppBins->getApache()->getVersion());
235 if ($showWindow) {
236 $bearsamppWinbinder->messageBoxError(
237 sprintf($bearsamppLang->getValue(Lang::PHP_INCPT), $version, $bearsamppBins->getApache()->getVersion()),
238 $boxTitle
239 );
240 }
241 return false;
242 }
243
244 // bearsampp.conf
245 $this->setVersion($version);
246
247 // conf
248 Util::replaceInFile($this->getConf(), array(
249 '/^mysql.default_port\s=\s(\d+)/' => 'mysql.default_port = ' . $bearsamppBins->getMysql()->getPort(),
250 '/^mysqli.default_port\s=\s(\d+)/' => 'mysqli.default_port = ' . $bearsamppBins->getMysql()->getPort()
251 ));
252
253 // apache
254 $bearsamppBins->getApache()->update($sub + 1);
255
256 // phpmyadmin
257 $bearsamppApps->getPhpmyadmin()->update($sub + 1);
258
259 return true;
260 }
getApacheModule($apacheVersion, $phpVersion=null)
getTsDll($phpVersion=null)
setVersion($version)
const PHP_INCPT
const BEARSAMPP_CONF_NOT_FOUND_ERROR
const SWITCH_VERSION_TITLE
const BEARSAMPP_CONF_MALFORMED_ERROR
static replaceInFile($path, $replaceList)

References $bearsamppBins, Module\$bearsamppConf, Module\$bearsamppConfRaw, $bearsamppLang, $conf, Module\$version, Lang\BEARSAMPP_CONF_MALFORMED_ERROR, Lang\BEARSAMPP_CONF_NOT_FOUND_ERROR, getApacheModule(), getConf(), Module\getName(), getTsDll(), Module\getVersion(), Util\logDebug(), Util\logError(), Lang\PHP_INCPT, Util\replaceInFile(), setVersion(), and Lang\SWITCH_VERSION_TITLE.

Referenced by switchVersion().

+ Here is the caller graph for this function:

Field Documentation

◆ $apacheConf

BinPhp::$apacheConf
private

Definition at line 95 of file class.bin.php.php.

Referenced by reload().

◆ $cliExe

BinPhp::$cliExe
private

Definition at line 98 of file class.bin.php.php.

Referenced by getCliExe().

◆ $cliSilentExe

BinPhp::$cliSilentExe
private

Definition at line 99 of file class.bin.php.php.

Referenced by getCliSilentExe().

◆ $conf

BinPhp::$conf
private

Definition at line 100 of file class.bin.php.php.

Referenced by getConf(), and updateConfig().

◆ $errorLog

BinPhp::$errorLog
private

Definition at line 96 of file class.bin.php.php.

Referenced by getErrorLog().

◆ $pearExe

BinPhp::$pearExe
private

Definition at line 101 of file class.bin.php.php.

Referenced by getPearExe().

◆ INI_ALLOW_CALL_TIME_PASS_REFERENCE

const BinPhp::INI_ALLOW_CALL_TIME_PASS_REFERENCE = 'allow_call_time_pass_reference'

Definition at line 33 of file class.bin.php.php.

◆ INI_ALLOW_URL_FOPEN

const BinPhp::INI_ALLOW_URL_FOPEN = 'allow_url_fopen'

Definition at line 56 of file class.bin.php.php.

◆ INI_ALLOW_URL_INCLUDE

const BinPhp::INI_ALLOW_URL_INCLUDE = 'allow_url_include'

Definition at line 57 of file class.bin.php.php.

◆ INI_APC_CANONICALIZE

const BinPhp::INI_APC_CANONICALIZE = 'apc.canonicalize'

Definition at line 92 of file class.bin.php.php.

◆ INI_APC_ENABLED

const BinPhp::INI_APC_ENABLED = 'apc.enabled'

Definition at line 90 of file class.bin.php.php.

◆ INI_APC_INCLUDE_ONCE_OVERRIDE

const BinPhp::INI_APC_INCLUDE_ONCE_OVERRIDE = 'apc.include_once_override'

Definition at line 91 of file class.bin.php.php.

◆ INI_APC_STAT

const BinPhp::INI_APC_STAT = 'apc.stat'

Definition at line 93 of file class.bin.php.php.

◆ INI_ASP_TAGS

const BinPhp::INI_ASP_TAGS = 'asp_tags'

Definition at line 28 of file class.bin.php.php.

◆ INI_AUTO_GLOBALS_JIT

const BinPhp::INI_AUTO_GLOBALS_JIT = 'auto_globals_jit'

Definition at line 48 of file class.bin.php.php.

◆ INI_CGI_FIX_PATHINFO

const BinPhp::INI_CGI_FIX_PATHINFO = 'cgi.fix_pathinfo'

Definition at line 54 of file class.bin.php.php.

◆ INI_CGI_FORCE_REDIRECT

const BinPhp::INI_CGI_FORCE_REDIRECT = 'cgi.force_redirect'

Definition at line 53 of file class.bin.php.php.

◆ INI_DEFINE_SYSLOG_VARIABLES

const BinPhp::INI_DEFINE_SYSLOG_VARIABLES = 'define_syslog_variables'

Definition at line 60 of file class.bin.php.php.

◆ INI_DISPLAY_ERRORS

const BinPhp::INI_DISPLAY_ERRORS = 'display_errors'

Definition at line 37 of file class.bin.php.php.

◆ INI_DISPLAY_STARTUP_ERRORS

const BinPhp::INI_DISPLAY_STARTUP_ERRORS = 'display_startup_errors'

Definition at line 38 of file class.bin.php.php.

◆ INI_ENABLE_DL

const BinPhp::INI_ENABLE_DL = 'enable_dl'

Definition at line 52 of file class.bin.php.php.

◆ INI_EXPOSE_PHP

const BinPhp::INI_EXPOSE_PHP = 'expose_php'

Definition at line 36 of file class.bin.php.php.

◆ INI_FILE_UPLOADS

const BinPhp::INI_FILE_UPLOADS = 'file_uploads'

Definition at line 55 of file class.bin.php.php.

◆ INI_HTML_ERRORS

const BinPhp::INI_HTML_ERRORS = 'html_errors'

Definition at line 44 of file class.bin.php.php.

◆ INI_IGNORE_REPEATED_ERRORS

const BinPhp::INI_IGNORE_REPEATED_ERRORS = 'ignore_repeated_errors'

Definition at line 40 of file class.bin.php.php.

◆ INI_IGNORE_REPEATED_SOURCE

const BinPhp::INI_IGNORE_REPEATED_SOURCE = 'ignore_repeated_source'

Definition at line 41 of file class.bin.php.php.

◆ INI_IMPLICIT_FLUSH

const BinPhp::INI_IMPLICIT_FLUSH = 'implicit_flush'

Definition at line 32 of file class.bin.php.php.

◆ INI_LOG_ERRORS

const BinPhp::INI_LOG_ERRORS = 'log_errors'

Definition at line 39 of file class.bin.php.php.

◆ INI_MAGIC_QUOTES_GPC

const BinPhp::INI_MAGIC_QUOTES_GPC = 'magic_quotes_gpc'

Definition at line 49 of file class.bin.php.php.

◆ INI_MAGIC_QUOTES_RUNTIME

const BinPhp::INI_MAGIC_QUOTES_RUNTIME = 'magic_quotes_runtime'

Definition at line 50 of file class.bin.php.php.

◆ INI_MAGIC_QUOTES_SYBASE

const BinPhp::INI_MAGIC_QUOTES_SYBASE = 'magic_quotes_sybase'

Definition at line 51 of file class.bin.php.php.

◆ INI_MAIL_ADD_X_HEADER

const BinPhp::INI_MAIL_ADD_X_HEADER = 'mail.add_x_header'

Definition at line 61 of file class.bin.php.php.

◆ INI_MSSQL_ALLOW_PERSISTENT

const BinPhp::INI_MSSQL_ALLOW_PERSISTENT = 'mssql.allow_persistent'

Definition at line 82 of file class.bin.php.php.

◆ INI_MSSQL_COMPATIBILITY_MODE

const BinPhp::INI_MSSQL_COMPATIBILITY_MODE = 'mssql.compatability_mode'

Definition at line 83 of file class.bin.php.php.

◆ INI_MSSQL_SECURE_CONNECTION

const BinPhp::INI_MSSQL_SECURE_CONNECTION = 'mssql.secure_connection'

Definition at line 84 of file class.bin.php.php.

◆ INI_MYSQL_ALLOW_LOCAL_INFILE

const BinPhp::INI_MYSQL_ALLOW_LOCAL_INFILE = 'mysql.allow_local_infile'

Definition at line 65 of file class.bin.php.php.

◆ INI_MYSQL_ALLOW_PERSISTENT

const BinPhp::INI_MYSQL_ALLOW_PERSISTENT = 'mysql.allow_persistent'

Definition at line 66 of file class.bin.php.php.

◆ INI_MYSQL_TRACE_MODE

const BinPhp::INI_MYSQL_TRACE_MODE = 'mysql.trace_mode'

Definition at line 67 of file class.bin.php.php.

◆ INI_MYSQLI_ALLOW_PERSISTENT

const BinPhp::INI_MYSQLI_ALLOW_PERSISTENT = 'mysqli.allow_persistent'

Definition at line 68 of file class.bin.php.php.

◆ INI_MYSQLI_RECONNECT

const BinPhp::INI_MYSQLI_RECONNECT = 'mysqli.reconnect'

Definition at line 69 of file class.bin.php.php.

◆ INI_MYSQLND_COLLECT_MEMORY_STATISTICS

const BinPhp::INI_MYSQLND_COLLECT_MEMORY_STATISTICS = 'mysqlnd.collect_memory_statistics'

Definition at line 71 of file class.bin.php.php.

◆ INI_MYSQLND_COLLECT_STATISTICS

const BinPhp::INI_MYSQLND_COLLECT_STATISTICS = 'mysqlnd.collect_statistics'

Definition at line 70 of file class.bin.php.php.

◆ INI_ODBC_ALLOW_PERSISTENT

const BinPhp::INI_ODBC_ALLOW_PERSISTENT = 'odbc.allow_persistent'

Definition at line 63 of file class.bin.php.php.

◆ INI_ODBC_CHECK_PERSISTENT

const BinPhp::INI_ODBC_CHECK_PERSISTENT = 'odbc.check_persistent'

Definition at line 64 of file class.bin.php.php.

◆ INI_OUTPUT_BUFFERING

const BinPhp::INI_OUTPUT_BUFFERING = 'output_buffering'

Definition at line 30 of file class.bin.php.php.

◆ INI_PGSQL_ALLOW_PERSISTENT

const BinPhp::INI_PGSQL_ALLOW_PERSISTENT = 'pgsql.allow_persistent'

Definition at line 72 of file class.bin.php.php.

◆ INI_PGSQL_AUTO_RESET_PERSISTENT

const BinPhp::INI_PGSQL_AUTO_RESET_PERSISTENT = 'pgsql.auto_reset_persistent'

Definition at line 73 of file class.bin.php.php.

◆ INI_PHAR_READONLY

const BinPhp::INI_PHAR_READONLY = 'phar.readonly'

Definition at line 58 of file class.bin.php.php.

◆ INI_PHAR_REQUIRE_HASH

const BinPhp::INI_PHAR_REQUIRE_HASH = 'phar.require_hash'

Definition at line 59 of file class.bin.php.php.

◆ INI_REGISTER_ARGC_ARGV

const BinPhp::INI_REGISTER_ARGC_ARGV = 'register_argc_argv'

Definition at line 47 of file class.bin.php.php.

◆ INI_REGISTER_GLOBALS

const BinPhp::INI_REGISTER_GLOBALS = 'register_globals'

Definition at line 45 of file class.bin.php.php.

◆ INI_REGISTER_LONG_ARRAYS

const BinPhp::INI_REGISTER_LONG_ARRAYS = 'register_long_arrays'

Definition at line 46 of file class.bin.php.php.

◆ INI_REPORT_MEMLEAKS

const BinPhp::INI_REPORT_MEMLEAKS = 'report_memleaks'

Definition at line 42 of file class.bin.php.php.

◆ INI_SAFE_MODE

const BinPhp::INI_SAFE_MODE = 'safe_mode'

Definition at line 34 of file class.bin.php.php.

◆ INI_SAFE_MODE_GID

const BinPhp::INI_SAFE_MODE_GID = 'safe_mode_gid'

Definition at line 35 of file class.bin.php.php.

◆ INI_SESSION_AUTO_START

const BinPhp::INI_SESSION_AUTO_START = 'session.auto_start'

Definition at line 77 of file class.bin.php.php.

◆ INI_SESSION_BUG_COMPAT_42

const BinPhp::INI_SESSION_BUG_COMPAT_42 = 'session.bug_compat_42'

Definition at line 79 of file class.bin.php.php.

◆ INI_SESSION_BUG_COMPAT_WARN

const BinPhp::INI_SESSION_BUG_COMPAT_WARN = 'session.bug_compat_warn'

Definition at line 80 of file class.bin.php.php.

◆ INI_SESSION_COOKIE_HTTPONLY

const BinPhp::INI_SESSION_COOKIE_HTTPONLY = 'session.cookie_httponly'

Definition at line 78 of file class.bin.php.php.

◆ INI_SESSION_USE_COOKIES

const BinPhp::INI_SESSION_USE_COOKIES = 'session.use_cookies'

Definition at line 75 of file class.bin.php.php.

◆ INI_SESSION_USE_ONLY_COOKIES

const BinPhp::INI_SESSION_USE_ONLY_COOKIES = 'session.use_only_cookies'

Definition at line 76 of file class.bin.php.php.

◆ INI_SESSION_USE_TRANS_SID

const BinPhp::INI_SESSION_USE_TRANS_SID = 'session.use_trans_sid'

Definition at line 81 of file class.bin.php.php.

◆ INI_SHORT_OPEN_TAG

const BinPhp::INI_SHORT_OPEN_TAG = 'short_open_tag'

Definition at line 27 of file class.bin.php.php.

◆ INI_SOAP_WSDL_CACHE_ENABLED

const BinPhp::INI_SOAP_WSDL_CACHE_ENABLED = 'soap.wsdl_cache_enabled'

Definition at line 86 of file class.bin.php.php.

◆ INI_SQL_SAFE_MODE

const BinPhp::INI_SQL_SAFE_MODE = 'sql.safe_mode'

Definition at line 62 of file class.bin.php.php.

◆ INI_SYBCT_ALLOW_PERSISTENT

const BinPhp::INI_SYBCT_ALLOW_PERSISTENT = 'sybct.allow_persistent'

Definition at line 74 of file class.bin.php.php.

◆ INI_TIDY_CLEAN_OUTPUT

const BinPhp::INI_TIDY_CLEAN_OUTPUT = 'tidy.clean_output'

Definition at line 85 of file class.bin.php.php.

◆ INI_TRACK_ERRORS

const BinPhp::INI_TRACK_ERRORS = 'track_errors'

Definition at line 43 of file class.bin.php.php.

◆ INI_XDEBUG_PROFILER_ENABLE

const BinPhp::INI_XDEBUG_PROFILER_ENABLE = 'xdebug.profiler_enable'

Definition at line 88 of file class.bin.php.php.

◆ INI_XDEBUG_PROFILER_ENABLE_TRIGGER

const BinPhp::INI_XDEBUG_PROFILER_ENABLE_TRIGGER = 'xdebug.profiler_enable_trigger'

Definition at line 89 of file class.bin.php.php.

◆ INI_XDEBUG_REMOTE_ENABLE

const BinPhp::INI_XDEBUG_REMOTE_ENABLE = 'xdebug.remote_enable'

Definition at line 87 of file class.bin.php.php.

◆ INI_Y2K_COMPLIANCE

const BinPhp::INI_Y2K_COMPLIANCE = 'y2k_compliance'

Definition at line 29 of file class.bin.php.php.

◆ INI_ZLIB_OUTPUT_COMPRESSION

const BinPhp::INI_ZLIB_OUTPUT_COMPRESSION = 'zlib.output_compression'

Definition at line 31 of file class.bin.php.php.

◆ LOCAL_CFG_CLI_EXE

const BinPhp::LOCAL_CFG_CLI_EXE = 'phpCliExe'

Definition at line 22 of file class.bin.php.php.

Referenced by reload().

◆ LOCAL_CFG_CLI_SILENT_EXE

const BinPhp::LOCAL_CFG_CLI_SILENT_EXE = 'phpCliSilentExe'

Definition at line 23 of file class.bin.php.php.

Referenced by reload().

◆ LOCAL_CFG_CONF

const BinPhp::LOCAL_CFG_CONF = 'phpConf'

Definition at line 24 of file class.bin.php.php.

Referenced by reload().

◆ LOCAL_CFG_PEAR_EXE

const BinPhp::LOCAL_CFG_PEAR_EXE = 'phpPearExe'

Definition at line 25 of file class.bin.php.php.

Referenced by reload().

◆ ROOT_CFG_ENABLE

const BinPhp::ROOT_CFG_ENABLE = 'phpEnable'

Definition at line 19 of file class.bin.php.php.

◆ ROOT_CFG_VERSION

const BinPhp::ROOT_CFG_VERSION = 'phpVersion'

Definition at line 20 of file class.bin.php.php.


The documentation for this class was generated from the following file: