mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-30 23:07:56 +07:00 
			
		
		
		
	Fix enabling xml extension for PECL
This commit is contained in:
		| @ -104,6 +104,7 @@ add_devtools() { | ||||
|  | ||||
| # Function to handle request to add PECL. | ||||
| add_pecl() { | ||||
|   enable_extension xml extension >/dev/null 2>&1 | ||||
|   configure_pecl >/dev/null 2>&1 | ||||
|   pear_version=$(get_tool_version "pecl" "version") | ||||
|   add_log "${tick:?}" "PECL" "Found PECL $pear_version" | ||||
|  | ||||
| @ -88,8 +88,9 @@ add_extension() { | ||||
| add_devtools() { | ||||
|   tool=$1 | ||||
|   if ! command -v "$tool$version" >/dev/null; then | ||||
|     install_packages "php$version-dev" "php$version-xml" | ||||
|     install_packages "php$version-dev" | ||||
|   fi | ||||
|   add_extension xml extension >/dev/null 2>&1 | ||||
|   switch_version "phpize" "php-config" | ||||
|   add_log "${tick:?}" "$tool" "Added $tool $semver" | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Shivam Mathur
					Shivam Mathur