Date: Fri, 10 Jun 2005 09:27:19 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) To: Garance A Drosehn <gad@FreeBSD.org> Cc: Kris Kennaway <kris@obsecurity.org>, freebsd-ports@FreeBSD.org, "Matthew D. Fuller" <fullermd@over-yonder.net>, freebsd-arch@FreeBSD.org Subject: Re: Bug in #! processing - "pear broken on current" Message-ID: <86fyvq3c4o.fsf@xps.des.no> In-Reply-To: <20050610062431.GA78875@isis.sigpipe.cz> (Roman Neuhauser's message of "Fri, 10 Jun 2005 08:24:31 %2B0200") References: <200506090027.j590R2t0070899@repoman.freebsd.org> <20050609003619.GA10578@xor.obsecurity.org> <20050609100815.GB16677@over-yonder.net> <p06210258bece1422da20@[128.113.24.47]> <20050609160316.GC16677@over-yonder.net> <p06210259bece1ae26f44@[128.113.24.47]> <20050610062431.GA78875@isis.sigpipe.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Roman Neuhauser <neuhauser@sigpipe.cz> writes: > The pear people have hacked around the other OS's limitations. > > This change makes FreeBSD lose one small but fine competitive > advantage over other unix-like systems. Pity. Huh? Here's what pear looks like on Debian: #!/usr/bin/php4 -Cq <?php // -*- PHP -*- SuSE uses a shell wrapper which ends in exec $PHP -C -q $INCARG -d output_buffering=3D1 $INCDIR/pearcmd.php "$@" and pearcmd.php simply starts with <?php Fedora has a similar shell wrapper: exec $PHP -C -q $INCARG -d output_buffering=3D1 $INCDIR/pearcmd.php "$@" so we're certainly not the only ones who need to modify pear. Take a look at this: des@cat ~% uname -a Linux cat 2.6.8-24.14-default #1 Tue Mar 29 09:27:43 UTC 2005 i686 athlon i= 386 GNU/Linux des@cat ~% cat foo.php #!/usr/bin/php -n -q -dsafe_mode=3D0 -doutput_buffering=3D1 <?php print "hello, world!\n" ?> des@cat ~% php -n -q -dsafe_mode=3D0 -doutput_buffering=3D1 foo.php hello, world! des@cat ~% ./foo.php Usage: php [options] [-f] <file> [args...] php [options] -r <code> [args...] php [options] [-- args...] -a Run interactively -c <path>|<file> Look for php.ini file in this directory -n No php.ini file will be used -d foo[=3Dbar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse <file>. -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -r <code> Run PHP <code> without using script tags <?..?> -s Display colour syntax highlighted source. -v Version number -w Display source with stripped comments and whitespace. -z <file> Load Zend extension <file>. args... Arguments passed to script. Use -- args when first argum= ent starts with - or script is read from stdin DES --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86fyvq3c4o.fsf>