how's this?
#!/usr/bin/php
?php
class trimshebang {
function filter($in, $out, $consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket-data = ltrim($bucket-data,#!/usr/bin/php\n);
$consumed += $bucket-datalen;
stream_bucket_append($out,
Nathan Rixham wrote:
how's this?
#!/usr/bin/php
?php
class trimshebang {
function filter($in, $out, $consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket-data = ltrim($bucket-data,#!/usr/bin/php\n);
$consumed += $bucket-datalen;
Aschwin Wesselius wrote:
Me thinks that when shebang doesn't fit /usr/bin/php (which happens
sometimes) you're doomed.
[snip]
good point.. modified to use BINDIR:
#!/usr/bin/php
?php
class trimshebang {
function filter($in, $out, $consumed, $closing)
{
while ($bucket =
Nathan Rixham schreef:
how's this?
#!/usr/bin/php
?php
class trimshebang {
function filter($in, $out, $consumed, $closing)
{
while ($bucket = stream_bucket_make_writeable($in)) {
$bucket-data = ltrim($bucket-data,#!/usr/bin/php\n);
$consumed += $bucket-datalen;
4 matches
Mail list logo