]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
examples: hello-php: Fix runtime error.
authorBruno Haible <bruno@clisp.org>
Thu, 18 Oct 2018 01:04:47 +0000 (03:04 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 18 Oct 2018 19:16:58 +0000 (21:16 +0200)
* gettext-tools/examples/hello-php/hello.php: Fix the PHP markup. Don't print
the return value of the printf function.

gettext-tools/examples/hello-php/hello.php

index ca226f9c625c237a3b261c24d04e7af9aa6ffabd..6c68a78c312493ef9283a79ad6311c3797b050be 100644 (file)
@@ -1,5 +1,5 @@
 #!@PHP@ -q
-<?
+<?php
   // Example for use of GNU gettext.
   // This file is in the public domain.
   //
@@ -11,7 +11,6 @@
 
   echo _("Hello, world!");
   echo "\n";
-  echo printf (_("This program is running as process number %d."),
-               posix_getpid());
+  printf (_("This program is running as process number %d."), posix_getpid());
   echo "\n";
 ?>