```ruby
require 'formula'

class UploadprogressPhp < Formula
  homepage 'http://pecl.php.net/package/uploadprogress'
  url 'http://pecl.php.net/get/uploadprogress-1.0.3.1.tgz'
  md5 '13fdc39d68e131f37c4e18c3f75aeeda'

  depends_on 'autoconf'
  depends_on 'pcre'

  def install
    Dir.chdir "uploadprogress-#{version}" do
      system "phpize"
      system "./configure", "--prefix=#{prefix}"
      system "make"

      prefix.install %w(modules/uploadprogress.so)
    end
  end

  def caveats; <<-EOS.undent
    To finish installing uploadprogress-php:
      * Add the following line to #{etc}/php.ini:
        zend_extension="#{prefix}/uploadprogress.so"
      * Restart your webserver.
      * Write a PHP page that calls "phpinfo();"
      * Load it in a browser and look for the info on the uploadprogress module.
      * If you see it, you have been successful!
    EOS
  end
end
```

Change zend_extension to extension, because using zend_extension causes PHP to say: "uploadprogress.so doesn't appear to be a valid Zend extension"
user
```ruby
require 'formula'

class UploadprogressPhp < Formula
  homepage 'http://pecl.php.net/package/uploadprogress'
  url 'http://pecl.php.net/get/uploadprogress-1.0.3.1.tgz'
  md5 '13fdc39d68e131f37c4e18c3f75aeeda'

  depends_on 'autoconf'
  depends_on 'pcre'

  def install
    Dir.chdir "uploadprogress-#{version}" do
      system "phpize"
      system "./configure", "--prefix=#{prefix}"
      system "make"

      prefix.install %w(modules/uploadprogress.so)
    end
  end

  def caveats; <<-EOS.undent
    To finish installing uploadprogress-php:
      * Add the following line to #{etc}/php.ini:
        extension="#{prefix}/uploadprogress.so"
      * Restart your webserver.
      * Write a PHP page that calls "phpinfo();"
      * Load it in a browser and look for the info on the uploadprogress module.
      * If you see it, you have been successful!
    EOS
  end
end
```
assistant