From b7dba933c472a46cd82fd03705421eb5c501039f Mon Sep 17 00:00:00 2001 From: Paul Scarrone Date: Thu, 26 Dec 2019 11:09:03 -0500 Subject: [PATCH] Backfilled phpize lookup table and added defs for 74 --- Abstract/abstract-php-extension.rb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Abstract/abstract-php-extension.rb b/Abstract/abstract-php-extension.rb index 737e09b..f7531a7 100755 --- a/Abstract/abstract-php-extension.rb +++ b/Abstract/abstract-php-extension.rb @@ -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 @@ -259,3 +269,12 @@ def self.init(opts = []) depends_on "php@7.3" => opts if build.with?("homebrew-php") end end + +class AbstractPhp74Extension < AbstractPhpExtension + include AbstractPhpVersion::Php74Defs + + def self.init(opts = []) + super() + depends_on "php@7.4" => opts if build.with?("homebrew-php") + end +end