1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/www/eaccelerator/files/patch-encoder.php
Alex Dupre e6895f029c Add support for PHP 5.1.
Unfortunately the encoder doesn't work with PHP 5 and eaccelerator
developers are not very interested in the encoding feature.
2006-02-02 09:06:14 +00:00

34 lines
1.5 KiB
PHP

--- encoder.php.orig Fri May 6 10:26:43 2005
+++ encoder.php Thu Feb 2 09:39:47 2006
@@ -1,10 +1,12 @@
+#!%%LOCALBASE%%/bin/php -f
+
<?php
$web_error = "";
function eaccelerator_encoder_usage() {
- echo "Usage:\tphp -q encoder.php [options] source_file_name\n";
- echo "\tphp -q encoder.php [options] source_file_name...\n";
- echo "\tphp -q encoder.php [options] source_directory_name...\n\n";
+ echo "Usage:\tencoder [options] source_file_name\n";
+ echo "\tencoder [options] source_file_name...\n";
+ echo "\tencoder [options] source_directory_name...\n\n";
echo "Options:\n";
echo "\t-s suffix\n\t\tencode files only with following suffix (default is \"php\")\n";
echo "\t-a\n\t\tencode all files (no by default)\n";
@@ -17,10 +19,10 @@
echo "\t\tfile name. If you encode directory or several files at once\n";
echo "\t\tthen 'target' specifyes an output directory name.\n";
echo "\nExamples:\n";
- echo "\tphp -q encoder.php some_file.php\n";
- echo "\tphp -q encoder.php some_file.php -o some_encoded_file.php\n";
- echo "\tphp -q encoder.php *.php -o some_dir\n";
- echo "\tphp -q encoder.php ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
+ echo "\tencoder some_file.php\n";
+ echo "\tencoder some_file.php -o some_encoded_file.php\n";
+ echo "\tencoder *.php -o some_dir\n";
+ echo "\tencoder ~/public_html/x -rcf -sphp -sinc -o ~/public_html/y\n";
echo "\n";
exit();
}