Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Xdebug to 3.1 for PHP7.2 and PHP7.3 #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ class AmpPhpAT72Xdebug < AbstractPhp72Extension
init
desc "Provides debugging and profiling capabilities."
homepage "https://xdebug.org"
url "https://xdebug.org/files/xdebug-2.6.0.tgz"
mirror "https://github.com/AmpersandHQ/homebrew-php/raw/master/files/xdebug-2.6.0.tgz"
sha256 "b5264cc03bf68fcbb04b97229f96dca505d7b87ec2fb3bd4249896783d29cbdc"
url "https://xdebug.org/files/xdebug-3.1.4.tgz"
mirror "https://github.com/AmpersandHQ/homebrew-php/raw/master/files/xdebug-3.1.4.tgz"
sha256 "4195926f9f6c4e802ff749bb2ca85ac50636719a72e5389e372e35ef523505f9"
head "https://github.com/xdebug/xdebug.git"

def extension_type
Expand All @@ -17,14 +17,18 @@ def config_file
<<~EOS
[#{extension}]
#{extension_type}="#{module_path}"
xdebug.remote_enable=1
xdebug.remote_port=9010
xdebug.mode=debug
xdebug.client_port=9010
xdebug.idekey=PHPSTORM
EOS
rescue StandardError
nil
end

def install
system "pwd"
system "ls -lasth"

Dir.chdir "xdebug-#{version}" unless build.head?

safe_phpize
Expand Down
14 changes: 9 additions & 5 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ class AmpPhpAT73Xdebug < AbstractPhp73Extension
init
desc "Provides debugging and profiling capabilities."
homepage "https://xdebug.org"
url "https://xdebug.org/files/xdebug-2.7.2.tgz"
mirror "https://github.com/AmpersandHQ/homebrew-php/raw/master/files/xdebug-2.7.2.tgz"
sha256 "b0f3283aa185c23fcd0137c3aaa58554d330995ef7a3421e983e8d018b05a4a6"
url "https://xdebug.org/files/xdebug-3.1.4.tgz"
mirror "https://github.com/AmpersandHQ/homebrew-php/raw/master/files/xdebug-3.1.4.tgz"
sha256 "4195926f9f6c4e802ff749bb2ca85ac50636719a72e5389e372e35ef523505f9"
head "https://github.com/xdebug/xdebug.git"

def extension_type
Expand All @@ -17,14 +17,18 @@ def config_file
<<~EOS
[#{extension}]
#{extension_type}="#{module_path}"
xdebug.remote_enable=1
xdebug.remote_port=9010
xdebug.mode=debug
xdebug.client_port=9010
xdebug.idekey=PHPSTORM
EOS
rescue StandardError
nil
end

def install
system "pwd"
system "ls -lasth"

Dir.chdir "xdebug-#{version}" unless build.head?

safe_phpize
Expand Down