mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 15:26:23 +07:00 
			
		
		
		
	Set memory_limit=-1 on Windows and macOS
This commit is contained in:
		| @ -206,8 +206,8 @@ else | ||||
| fi | ||||
| ini_file=$(php -d "date.timezone=UTC" --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g") | ||||
| sudo chmod 777 "$ini_file" "$tool_path_dir" | ||||
| echo "date.timezone=UTC" >>"$ini_file" | ||||
| ext_dir=$(php -i | grep -Ei "extension_dir => /(usr|opt)" | sed -e "s|.*=> s*||") | ||||
| echo -e "date.timezone=UTC\nmemory_limit=-1" >>"$ini_file" | ||||
| ext_dir=$(php -i | grep -Ei "extension_dir => /" | sed -e "s|.*=> s*||") | ||||
| scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||") | ||||
| sudo mkdir -p "$ext_dir" | ||||
| semver=$(php -v | head -n 1 | cut -f 2 -d ' ') | ||||
|  | ||||
| @ -270,6 +270,7 @@ if ($null -eq $installed -or -not("$($installed.Version).".StartsWith(($version | ||||
|  | ||||
| $installed = Get-Php -Path $php_dir | ||||
| Set-PhpIniKey -Key 'date.timezone' -Value 'UTC' -Path $php_dir | ||||
| Set-PhpIniKey -Key 'memory_limit' -Value '-1' -Path $php_dir | ||||
| Enable-PhpExtension -Extension openssl, curl, opcache, mbstring -Path $php_dir | ||||
| Update-PhpCAInfo -Path $php_dir -Source CurrentUser | ||||
| if ($version -eq 'master') { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur