cvs: pecl /phar/phar pharcommand.inc

From: Date: Fri, 21 Mar 2008 23:22:17 +0000
Subject: cvs: pecl /phar/phar pharcommand.inc
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-10000@lists.php.net to get a copy of this message
helly Fri Mar 21 23:22:17 2008 UTC Modified files: /pecl/phar/phar pharcommand.inc Log: - Fix stub/hashbang generation http://cvs.php.net/viewvc.cgi/pecl/phar/phar/pharcommand.inc?r1=1.46&r2=1.47&diff_format=u Index: pecl/phar/phar/pharcommand.inc diff -u pecl/phar/phar/pharcommand.inc:1.46 pecl/phar/phar/pharcommand.inc:1.47 --- pecl/phar/phar/pharcommand.inc:1.46 Fri Mar 21 23:07:43 2008 +++ pecl/phar/phar/pharcommand.inc Fri Mar 21 23:22:17 2008 @@ -411,6 +411,8 @@ if (substr($hashbang, -1) != "\n") { $hashbang .= "\n"; } + } else { + $hashbang = ""; } if (isset($loader)) { @@ -427,9 +429,9 @@ $s .= '?>'; $s .= $c; - $phar->setStub($hasbang . $s); + $phar->setStub($hashbang . $s); } else { - $phar->setStub($hasbang . $c); + $phar->setStub($hashbang . $c); } return new SplFileInfo($stub); }

« previous php.pecl.cvs (#10000) next »