Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.21.8

Bug #16423 Path to php binary should not be hardcoded
Submitted: 2009-07-10 08:13 UTC Modified: 2009-10-04 00:41 UTC
From: wrobel Assigned: kguest
Status: Closed Package: Date_Holidays (version 0.21.2)
PHP Version: 5.2.5 OS: Linux
Roadmaps: 0.21.5    
Subscription  



Patch script_parser_path Revisions
Revision 2009-07-10 08:14 UTC
Developer wrobel
 
Download patch

diff -Naur pear-dh-compile-translationfile pear-dh-compile-translationfile
--- pear-dh-compile-translationfile	2009-03-24 01:18:21.000000000 +0100
+++ pear-dh-compile-translationfile	2009-07-10 08:07:51.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/php
+#!@php_bin@
 
 <?php
 /**
diff -Naur pear-dh-ini2xml pear-dh-ini2xml
--- pear-dh-ini2xml	2009-03-24 01:18:21.000000000 +0100
+++ pear-dh-ini2xml	2009-07-10 08:07:47.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/php
+#!@php_bin@
 <?php
 /**
  * Converts the old-style INI-language files into XML-files that
@@ -58,4 +58,4 @@
 
 
 
-?>
\ Kein Zeilenumbruch am Dateiende.
+?>
diff -Naur package.xml package.xml
--- package.xml	2009-03-24 01:18:21.000000000 +0100
+++ package.xml	2009-07-10 08:07:18.000000000 +0200
@@ -87,8 +87,12 @@
    <file baseinstalldir="Date"  name="tests/test_getHolidays.php" role="test" />
    <file baseinstalldir="Date"  name="tests/test_missingLocale.php" role="test" />
    <file baseinstalldir="Date"  name="Holidays.php" role="php" />
-   <file baseinstalldir="/"  name="pear-dh-compile-translationfile" role="script" />
-   <file baseinstalldir="/"  name="pear-dh-ini2xml" role="script" />
+   <file baseinstalldir="/"  name="pear-dh-compile-translationfile" role="script">
+     <replace from="@php_bin@" to="php_bin" type="pear-config"/>
+   </file>
+   <file baseinstalldir="/"  name="pear-dh-ini2xml" role="script">
+     <replace from="@php_bin@" to="php_bin" type="pear-config"/>
+   </file>
   </dir>
  </contents>
  <dependencies>