freebsd-ports/lang/php4/files/patch-pear::scripts::pearcmd.php
Alex Dupre a0f57b5ec7 Fix pear command on FreeBSD-current.
(We loose the output buffering capability,
but we cannot set it inside the script)

PR:		ports/81890
Submitted by:	Edwin Culp <eculp@bafirst.com>
2005-06-08 07:45:15 +00:00

20 lines
583 B
PHP

--- pear/scripts/pearcmd.php.orig Fri May 16 17:31:37 2003
+++ pear/scripts/pearcmd.php Fri May 16 17:36:10 2003
@@ -1,3 +1,4 @@
+#!%%PREFIX%%/bin/php -nq
<?php
//
// +----------------------------------------------------------------------+
@@ -24,9 +25,9 @@
/**
* @nodep Gtk
*/
-if ('@include_path@' != '@'.'include_path'.'@') {
- ini_set('include_path', '@include_path@');
-}
+dl('pcre.so');
+dl('xml.so');
+ini_set('include_path', '%%PREFIX%%/share/pear:%%PREFIX%%/share/pear/bootstrap');
ini_set('allow_url_fopen', true);
set_time_limit(0);
ob_implicit_flush(true);