Re: Bug in #! processing - "pear broken on current"
From: Dag-Erling Smørgrav (des_at_des.no)
Date: 06/10/05
- Previous message: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- In reply to: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- Next in thread: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- Reply: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Garance A Drosehn <gad@FreeBSD.org> Date: Fri, 10 Jun 2005 09:27:19 +0200
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=1 $INCDIR/pearcmd.php "$@"
and pearcmd.php simply starts with
<?php
Fedora has a similar shell wrapper:
exec $PHP -C -q $INCARG -d output_buffering=1 $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 i386 GNU/Linux
des@cat ~% cat foo.php
#!/usr/bin/php -n -q -dsafe_mode=0 -doutput_buffering=1
<?php print "hello, world!\n" ?>
des@cat ~% php -n -q -dsafe_mode=0 -doutput_buffering=1 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[=bar] 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 argument
starts with - or script is read from stdin
DES
-- Dag-Erling Smørgrav - des@des.no _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- In reply to: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- Next in thread: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- Reply: Roman Neuhauser: "Re: Bug in #! processing - "pear broken on current""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|