mirror of
https://github.com/php/php-src.git
synced 2024-10-04 16:26:13 +00:00
dca0d5852d
#options because they are swallowed by PHP. Use "-q" option instead to #avoid this but still supress HTTP headers.
20 lines
280 B
C++
20 lines
280 B
C++
#!@prefix@/bin/php -q
|
|
<?php // -*- C++ -*-
|
|
|
|
require_once "PEAR.php";
|
|
require_once "PEAR/Installer.php";
|
|
|
|
error_reporting(1);
|
|
|
|
$pkgfile = $argv[0];
|
|
|
|
if (!$pkgfile) {
|
|
die("Usage: pear <packagefile>\n");
|
|
}
|
|
|
|
$p = new PEAR_Installer();
|
|
$p->debug = true;
|
|
$p->install($pkgfile);
|
|
|
|
?>
|