90+ results for 'php getenv' (943 ms)
195 // Vulnerable: 196 // PHP 5.3.0 - PHP 5.3.27 197 // PHP 5.4.0 - PHP 5.4.22 199 if ( 200 (PHP_VERSION_ID < 50400 && PHP_VERSION_ID >= 50328) 201 || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423) 201 || (PHP_VERSION_ID < 50500 && PHP_VERSION_ID >= 50423) 202 || (PHP_VERSION_ID < 50600 && PHP_VERSION_ID >= 50507) 203 ) { 244 // Based on testcase in https://github.com/php/php-src/commit/c1224573c773b6845e83505f717fbf820fc18415 245 // changes in https://github.com/php/php-src/commit/76a7fd893b7d6101300cc656058704a73254d593 246 $cert = 'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVwRENDQTR5Z0F3SUJBZ0lKQUp6dThyNnU2ZUJjTUEwR0NTcUdTSWIzRFFFQkJRVUFNSUhETVFzd0NRWUQKVlFRR0V3SkVSVEVjTUJvR0ExVUVDQXdUVG05eVpISm9aV2x1TFZkbGMzUm1ZV3hsYmpFUU1BNEdBMVVFQnd3SApTOE9Ed3Jac2JqRVVNQklHQTFVRUNnd0xVMlZyZEdsdmJrVnBibk14SHpBZEJnTlZCQXNNRmsxaGJHbGphVzkxCmN5QkRaWEowSUZObFkzUnBiMjR4SVRBZkJnTlZCQU1NR0cxaGJHbGphVzkxY3k1elpXdDBhVzl1WldsdWN5NWsKWlRFcU1DZ0dDU3FHU0liM0RRRUpBUlliYzNSbFptRnVMbVZ6YzJWeVFITmxhM1JwYjI1bGFXNXpMbVJsTUhVWQpaREU1TnpBd01UQXhNREF3TURBd1dnQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBCkFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEKQUFBQUFBQVhEVEUwTVRFeU9ERXhNemt6TlZvd2djTXhDekFKQmdOVkJBWVRBa1JGTVJ3d0dnWURWUVFJREJOTwpiM0prY21obGFXNHRWMlZ6ZEdaaGJHVnVNUkF3RGdZRFZRUUhEQWRMdzRQQ3RteHVNUlF3RWdZRFZRUUtEQXRUClpXdDBhVzl1UldsdWN6RWZNQjBHQTFVRUN3d1dUV0ZzYVdOcGIzVnpJRU5sY25RZ1UyVmpkR2x2YmpFaE1COEcKQTFVRUF3d1liV0ZzYVdOcGIzVnpMbk5sYTNScGIyNWxhVzV6TG1SbE1Tb3dLQVlKS29aSWh2Y05BUWtCRmh0egpkR1ZtWVc0dVpYTnpaWEpBYzJWcmRHbHZibVZwYm5NdVpHVXdnZ0VpTUEwR0NTcUdTSWIzRFFFQkFRVUFBNElCCkR3QXdnZ0VLQW9JQkFRRERBZjNobDdKWTBYY0ZuaXlFSnBTU0RxbjBPcUJyNlFQNjV1c0pQUnQvOFBhRG9xQnUKd0VZVC9OYSs2ZnNnUGpDMHVLOURaZ1dnMnRIV1dvYW5TYmxBTW96NVBINlorUzRTSFJaN2UyZERJalBqZGhqaAowbUxnMlVNTzV5cDBWNzk3R2dzOWxOdDZKUmZIODFNTjJvYlhXczROdHp0TE11RDZlZ3FwcjhkRGJyMzRhT3M4CnBrZHVpNVVhd1Raa3N5NXBMUEhxNWNNaEZHbTA2djY1Q0xvMFYyUGQ5K0tBb2tQclBjTjVLTEtlYno3bUxwazYKU01lRVhPS1A0aWRFcXh5UTdPN2ZCdUhNZWRzUWh1K3ByWTNzaTNCVXlLZlF0UDVDWm5YMmJwMHdLSHhYMTJEWAoxbmZGSXQ5RGJHdkhUY3lPdU4rblpMUEJtM3ZXeG50eUlJdlZBZ01CQUFHalFqQkFNQWtHQTFVZEV3UUNNQUF3CkVRWUpZSVpJQVliNFFnRUJCQVFEQWdlQU1Bc0dBMVVkRHdRRUF3SUZvREFUQmdOVkhTVUVEREFLQmdnckJnRUYKQlFjREFqQU5CZ2txaGtpRzl3MEJBUVVGQUFPQ0FRRUFHMGZaWVlDVGJkajFYWWMrMVNub2FQUit2SThDOENhRAo4KzBVWWhkbnlVNGdnYTBCQWNEclk5ZTk0ZUVBdTZacXljRjZGakxxWFhkQWJvcHBXb2NyNlQ2R0QxeDMzQ2tsClZBcnpHL0t4UW9oR0QySmVxa2hJTWxEb214SE83a2EzOStPYThpMnZXTFZ5alU4QVp2V01BcnVIYTRFRU55RzcKbFcyQWFnYUZLRkNyOVRuWFRmcmR4R1ZFYnY3S1ZRNmJkaGc1cDVTanBXSDErTXEwM3VSM1pYUEJZZHlWODMxOQpvMGxWajFLRkkyRENML2xpV2lzSlJvb2YrMWNSMzVDdGQwd1lCY3BCNlRac2xNY09QbDc2ZHdLd0pnZUpvMlFnClpzZm1jMnZDMS9xT2xOdU5xLzBUenprVkd2OEVUVDNDZ2FVK1VYZTRYT1Z2a2NjZWJKbjJkZz09Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K'; 269 count($output) === 3 270 && $output[0] === sprintf('string(%d) "%s"', strlen(PHP_VERSION), PHP_VERSION) 271 && $output[1] === 'string(27) "stefan.esser@sektioneins.de"'mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
1<?php 2class Mail { 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 186 if (!empty($this->username) && !empty($this->password)) { 187 fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf); 188 254 } else { 255 fputs($handle, 'HELO ' . getenv('SERVER_NAME') . $this->crlf); 256 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);index.php https://github.com/rsinger/Jangle.git | PHP | 384 lines
1<?php 2 2 3require 'lib/jangle.php'; 4require 'lib/spyc.php5'; 4require 'lib/spyc.php5'; 5require 'lib/models.php'; 6 7$config = Spyc::YAMLLoad('config/config.yml'); 8$config["base_uri"] = getenv('HTTP_X_CONNECTOR_BASE'); 9$url = parse_url($_SERVER['REQUEST_URI']); 49 50if(getenv('HTTP_ACCEPT') == "application/json") { 51 header("Content-type: application/json"); 51 header("Content-type: application/json"); 52} elseif (getenv('HTTP_ACCEPT') == "text/json") { 53 header("Content-type: text/json");Application.php https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 374 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Application.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 20 */ 60 * 61 * Initialize application. Potentially initializes include_paths, PHP 62 * settings, and bootstrap class. 72 73 require_once 'Zend/Loader/Autoloader.php'; 74 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 93 */ 94 public function getEnvironment() 95 { 127 if (!empty($options['phpsettings'])) { 128 $this->setPhpSettings($options['phpsettings']); 129 }SMTPMailer.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 381 lines
1<?php 2 3/** 4 * @file classes/mail/SMTPMailer.inc.php 5 * 16 17// $Id: SMTPMailer.inc.php,v 1.5 2009/05/13 00:13:20 asmecher Exp $ 18 87 // Send MAIL command 88 $sender = $mail->getEnvelopeSender(); 89 if (!isset($sender) || empty($sender)) {Module.php https://bitbucket.org/mrblackus/micro-muffin.git | PHP | 383 lines
1<?php 2 31 /** 32 * Compiles the node to PHP. 33 * 49 { 50 $compiler->write('<?php'); 51 } 132 ->write("\n\n") 133 // if the filename contains */, add a blank to avoid a PHP parse error 134 ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n") 134 ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n") 135 ->write('class ' . $compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index'))) 136 ->raw(sprintf(" extends %s\n", $compiler->getEnvironment()->getBaseTemplateClass()))control.php https://github.com/easysoft/zentaopms.git | PHP | 287 lines
1<?php 2/** 8 * @package install 9 * @version $Id: control.php 4297 2013-01-27 07:51:45Z wwccss $ 10 * @link http://www.zentao.net 65 $this->view->title = $this->lang->install->checking; 66 $this->view->phpVersion = $this->install->getPhpVersion(); 67 $this->view->phpResult = $this->install->checkPHP(); 121 /* Get mysql env in docker container. */ 122 if(getenv('MYSQL_HOST')) $dbHost = getenv('MYSQL_HOST'); 123 if(getenv('MYSQL_PORT')) $dbPort = getenv('MYSQL_PORT'); 123 if(getenv('MYSQL_PORT')) $dbPort = getenv('MYSQL_PORT'); 124 if(getenv('MYSQL_DB')) $dbName = getenv('MYSQL_DB'); 125 if(getenv('MYSQL_USER')) $dbUser = getenv('MYSQL_USER'); 125 if(getenv('MYSQL_USER')) $dbUser = getenv('MYSQL_USER'); 126 if(getenv('MYSQL_PASSWORD')) $dbPassword = getenv('MYSQL_PASSWORD'); 127Parser.php https://gitlab.com/matijabelec/bigpandadev | PHP | 399 lines
1<?php 2 44 45 public function getEnvironment() 46 {Service.php https://github.com/jpratt/cal.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 12510 2008-11-10 16:29:34Z matthew $ 32 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 #require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));Posix.php https://gitlab.com/yousafsyed/easternglamor | PHP | 407 lines
1<?php 2/** 109 $this->write($text, $color, $bgColor); 110 $this->write(PHP_EOL); 111 } 127 */ 128 if (($result = getenv('COLUMNS')) !== false) { 129 return $width = (int) $result; 155 // Try to read env variable 156 if (($result = getenv('LINES')) !== false) { 157 return $height = (int) $result; 191 // Try to retrieve it from LANG env variable 192 if (($lang = getenv('LANG')) !== false) { 193 return stristr($lang, 'utf-8') || stristr($lang, 'utf8'); 323 324 $stream = fopen('php://stdin', 'rb'); 325 do {Config.php https://github.com/Enrise/Zend.git | PHP | 323 lines
1<?php 2/** 24 */ 25// require_once "Zend/Tool/Framework/Provider/Abstract.php"; 26 29 */ 30// require_once "Zend/Config.php"; 31 34 */ 35// require_once "Zend/Config/Writer/Ini.php"; 36 39 */ 40// require_once "Zend/Loader.php"; 41 50 * @license http://framework.zend.com/license/new-bsd New BSD License 51 * @version $Id: Config.php 24593 2012-01-05 20:35:02Z matthew $ 52 */Config.php https://github.com/Freeaqingme/ZF1_Lib.git | PHP | 323 lines
1<?php 2/** 24 */ 25// require_once "Zend/Tool/Framework/Provider/Abstract.php"; 26 29 */ 30// require_once "Zend/Config.php"; 31 34 */ 35// require_once "Zend/Config/Writer/Ini.php"; 36 39 */ 40// require_once "Zend/Loader.php"; 41 50 * @license http://framework.zend.com/license/new-bsd New BSD License 51 * @version $Id: Config.php 23775 2011-03-01 17:25:24Z ralph $ 52 */Request.php https://gitlab.com/igorbabko/mindk | PHP | 306 lines
1<?php 2/** 2/** 3 * File /framework/request/Request.php contains Request class is used 4 * to manipulated with http request easily. 5 * 6 * PHP version 5 7 * 171 */ 172 public function getEnv($name) 173 {README.md https://bitbucket.org/orchdork10159/dnsman.ly.git | Markdown | 120 lines
8 9* **AWS PHP Libraries:** Build PHP applications on top of APIs that take the complexity out of coding directly 10 against a web service interface. The toolkit provides APIs that hide much of the lower-level implementation. 49 documents; the contents of which should be fairly self-explanatory. 50* `config-sample.inc.php` -- A sample configuration file that should be filled out and renamed to `config.inc.php`. 51* `sdk.class.php` -- The SDK loader that you would include in your projects. Contains the base functionality 99If you're unfamiliar with how to install PEAR packages, check out 100[Command line installer](http://pear.php.net/manual/en/guide.users.commandline.cli.php) in the PEAR user guide. 101 106 1071. Copy the contents of [config-sample.inc.php](https://github.com/amazonwebservices/aws-sdk-for-php/raw/master/config-sample.inc.php) 108 and add your credentials as instructed in the file. 116* AWS SDK for PHP: <http://aws.amazon.com/sdkforphp> 117* PHP Developer Center: <http://aws.amazon.com/php> 118* Documentation: <http://docs.amazonwebservices.com/AWSSDKforPHP/latest/>Service.php https://github.com/tuteke/isaved.git | PHP | 473 lines
1<?php 2/** 23 */ 24#require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 16214 2009-06-21 19:34:03Z thomas $ 32 * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) 132 if (null == $this->getName()) { 133 #require_once 'Zend/Json/Server/Exception.php'; 134 throw new Zend_Json_Server_Exception('SMD service description requires a name; none provided'); 169 if (!preg_match($this->_nameRegex, $name)) { 170 #require_once 'Zend/Json/Server/Exception.php'; 171 throw new Zend_Json_Server_Exception(sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name)); 197 if (!in_array($transport, $this->_transportTypes)) { 198 #require_once 'Zend/Json/Server/Exception.php'; 199 throw new Zend_Json_Server_Exception(sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)));php.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 131 lines
23 atoms: keywords("true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__"), 24 builtin: keywords("func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once"), 25 multiLineStrings: true, 54 var htmlMode = CodeMirror.getMode(config, "text/html"); 55 var phpMode = CodeMirror.getMode(config, phpConfig); 56 82 return style; 83 } else if (isPHP && state.php.tokenize == null && stream.match("?>")) { 84 state.curMode = htmlMode; 103 var html = state.html, htmlNew = CodeMirror.copyState(htmlMode, html), 104 php = state.php, phpNew = CodeMirror.copyState(phpMode, php), cur; 105 if (state.curMode == htmlMode) cur = htmlNew; 129 CodeMirror.defineMIME("application/x-httpd-php-open", {name: "php", startOpen: true}); 130 CodeMirror.defineMIME("text/x-php", phpConfig); 131})();Diff.php https://github.com/mlinsey/Gitdocs.git | PHP | 456 lines
1<?php 2/** 3 4http://pear.php.net/package/Text_Diff 5 8 * 9 * The original PHP version of this code was written by Geoffrey T. Dairiki 10 * <dairiki@dairiki.org>, and is used/adapted with his permission. 11 * 12 * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.12 2009/01/06 15:23:41 jan Exp $ 13 * 17 * See the enclosed file COPYING for license information (LGPL). If you did 18 * not receive this file, see http://opensource.org/licenses/lgpl-license.php. 19 * 54 55 require_once 'Diff/Engine/' . $engine . '.php'; 56 $class = 'Text_Diff_Engine_' . $engine;PropertyTask.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 438 lines
1<?php 2 3/* 4 * $Id: PropertyTask.php 3076 2006-12-18 08:52:12Z fabien $ 5 * 22 23include_once 'phing/TaskPhing.php'; 24include_once 'phing/system/util/Properties.php'; 153 154 function getEnvironment() { 155 return $this->env;OS_NS_stdlib.h https://gitlab.com/Kanedias/MangosDeprecated | C Header | 332 lines
9 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> 10 * @author Jesper S. M|ller<stophph@diku.dk> 11 * @author and a cast of thousands... 113 ACE_NAMESPACE_INLINE_FUNCTION 114 char *getenv (const char *symbol); 115 117 ACE_NAMESPACE_INLINE_FUNCTION 118 wchar_t *getenv (const wchar_t *symbol); 119# endif /* ACE_HAS_WCHAR && ACE_WIN32 */ 122 extern ACE_Export 123 ACE_TCHAR *getenvstrings (void); 124Account_Import.php https://gitlab.com/clearos/app-account-import | PHP | 320 lines
1<?php 2 41 42$bootstrap = getenv('CLEAROS_BOOTSTRAP') ? getenv('CLEAROS_BOOTSTRAP') : '/usr/clearos/framework/shared'; 43require_once $bootstrap . '/bootstrap.php';CreationMinerais.php https://github.com/Canop/braldahim.git | PHP | 340 lines
1<?php 2 192 // selection des environnements / zones concernes 193 $environnementIds = $this->getEnvironnementsConcernes($creationMinerais); 194 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - nb environnement concernes=" .count($environnementIds)); 259 260 private function getEnvironnementsConcernes($creationMinerais) { 261 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - getEnvironnementsConcernes - enter -"); 265 } 266 Bral_Util_Log::batchs()->trace("Bral_Batchs_CreationMinerais - getEnvironnementsConcernes - exit -"); 267 return $environnementIds;Config.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 311 lines
1<?php 2/** 24 */ 25require_once "Zend/Tool/Framework/Provider/Abstract.php"; 26 29 */ 30require_once "Zend/Config.php"; 31 34 */ 35require_once "Zend/Config/Writer/Ini.php"; 36 39 */ 40require_once "Zend/Loader.php"; 41 50 * @license http://framework.zend.com/license/new-bsd New BSD License 51 * @version $Id: Config.php 20096 2010-01-06 02:05:09Z bkarwin $ 52 */class-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
27 if(!$configurator) { 28 $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php'); 29 } 68 // sometime in windows $HOME is not defined 69 $home = getenv('HOMEDRIVE') . '/' . getenv('HOMEPATH'); 70 } 337 338 $php_bin = self::get_php_binary(); 339 357 358 if(getenv('TERMINUS_PHP_USED')) 359 return getenv('TERMINUS_PHP_USED'); 361 if(getenv('TERMINUS_PHP')) 362 return getenv('TERMINUS_PHP'); 363qwaylandquickhardwarelayer.cpp https://gitlab.com/f3822/qtwayland | C++ | 175 lines
57 58 QString environmentKey = QString::fromLocal8Bit(qgetenv("QT_WAYLAND_HARDWARE_LAYER_INTEGRATION").constData()); 59 if (!environmentKey.isEmpty()) { 162 163void QWaylandQuickHardwareLayer::setSceneGraphPainting(bool enable) 164{Controller.php https://github.com/sitengine/sitengine.git | PHP | 359 lines
1<?php 2 17 18require_once 'Sitengine/Controller/Action.php'; 19 37 38 public function getEnv() { return $this->_env; } 39 public function getLogger() { return $this->_logger; } 61 62 $this->_logger = $this->getEnv()->getLoggerInstance( 63 $this->getEnv()->getMyLogsDir(), 64 gmdate('Ymd').'-sitengine.log', 65 $this->getEnv()->getLogFilterPriority(), 66 get_class($this) 68 69 $this->_database = $this->getEnv()->getDatabaseInstance( 70 'Pdo_Mysql',juce_android_Fonts.cpp https://bitbucket.org/Klinkenstecker/owlsim.git | C++ | 329 lines
139 { 140 JNIEnv* const env = getEnv(); 141 179 { 180 JNIEnv* env = getEnv(); 181 const int numChars = text.length(); 196 197 void getGlyphPositions (const String& text, Array<int>& glyphs, Array<float>& xOffsets) 198 { 198 { 199 JNIEnv* env = getEnv(); 200 const int numChars = text.length(); 228 { 229 JNIEnv* env = getEnv(); 230Openssl.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 469 lines
1<?php 2/** 231 */ 232 public function getEnvelopeKey() 233 { 404 $decrypted = ""; 405 $envelope = current($this->getEnvelopeKey()); 406pgt-file.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 249 lines
1<?php 2 3/** 4 * @file CAS/PGTStorage/pgt-file.php 5 * Basic class for PGT file storage 108 { 109 phpCAS::traceBegin(); 110 // call the ancestor's constructor 116 // check that the path is an absolute path 117 if (getenv("OS")=="Windows_NT"){ 118 119 if (!preg_match('`^[a-zA-Z]:`', $path)) { 120 phpCAS::error('an absolute path is needed for PGT storage to file'); 121 } 127 if ( $path[0] != '/' ) { 128 phpCAS::error('an absolute path is needed for PGT storage to file'); 129 }Configuration.php https://gitlab.com/cividesk-civicrm/com.cividesk.payment.braintree | PHP | 551 lines
1<?php 2namespace Braintree; 60 61 $this->_environment = $parsedCredentials->getEnvironment(); 62 $this->_merchantId = $parsedCredentials->getMerchantId(); 85 if (empty($value)) { 86 return self::$global->getEnvironment(); 87 } 159 * Sets or gets the proxy type to use for connecting to Braintree. This value 160 * can be any of the CURLOPT_PROXYTYPE options in PHP cURL. 161 * 253 254 public function getEnvironment() 255 { 446 } 447 return getenv("GATEWAY_PORT") ? getenv("GATEWAY_PORT") : 3000; 448 }Openssl.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 353 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Openssl.php 20288 2010-01-14 20:15:43Z thomas $ 20 */ 24 */ 25// require_once 'Zend/Filter/Encrypt/Interface.php'; 26 70 if (!extension_loaded('openssl')) { 71 // require_once 'Zend/Filter/Exception.php'; 72 throw new Zend_Filter_Exception('This filter needs the openssl extension'); 99 if (!is_array($keys)) { 100 // require_once 'Zend/Filter/Exception.php'; 101 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 117 if ($test === false) { 118 // require_once 'Zend/Filter/Exception.php'; 119 throw new Zend_Filter_Exception("Public key '{$cert}' not valid");SmdTest.php https://github.com/mfairchild365/zf2.git | PHP | 403 lines
1<?php 2/** 42 */ 43class SmdTest extends \PHPUnit_Framework_TestCase 44{ 80 { 81 $this->assertEquals(Smd::ENV_JSONRPC_1, $this->smd->getEnvelope()); 82 } 87 $this->smd->setEnvelope(Smd::ENV_JSONRPC_2); 88 $this->assertEquals(Smd::ENV_JSONRPC_2, $this->smd->getEnvelope()); 89 $this->smd->setEnvelope(Smd::ENV_JSONRPC_1); 89 $this->smd->setEnvelope(Smd::ENV_JSONRPC_1); 90 $this->assertEquals(Smd::ENV_JSONRPC_1, $this->smd->getEnvelope()); 91 } 395 $this->assertEquals($this->smd->getTransport(), $smd['transport']); 396 $this->assertEquals($this->smd->getEnvelope(), $smd['envelope']); 397 $this->assertEquals($this->smd->getContentType(), $smd['contentType']);TargetTxtClassObject.py https://gitlab.com/envieidoc/Clover | Python | 190 lines
7# which accompanies this distribution. The full text of the license may be found at 8# http://opensource.org/licenses/bsd-license.php 9# 186 pass 187 Target = TargetTxtDict(os.getenv("WORKSPACE")) 188 print Target.TargetTxtDictionary[DataType.TAB_TAT_DEFINES_MAX_CONCURRENT_THREAD_NUMBER]Configuration.php https://gitlab.com/CORP-RESELLER/shopping-cart-lite | PHP | 346 lines
1<?php 2/** 242 } 243 return getenv("GATEWAY_PORT") ? getenv("GATEWAY_PORT") : 3000; 244 }Process.php https://github.com/agustinc/SemdropsMobile.git | PHP | 372 lines
1<?php 2 15 * Process is a thin wrapper around proc_* functions to ease 16 * start independent PHP processes. 17 * 51 if (!function_exists('proc_open')) { 52 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); 53 } 79 * 80 * @param Closure|string|array $callback A PHP callback to run whenever there is some 81 * output available on STDOUT or STDERR 106 107 // Workaround for http://bugs.php.net/bug.php?id=51800 108 if (strstr(PHP_OS, 'WIN')) { 342 343 public function getEnv() 344 {Config.php https://github.com/luisbraschi/ursp.git | PHP | 311 lines
1<?php 2/** 24 */ 25#require_once "Zend/Tool/Framework/Provider/Abstract.php"; 26 29 */ 30#require_once "Zend/Config.php"; 31 34 */ 35#require_once "Zend/Config/Writer/Ini.php"; 36 39 */ 40#require_once "Zend/Loader.php"; 41 50 * @license http://framework.zend.com/license/new-bsd New BSD License 51 * @version $Id: Config.php 20096 2010-01-06 02:05:09Z bkarwin $ 52 */DumpDataCollector.php https://gitlab.com/kimting254/wbms | PHP | 298 lines
1<?php 2 43 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 44 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 45 $this->requestStack = $requestStack; 71 72 $trace = PHP_VERSION_ID >= 50306 ? DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS : true; 73 if (PHP_VERSION_ID >= 50400) { 100 $name = $info->getTemplateName(); 101 $src = $info->getEnvironment()->getLoader()->getSource($name); 102 $info = $info->getDebugInfo(); 154 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 155 $this->dumper = new HtmlDumper('php://output', $this->charset); 156 } else { 156 } else { 157 $this->dumper = new CliDumper('php://output', $this->charset); 158 }setlocale.js https://gitlab.com/orvi2014/phpjs | JavaScript | 380 lines
114 try { 115 this.php_js = this.php_js || {}; 116 } catch (e) { 239 240 phpjs.locales.en_GB = _copy(phpjs.locales.en); 241 phpjs.locales.en_GB.LC_TIME.r = '%l:%M:%S %P %Z'; 317 if (phpjs.locale.replace(/_[a-zA-Z]+$/, '') in phpjs.locales) { 318 phpjs.locale = phpjs.locale.replace(/_[a-zA-Z]+$/, ''); 319 } 333 // for date and time formatting with strftime() 334 'LC_MESSAGES' : phpjs.locale // for system responses (available if PHP was compiled with libintl) 335 }; 338 if (locale === null || locale === '') { 339 locale = this.getenv(category) || this.getenv('LANG'); 340 } else if (Object.prototype.toString.call(locale) === '[object Array]') {Template.php https://github.com/reddragon010/RG-ServerPanel.git | PHP | 450 lines
1<?php 2 50 */ 51 public function getEnvironment() 52 { 288 * implementation detail that has been introduced to optimize variable 289 * access for versions of PHP before 5.4. This is not a way to override 290 * the way to get a variable value.Config.php https://gitlab.com/kps007/phinx | PHP | 334 lines
100 * 101 * @param string $configFilePath Path to the PHP File 102 * @throws \RuntimeException 104 */ 105 public static function fromPhp($configFilePath) 106 { 107 ob_start(); 108 /** @noinspection PhpIncludeInspection */ 109 $configArray = include($configFilePath); 126 */ 127 public function getEnvironments() 128 { 201 // else default to the first available one 202 if (is_array($this->getEnvironments()) && count($this->getEnvironments()) > 0) { 203 $names = array_keys($this->getEnvironments());Smd.php https://gitlab.com/yousafsyed/easternglamor | PHP | 461 lines
1<?php 2/** 153 */ 154 public function getEnvelope() 155 { 377 $transport = $this->getTransport(); 378 $envelope = $this->getEnvelope(); 379 $contentType = $this->getContentType();sysinfo.php https://gitlab.com/ricardosanchez/prueba | PHP | 367 lines
140 141 $this->info['php'] = php_uname(); 142 $this->info['dbversion'] = $db->getVersion(); 143 $this->info['dbcollation'] = $db->getCollation(); 144 $this->info['phpversion'] = phpversion(); 145 $this->info['server'] = isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : getenv('SERVER_SOFTWARE'); 154 /** 155 * Method to get if phpinfo method is enabled from php.ini 156 * 176 { 177 $this->php_info = JText::_('COM_ADMIN_PHPINFO_DISABLED'); 178 306 $this->_addDirectory('templates', JPATH_SITE . '/templates'); 307 $this->_addDirectory('configuration.php', JPATH_CONFIGURATION . '/configuration.php'); 308github-merge.py https://gitlab.com/jslee1/bitcoin | Python | 251 lines
3# Distributed under the MIT software license, see the accompanying 4# file COPYING or http://www.opensource.org/licenses/mit-license.php. 5 28# External tools (can be overridden using environment) 29GIT = os.getenv('GIT','git') 30BASH = os.getenv('BASH','bash')ProtonClient.php https://github.com/ocStore/ocStore.git | PHP | 143 lines
1<?php 2namespace Aws\Proton; 53 * @method \GuzzleHttp\Promise\Promise getAccountSettingsAsync(array $args = []) 54 * @method \Aws\Result getEnvironment(array $args = []) 55 * @method \GuzzleHttp\Promise\Promise getEnvironmentAsync(array $args = []) 55 * @method \GuzzleHttp\Promise\Promise getEnvironmentAsync(array $args = []) 56 * @method \Aws\Result getEnvironmentAccountConnection(array $args = []) 57 * @method \GuzzleHttp\Promise\Promise getEnvironmentAccountConnectionAsync(array $args = []) 57 * @method \GuzzleHttp\Promise\Promise getEnvironmentAccountConnectionAsync(array $args = []) 58 * @method \Aws\Result getEnvironmentTemplate(array $args = []) 59 * @method \GuzzleHttp\Promise\Promise getEnvironmentTemplateAsync(array $args = []) 59 * @method \GuzzleHttp\Promise\Promise getEnvironmentTemplateAsync(array $args = []) 60 * @method \Aws\Result getEnvironmentTemplateVersion(array $args = []) 61 * @method \GuzzleHttp\Promise\Promise getEnvironmentTemplateVersionAsync(array $args = [])secpay.php https://github.com/chrish123/oscommerce2.git | PHP | 188 lines
1<?php 2/* 131 if ($HTTP_POST_VARS['valid'] == 'true') { 132 if ($remote_host = getenv('REMOTE_HOST')) { 133 if ($remote_host != 'secpay.com') {Kernel.php https://github.com/thewiredman/symfony.git | PHP | 503 lines
281 282 public function getEnvironment() 283 { 322 323 if ($reload || !file_exists($location.'.php')) { 324 $this->buildContainer($class, $location.'.php'); 354 ), 355 $this->getEnvParameters() 356 ); 358 359 protected function getEnvParameters() 360 { 448 * 449 * We don't use the PHP php_strip_whitespace() function 450 * as we want the content to be readable and well-formatted.quirks.php https://github.com/CCI-Studios/Wee-Magazine.git | PHP | 444 lines
1<?php 2/** 3 * Akeeba Engine 4 * The modular PHP5 site backup engine 5 * @copyright Copyright (c)2009-2012 Nicholas K. Dionysopoulos 217 /** 218 * Q103 - HIGH - Less than 10" of max_execution_time with PHP Safe Mode enabled 219 * 270 // Try system environment variables 271 if(function_exists('getenv')) 272 { 272 { 273 if( $temp=getenv('TMP') ) return $temp; 274 if( $temp=getenv('TEMP') ) return $temp; 274 if( $temp=getenv('TEMP') ) return $temp; 275 if( $temp=getenv('TMPDIR') ) return $temp; 276 }XliffLintCommandTest.php https://github.com/FabienD/symfony.git | PHP | 269 lines
1<?php 2 13 14use PHPUnit\Framework\TestCase; 15use Symfony\Component\Console\Application; 136 137 <info>php %command.full_name% dirname</info> 138 <info>php %command.full_name% dirname --format=json</info> 155 { 156 $prev = getenv('GITHUB_ACTIONS'); 157 putenv('GITHUB_ACTIONS');URI.php https://github.com/Sa-ryong/Stadioom-php.git | PHP | 623 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 64 // Is the request coming from the command line? 65 if (php_sapi_name() == 'cli' or defined('STDIN')) 66 { 78 // Is there a PATH_INFO variable? 79 // Note: some servers seem to have trouble with getenv() so we'll test it two ways 80 $path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO'); 87 // No PATH_INFO?... What about QUERY_STRING? 88 $path = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING'); 89 if (trim($path, '/') != '') 119 120 $path = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri); 121 $this->_set_uri_string($path);request.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 409 lines
1<?php defined('C5_EXECUTE') or die("Access Denied."); 2 37 // for use in the dispatcher 38 // Thanks to Code Igniter for some of this code (in terms of getenv(), etc...) 39 40 private static function parsePathFromRequest($var) { 41 $path = (isset($_SERVER[$var])) ? $_SERVER[$var] : @getenv($var); 42 if (!$path) { 215 $imploded = implode('/', $exploded); 216 if(substr($imploded, -4) == '.php') { 217 $this->filename = $imploded; 218 } else { 219 $this->filename = $imploded . '.php'; 220 } 228 unset($exploded[2]); 229 $this->filename = 'css.php'; 230 $this->auxData = new stdClass;URI.php https://github.com/cawago/ci_campusync_auth.git | PHP | 586 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 4.3.2 or newer 6 * 74 // Is there a PATH_INFO variable? 75 // Note: some servers seem to have trouble with getenv() so we'll test it two ways 76 $path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO'); 83 // No PATH_INFO?... What about QUERY_STRING? 84 $path = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING'); 85 if (trim($path, '/') != '') 91 // No QUERY_STRING?... Maybe the ORIG_PATH_INFO variable exists? 92 $path = str_replace($_SERVER['SCRIPT_NAME'], '', (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO')); 93 if (trim($path, '/') != '' && $path != "/".SELF) 112 113 $this->uri_string = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri); 114 }URI.php https://github.com/JamieLomas/pyrocms.git | PHP | 623 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 78 // Is there a PATH_INFO variable? 79 // Note: some servers seem to have trouble with getenv() so we'll test it two ways 80 $path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO'); 87 // No PATH_INFO?... What about QUERY_STRING? 88 $path = (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING'); 89 if (trim($path, '/') != '') 119 120 $path = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri); 121 $this->_set_uri_string($path); 192 193 $uri = parse_url($uri, PHP_URL_PATH); 194Loader.php https://github.com/patadejaguar/S.A.F.E.-Open-Source-Microfinance-Suite.git | PHP | 376 lines
1<?php 2 256 function ($matchedPatterns) use ($loader) { 257 $nestedVariable = $loader->getEnvironmentVariable($matchedPatterns[1]); 258 if ($nestedVariable === null) { 290 */ 291 public function getEnvironmentVariable($name) 292 { 298 default: 299 $value = getenv($name); 300 return $value === false ? null : $value; // switch getenv default to null 328 // Ruby's dotenv does this with `ENV[key] ||= value`. 329 if ($this->immutable && $this->getEnvironmentVariable($name) !== null) { 330 return; 334 // Apache environment variable exists, overwrite it 335 if (function_exists('apache_getenv') && function_exists('apache_setenv') && apache_getenv($name) !== false) { 336 apache_setenv($name, $value);DumpDataCollector.php https://gitlab.com/judielsm/Handora | PHP | 303 lines
1<?php 2 43 $this->fileLinkFormat = $fileLinkFormat ?: ini_get('xdebug.file_link_format') ?: get_cfg_var('xdebug.file_link_format'); 44 $this->charset = $charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'; 45 $this->requestStack = $requestStack; 72 $trace = DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS; 73 if (PHP_VERSION_ID >= 50400) { 74 $trace = debug_backtrace($trace, 7); 100 $name = $info->getTemplateName(); 101 $src = $info->getEnvironment()->getLoader()->getSource($name); 102 $info = $info->getDebugInfo(); 154 if ($response->headers->has('Content-Type') && false !== strpos($response->headers->get('Content-Type'), 'html')) { 155 $this->dumper = new HtmlDumper('php://output', $this->charset); 156 } else { 156 } else { 157 $this->dumper = new CliDumper('php://output', $this->charset); 158 }File.php https://github.com/Zefiryn/graduationprojects.git | PHP | 511 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: File.php 23775 2011-03-01 17:25:24Z ralph $ 22 */ 26 */ 27require_once "Zend/OpenId/Consumer/Storage.php"; 28 56 if ($dir === null) { 57 $tmp = getenv('TMP'); 58 if (empty($tmp)) { 58 if (empty($tmp)) { 59 $tmp = getenv('TEMP'); 60 if (empty($tmp)) { 75 */ 76 require_once 'Zend/OpenId/Exception.php'; 77 throw new Zend_OpenId_Exception(SandboxTest.php https://bitbucket.org/gencer/twig.git | PHP | 220 lines
1<?php 2 11 12class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase 13{ 45 { 46 $twig = $this->getEnvironment(true, array(), self::$templates, array('block')); 47 $twig->loadTemplate('1_child')->render(array()); 51 { 52 $twig = $this->getEnvironment(false, array(), self::$templates); 53 $this->assertEquals('FOO', $twig->loadTemplate('1_basic')->render(self::$params), 'Sandbox does nothing if it is disabled globally'); 54 55 $twig = $this->getEnvironment(true, array(), self::$templates); 56 try { 61 62 $twig = $this->getEnvironment(true, array(), self::$templates); 63 try {SandboxTest.php https://gitlab.com/gideonmarked/PLCPortal | PHP | 285 lines
1<?php 2 11 12class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase 13{ 45 { 46 $twig = $this->getEnvironment(true, array(), self::$templates, array('block')); 47 $twig->loadTemplate('1_child')->render(array()); 51 { 52 $twig = $this->getEnvironment(false, array(), self::$templates); 53 $this->assertEquals('FOO', $twig->loadTemplate('1_basic')->render(self::$params), 'Sandbox does nothing if it is disabled globally'); 57 { 58 $twig = $this->getEnvironment(true, array(), self::$templates); 59 try { 70 { 71 $twig = $this->getEnvironment(true, array(), self::$templates); 72 try {CommonBackendTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 290 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: CommonBackendTest.php 24989 2012-06-21 07:24:13Z mabe $ 21 */ 33 */ 34abstract class Zend_Cache_CommonBackendTest extends PHPUnit_Framework_TestCase { 35 84 } else { 85 if (getenv('TMPDIR')){ 86 return getenv('TMPDIR') . DIRECTORY_SEPARATOR . 'zend_cache_tmp_dir_' . $suffix;PropertyTask.php https://github.com/IDCI-Consulting/WebsiteEval.git | PHP | 438 lines
1<?php 2 3/* 4 * $Id: PropertyTask.php 144 2007-02-05 15:19:00Z hans $ 5 * 22 23include_once 'phing/Task.php'; 24include_once 'phing/system/util/Properties.php'; 153 154 function getEnvironment() { 155 return $this->env;mail.php https://gitlab.com/2202Programming/navxmxp | PHP | 406 lines
1<?php 2class Mail { 95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 158 } else { 159 if (substr(PHP_OS, 0, 3) != 'WIN') { 160 socket_set_timeout($handle, $this->timeout, 0); 186 if (!empty($this->username) && !empty($this->password)) { 187 fputs($handle, 'EHLO ' . getenv('SERVER_NAME') . $this->crlf); 188 254 } else { 255 fputs($handle, 'HELO ' . getenv('SERVER_NAME') . $this->crlf); 256 358 foreach ($results as $result) { 359 if (substr(PHP_OS, 0, 3) != 'WIN') { 360 fputs($handle, $result . $this->crlf);sfCacheClearTask.class.php https://github.com/bheneka/gitta.git | PHP | 257 lines
1<?php 2 147 { 148 $subDir = sfConfig::get('sf_cache_dir').'/'.$appConfiguration->getApplication().'/'.$appConfiguration->getEnvironment().'/config'; 149 188 { 189 $subDir = sfConfig::get('sf_cache_dir').'/'.$appConfiguration->getApplication().'/'.$appConfiguration->getEnvironment().'/modules'; 190 200 $app = $appConfiguration->getApplication(); 201 $env = $appConfiguration->getEnvironment(); 202Process.php https://bitbucket.org/hanutimes/hanutimes.git | PHP | 379 lines
1<?php 2 30 * Process is a thin wrapper around proc_* functions to ease 31 * start independent PHP processes. 32 * 66 if (!function_exists('proc_open')) { 67 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); 68 } 94 * 95 * @param Closure|string|array $callback A PHP callback to run whenever there is some 96 * output available on STDOUT or STDERR 349 350 public function getEnv() 351 {Config.php https://gitlab.com/devtoannh/cafe | PHP | 323 lines
1<?php 2/** 24 */ 25require_once "Zend/Tool/Framework/Provider/Abstract.php"; 26 29 */ 30require_once "Zend/Config.php"; 31 34 */ 35require_once "Zend/Config/Writer/Ini.php"; 36 39 */ 40require_once "Zend/Loader.php"; 41 50 * @license http://framework.zend.com/license/new-bsd New BSD License 51 * @version $Id: Config.php 23775 2011-03-01 17:25:24Z ralph $ 52 */Kernel.php https://github.com/ad2joe/php-framework-benchmarks.git | PHP | 448 lines
1<?php 2 7use Symfony\Components\DependencyInjection\BuilderConfiguration; 8use Symfony\Components\DependencyInjection\Dumper\PhpDumper; 9use Symfony\Components\DependencyInjection\FileResource; 115 116 require_once __DIR__.'/bootstrap.php'; 117 235 236 public function getEnvironment() 237 { 276 277 if ($reload || !file_exists($location.'.php')) { 278 $this->buildContainer($class, $location.'.php'); 280 281 require_once $location.'.php'; 282deprecations.py https://bitbucket.org/zzzeek/sqlalchemy.git | Python | 416 lines
5# This module is part of SQLAlchemy and is released under 6# the MIT License: https://www.opensource.org/licenses/mit-license.php 7 24 25if os.getenv("SQLALCHEMY_WARN_20", "false").lower() in ("true", "yes", "1"): 26 SQLALCHEMY_WARN_20 = TrueCallExpression.php https://gitlab.com/remyvianne/krowkaramel | PHP | 264 lines
1<?php 2namespace MailPoetVendor\Twig\Node\Expression; 28 $class = (new \ReflectionClass(\get_class($callable[0])))->name; 29 if (!$compiler->getEnvironment()->hasExtension($class)) { 30 // Compile a non-optimized call to trigger a \Twig\Error\RuntimeError, which cannot be a compile-time error 117 } 118 list($callableParameters, $isPhpVariadic) = $this->getCallableParameters($callable, $isVariadic); 119 $arguments = []; 125 $name = $this->normalizeName($callableParameter->name); 126 if (\PHP_VERSION_ID >= 80000 && 'range' === $callable) { 127 if ('start' === $name) { 138 if (\count($missingArguments)) { 139 throw new SyntaxError(\sprintf('Argument "%s" could not be assigned for %s "%s(%s)" because it is mapped to an internal PHP function which cannot determine default value for optional argument%s "%s".', $name, $callType, $callName, \implode(', ', $names), \count($missingArguments) > 1 ? 's' : '', \implode('", "', $missingArguments)), $this->getTemplateLine(), $this->getSourceContext()); 140 } 163 if ($isVariadic) { 164 $arbitraryArguments = $isPhpVariadic ? new VariadicExpression([], -1) : new ArrayExpression([], -1); 165 foreach ($parameters as $key => $value) {README.md https://github.com/ChuguluGames/mediawiki-svn.git | Markdown | 136 lines
59 60* You are at least an intermediate-level PHP developer and have a basic understanding of object-oriented PHP. 61* You have a valid AWS account, and you've already signed up for the services you want to use. 61* You have a valid AWS account, and you've already signed up for the services you want to use. 62* The PHP interpreter, version 5.2 or newer. PHP 5.2.17 or 5.3.x is highly recommended for use with the AWS SDK for PHP. 63* The cURL PHP extension (compiled with the [OpenSSL](http://openssl.org) libraries for HTTPS support). 100 101[PEAR](http://pear.php.net) stands for the _PHP Extension and Application Repository_ and is a framework and 102distribution system for reusable PHP components. It is the PHP equivalent to package management software such as 123 1241. Copy the contents of [config-sample.inc.php](https://github.com/amazonwebservices/aws-sdk-for-php/raw/master/config-sample.inc.php) 125 and add your credentials as instructed in the file. 132 133* AWS SDK for PHP: <http://aws.amazon.com/sdkforphp> 134* Documentation: <http://docs.amazonwebservices.com/AWSSDKforPHP/latest/>Template.php https://bitbucket.org/allfields/wave.git | PHP | 413 lines
1<?php 2 51 */ 52 public function getEnvironment() 53 {sysinfo.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 325 lines
83 $this->php_settings['disable_functions'] = ini_get('disable_functions'); 84 $this->php_settings['xml'] = extension_loaded('xml'); 85 $this->php_settings['zlib'] = extension_loaded('zlib'); 138 } 139 $this->info['php'] = php_uname(); 140 $this->info['dbversion'] = $db->getVersion(); 141 $this->info['dbcollation'] = $db->getCollation(); 142 $this->info['phpversion'] = phpversion(); 143 $this->info['server'] = $sf; 178 179 return $this->php_info; 180 } 285 $this->_addDirectory('templates', JPATH_SITE . '/templates'); 286 $this->_addDirectory('configuration.php', JPATH_CONFIGURATION . '/configuration.php'); 287 $this->_addDirectory('cache', JPATH_SITE.'/cache', 'COM_ADMIN_CACHE_DIRECTORY');TransparentRedirectTest.php https://github.com/MomentumApp/braintree_php.git | PHP | 261 lines
1<?php 2require_once realpath(dirname(__FILE__)) . '/../TestHelper.php'; 3 4class Braintree_TransparentRedirectTest extends PHPUnit_Framework_TestCase 5{ 256 $url = Braintree_TransparentRedirect::url(); 257 $developmentPort = getenv("GATEWAY_PORT") ? getenv("GATEWAY_PORT") : 3000; 258 $this->assertEquals("http://localhost:" . $developmentPort . "/merchants/integration_merchant_id/transparent_redirect_requests", $url);Application.php https://bitbucket.org/areeves42/openfisma.git | PHP | 417 lines
1<?php 2/** 67 * 68 * Initialize application. Potentially initializes include_paths, PHP 69 * settings, and bootstrap class. 79 80 require_once 'Zend/Loader/Autoloader.php'; 81 $this->_autoloader = Zend_Loader_Autoloader::getInstance(); 100 */ 101 public function getEnvironment() 102 { 144 if (!empty($options['phpsettings'])) { 145 $this->setPhpSettings($options['phpsettings']); 146 } 253 /** 254 * Set PHP configuration settings 255 *s-ntitco.adb https://github.com/ytomino/drake.git | Ada | 315 lines
1-- reference: 2-- http://www.mudpedia.org/mediawiki/index.php/Xterm_256_colors 3with System.Address_To_Named_Access_Conversions; 33 begin 34 TERM := C.stdlib.getenv (TERM_Variable (0)'Access); 35 if TERM /= nullOpenssl.php https://github.com/kervin/kyzstudio.git | PHP | 492 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Openssl.php 21212 2010-02-27 17:33:27Z thomas $ 20 */ 24 */ 25#require_once 'Zend/Filter/Encrypt/Interface.php'; 26 86 if (!extension_loaded('openssl')) { 87 #require_once 'Zend/Filter/Exception.php'; 88 throw new Zend_Filter_Exception('This filter needs the openssl extension'); 125 if (!is_array($keys)) { 126 #require_once 'Zend/Filter/Exception.php'; 127 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 143 if ($test === false) { 144 #require_once 'Zend/Filter/Exception.php'; 145 throw new Zend_Filter_Exception("Public key '{$cert}' not valid");paypal.php https://github.com/psykomo/kutump-enhanced.git | PHP | 283 lines
1<?php 2/* 76 77 protected function getEnvironment() 78 { 91 $API_Signature = urlencode($this->getNVP(self::$name, "API_Signature")); 92 $API_Endpoint = "https://api-3t.".$this->getEnvironment()."paypal.com/nvp"; 93 $version = urlencode($this->getNVP(self::$name, "version")); 175 } 176 Header("Location: https://www.".$this->getEnvironment()."paypal.com/webscr?cmd=_express-checkout&token=$token$nvpStr"); 177 //Header("Location: https://www.".$this->getEnvironment()."paypal.com/webscr?cmd=_cart&token=$token$nvpStr");ScriptHandler.php https://gitlab.com/randydanniswara/website | PHP | 261 lines
138 139 copy(__DIR__.'/../Resources/skeleton/app/SymfonyRequirements.php', $appDir.'/SymfonyRequirements.php'); 140 copy(__DIR__.'/../Resources/skeleton/app/check.php', $appDir.'/check.php'); 190 191 ClassCollectionLoader::load($classes, dirname($file), basename($file, '.php.cache'), false, false, '.php.cache'); 192 210 { 211 $php = escapeshellarg(self::getPhp()); 212 $console = escapeshellarg($appDir.'/console'); 225 { 226 $php = escapeshellarg(self::getPhp()); 227 $cmd = escapeshellarg(__DIR__.'/../Resources/bin/build_bootstrap.php'); 254 $phpFinder = new PhpExecutableFinder(); 255 if (!$phpPath = $phpFinder->find()) { 256 throw new \RuntimeException('The php executable could not be found, add it to your PATH environment variable and try again');Openssl.php https://gitlab.com/Ltaimao/wecenter | PHP | 492 lines
1<?php 2/** 24 */ 25//require_once 'Zend/Filter/Encrypt/Interface.php'; 26 86 if (!extension_loaded('openssl')) { 87 //require_once 'Zend/Filter/Exception.php'; 88 throw new Zend_Filter_Exception('This filter needs the openssl extension'); 125 if (!is_array($keys)) { 126 //require_once 'Zend/Filter/Exception.php'; 127 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 143 if ($test === false) { 144 //require_once 'Zend/Filter/Exception.php'; 145 throw new Zend_Filter_Exception("Public key '{$cert}' not valid"); 153 if ($test === false) { 154 //require_once 'Zend/Filter/Exception.php'; 155 throw new Zend_Filter_Exception("Private key '{$cert}' not valid");COLLADAMaxDocumentExporter.h https://bitbucket.org/ZhangJingGuo/opencollada.git | C Header | 248 lines
14 for details please see LICENSE file or the website 15 http://www.opensource.org/licenses/mit-license.php 16*/ 238 /** Returns the value of the environment variable @a variableName.*/ 239 String getEnvironmentVariable ( const String & variableName ); 240install.php https://bitbucket.org/ndj/piecrust.git | PHP | 412 lines
333 334POSSIBLES="/usr/bin/php-5.3 /usr/local/bin/php-5.3 /usr/bin/php /usr/local/bin/php" 335for CUR in $POSSIBLES; do 381if defined PHP_PEAR_BIN_DIR ( 382 set PHPEXE="%PHP_PEAR_BIN_DIR%\php.exe" 383 goto RunChef 387FOR /F "tokens=3" %%G IN ('"reg query HKLM\SOFTWARE\xampp /v Install_Dir 2> nul"') DO ( 388 set PHPEXE="%%G\php\php.exe" 389 goto RunChef 391FOR /F "tokens=3" %%G IN ('"reg query HKLM\SOFTWARE\Wow6432Node\xampp /v Install_Dir 2> nul"') DO ( 392 set PHPEXE="%%G\php\php.exe" 393 goto RunChef 401echo. variable pointing to it. 402echo.* If you're using EsayPHP, add the EasyPHP's PHP sub-directory to your 403echo. PATH environment variable.Service.php https://bitbucket.org/Ebozavrik/test-application.git | PHP | 494 lines
1<?php 2/** 23 */ 24require_once 'Zend/Json/Server/Smd.php'; 25 30 * @subpackage Server 31 * @version $Id: Service.php 24593 2012-01-05 20:35:02Z matthew $ 32 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) 133 if (null == $this->getName()) { 134 require_once 'Zend/Json/Server/Exception.php'; 135 throw new Zend_Json_Server_Exception( 'SMD service description requires a name; none provided' ); 173 if (!preg_match($this->_nameRegex, $name)) { 174 require_once 'Zend/Json/Server/Exception.php'; 175 throw new Zend_Json_Server_Exception( sprintf('Invalid name "%s" provided for service; must follow PHP method naming conventions', $name) ); 203 if (!in_array($transport, $this->_transportTypes)) { 204 require_once 'Zend/Json/Server/Exception.php'; 205 throw new Zend_Json_Server_Exception( sprintf('Invalid transport "%s"; please select one of (%s)', $transport, implode(', ', $this->_transportTypes)) );execution_context.h https://github.com/tmjnaid/hiphop-php.git | C Header | 303 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 16 17#ifndef __HPHP_EXECUTION_CONTEXT_H__ 18#define __HPHP_EXECUTION_CONTEXT_H__MarketplaceManager.php https://gitlab.com/yousafsyed/easternglamor | PHP | 455 lines
1<?php 2/** 274 if (empty($authJsonData['http-basic'])) { 275 return unlink(getenv('COMPOSER_HOME') . DIRECTORY_SEPARATOR . $this->pathToAuthFile); 276 } else {ServerVariablesControllerTest.php https://gitlab.com/trungthao379/phpmyadmin | PHP | 325 lines
1<?php 2/* vim: set expandtab sw=4 ts=4 sts=4: */ 5 * 6 * @package PhpMyAdmin-test 7 */ 13 14require_once 'libraries/database_interface.inc.php'; 15require_once 'test/libraries/stubs/ResponseStub.php'; 15require_once 'test/libraries/stubs/ResponseStub.php'; 16require_once 'test/PMATestCase.php'; 17 20 * 21 * @package PhpMyAdmin-test 22 */ 41 //$GLOBALS 42 $GLOBALS['PMA_PHP_SELF'] = PMA_getenv('PHP_SELF'); 43 $GLOBALS['server'] = 1;class-wc-download-handler.php https://gitlab.com/webkod3r/tripolis | PHP | 426 lines
1<?php 2 252 exit; 253 } elseif ( stristr( getenv( 'SERVER_SOFTWARE' ), 'lighttpd' ) ) { 254 self::download_headers( $parsed_file_path['file_path'], $filename ); 256 exit; 257 } elseif ( stristr( getenv( 'SERVER_SOFTWARE' ), 'nginx' ) || stristr( getenv( 'SERVER_SOFTWARE' ), 'cherokee' ) ) { 258 self::download_headers( $parsed_file_path['file_path'], $filename ); 338 } 339 if ( function_exists( 'get_magic_quotes_runtime' ) && get_magic_quotes_runtime() && version_compare( phpversion(), '5.4', '<' ) ) { 340 set_magic_quotes_runtime( 0 ); 369 * 370 * Reads file in chunks so big downloads are possible without changing PHP.INI - http://codeigniter.com/wiki/Download_helper_for_large_files/. 371 *Config.php https://gitlab.com/yousafsyed/easternglamor | PHP | 342 lines
1<?php 2 173 $val = rtrim($this->process($this->getComposerEnv($env) ?: $this->config[$key], $flags), '/\\'); 174 $val = preg_replace('#^(\$HOME|~)(/|$)#', rtrim(getenv('HOME') ?: getenv('USERPROFILE'), '/\\') . '/', $val); 175 336 if ($this->useEnvironment) { 337 return getenv($var); 338 }Openssl.php https://bitbucket.org/hmancvs/farmis.git | PHP | 492 lines
1<?php 2/** 18 * @license http://framework.zend.com/license/new-bsd New BSD License 19 * @version $Id: Openssl.php,v 1.1 2011/11/03 08:30:23 smusoke Exp $ 20 */ 24 */ 25require_once 'Zend/Filter/Encrypt/Interface.php'; 26 86 if (!extension_loaded('openssl')) { 87 require_once 'Zend/Filter/Exception.php'; 88 throw new Zend_Filter_Exception('This filter needs the openssl extension'); 125 if (!is_array($keys)) { 126 require_once 'Zend/Filter/Exception.php'; 127 throw new Zend_Filter_Exception('Invalid options argument provided to filter'); 143 if ($test === false) { 144 require_once 'Zend/Filter/Exception.php'; 145 throw new Zend_Filter_Exception("Public key '{$cert}' not valid");FilterTest.php https://gitlab.com/arthur_quiroga/dystawork | PHP | 151 lines
1<?php 2 135 136 protected function getEnvironment() 137 {ModuleNode.php https://gitlab.com/dcnf/dcbase.org | PHP | 464 lines
1<?php 2 74 if (!$this->getAttribute('index')) { 75 $compiler->write('<?php'); 76 } 156 $compiler 157 // if the template name contains */, add a blank to avoid a PHP parse error 158 ->write('/* '.str_replace('*/', '* /', $this->getSourceContext()->getName())." */\n") 158 ->write('/* '.str_replace('*/', '* /', $this->getSourceContext()->getName())." */\n") 159 ->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getSourceContext()->getName(), $this->getAttribute('index'))) 160 ->raw(" extends Template\n") 436 ->write('return new Source(') 437 ->string($compiler->getEnvironment()->isDebug() ? $this->getSourceContext()->getCode() : '') 438 ->raw(', ')InstanceProfileProvider.php https://github.com/ocStore/ocStore.git | PHP | 299 lines
1<?php 2namespace Aws\Credentials; 55 { 56 $this->timeout = (float) getenv(self::ENV_TIMEOUT) ?: (isset($config['timeout']) ? $config['timeout'] : 1.0); 57 $this->profile = isset($config['profile']) ? $config['profile'] : null; 57 $this->profile = isset($config['profile']) ? $config['profile'] : null; 58 $this->retries = (int) getenv(self::ENV_RETRIES) ?: (isset($config['retries']) ? $config['retries'] : 3); 59 $this->attempts = 0; 214 { 215 $disabled = getenv(self::ENV_DISABLE) ?: false; 216 if (strcasecmp($disabled, 'true') === 0) { 223 $request = new Request($method, self::SERVER_URI . $url); 224 $userAgent = 'aws-sdk-php/' . Sdk::VERSION; 225 if (defined('HHVM_VERSION')) {ManagerTest.php https://gitlab.com/vannh/portal_training | PHP | 230 lines
20 $config = new Config($this->getConfigArray()); 21 $output = new StreamOutput(fopen('php://memory', 'a', false)); 22 $this->manager = new Manager($config, $output); 122 'InvalidArgumentException', 123 'Duplicate migration - "' . $this->getCorrectedPath(__DIR__ . '/_files/duplicateversions/20120111235330_duplicate_migration_2.php') . '" has the same version as "20120111235330"' 124 ); 125 $config = new Config(array('paths' => array('migrations' => $this->getCorrectedPath(__DIR__ . '/_files/duplicateversions')))); 126 $output = new StreamOutput(fopen('php://memory', 'a', false)); 127 $manager = new Manager($config, $output); 134 'InvalidArgumentException', 135 'Migration "20120111235331_duplicate_migration_name.php" has the same name as "20120111235330_duplicate_migration_name.php"' 136 ); 137 $config = new Config(array('paths' => array('migrations' => $this->getCorrectedPath(__DIR__ . '/_files/duplicatenames')))); 138 $output = new StreamOutput(fopen('php://memory', 'a', false)); 139 $manager = new Manager($config, $output);RequestDataCollector.php https://github.com/rrehbeindoi/symfony.git | PHP | 426 lines
1<?php 2 82 $dotenvVars = array(); 83 foreach (explode(',', getenv('SYMFONY_DOTENV_VARS')) as $name) { 84 if ('' !== $name && false !== $value = getenv($name)) { 113 114 if (isset($this->data['request_headers']['php-auth-pw'])) { 115 $this->data['request_headers']['php-auth-pw'] = '******'; 117 118 if (isset($this->data['request_server']['PHP_AUTH_PW'])) { 119 $this->data['request_server']['PHP_AUTH_PW'] = '******';ApplicationDefaultCredentialsTest.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 253 lines
1<?php 2/* 24 25class ADCGetTest extends \PHPUnit_Framework_TestCase 26{ 30 { 31 $this->originalHome = getenv('HOME'); 32 } 35 { 36 if ($this->originalHome != getenv('HOME')) { 37 putenv('HOME=' . $this->originalHome); 103 104class ADCGetMiddlewareTest extends \PHPUnit_Framework_TestCase 105{ 109 { 110 $this->originalHome = getenv('HOME'); 111 }