Skip to content

Commit

Permalink
Backfilled phpize lookup table and added defs for 74
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjapanzer committed Dec 27, 2019
1 parent 6eb7d37 commit b7dba93
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Abstract/abstract-php-extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@ def initialize(*)
i = IO.popen("#{phpize} -v")
out = i.readlines.join("")
i.close
{ 53 => 20090626, 54 => 20100412, 55 => 20121113, 56 => 20131106, 70 => 20151012, 71 => 20160303, 72 => 20170718 }.each do |v, api|
{
53 => 20090626,
54 => 20100412,
55 => 20121113,
56 => 20131106,
70 => 20151012,
71 => 20160303,
72 => 20170718,
73 => 20180731,
74 => 20190902
}.each do |v, api|
installed_php_version = v.to_s if out.match(/#{api}/)
end

Expand Down Expand Up @@ -259,3 +269,12 @@ def self.init(opts = [])
depends_on "[email protected]" => opts if build.with?("homebrew-php")
end
end

class AbstractPhp74Extension < AbstractPhpExtension
include AbstractPhpVersion::Php74Defs

def self.init(opts = [])
super()
depends_on "[email protected]" => opts if build.with?("homebrew-php")
end
end

0 comments on commit b7dba93

Please sign in to comment.