bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gettext] php tests fixes


From: Jens Petersen
Subject: [gettext] php tests fixes
Date: Mon, 19 Mar 2007 13:08:51 +1000
User-agent: Thunderbird 1.5.0.10 (X11/20070302)

I received a report that the php headers in the php tests in gettext-tools/tests/ should be fixed to use "<?php" instead of "<?", since "<?" can cause problems in certain php configurations (eg if "short_open_tag = Off" is set in /etc/php.ini).

Below is a patch by Robert Scheck which should fix the files in question.

Thanks, Jens

--- ./gettext-tools/tests/xgettext-php-1     2006-11-27 18:02:11.000000000 +0100
+++ ./gettext-tools/tests/xgettext-php-1.rsc 2007-03-18 16:03:40.000000000 +0100
@@ -7,0 +7,0 @@

 tmpfiles="$tmpfiles xg-ph-1.php"
 cat <<EOF > xg-ph-1.php
-<?
+<?php
 // This comment will not be extracted.
 echo _("help");
 //  TRANSLATORS: This is an extracted comment.
--- ./gettext-tools/tests/xgettext-php-2     2006-05-15 14:23:49.000000000 +0200
+++ ./gettext-tools/tests/xgettext-php-2.rsc 2007-03-18 16:03:52.000000000 +0100
@@ -7,0 +7,0 @@

 tmpfiles="$tmpfiles xg-ph-2.php"
 cat <<EOF > xg-ph-2.php
-<?
+<?php
 echo _("Egyptians");
 echo <<<EOTMARKER
 Ramses
--- ./gettext-tools/tests/lang-php      2006-11-27 18:02:08.000000000 +0100
+++ ./gettext-tools/tests/lang-php.rsc  2007-03-18 16:04:42.000000000 +0100
@@ -9,0 +9,0 @@

 tmpfiles="$tmpfiles prog.php"
 cat <<\EOF > prog.php
-<?
+<?php
   setlocale (LC_ALL, "");
   textdomain ("prog");
   bindtextdomain ("prog", ".");
--- ./gettext-tools/tests/prog.php      2007-03-18 15:41:56.000000000 +0100
+++ ./gettext-tools/tests/prog.php.rsc  2007-03-18 16:04:53.000000000 +0100
@@ -1,4 +1,4 @@
-<?
+<?php
   setlocale (LC_ALL, "");
   textdomain ("prog");
   bindtextdomain ("prog", ".");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]