From 872dd08617c64bb15b9a04496f7f59cbd442f97c Mon Sep 17 00:00:00 2001 From: Ben Wiley Sittler Date: Fri, 7 Nov 2008 06:30:29 +0000 Subject: [PATCH] clarify that this is a PHP port, not the original C program; return -1 when export fails, too --- caca-php/examples/img2txt.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/caca-php/examples/img2txt.php b/caca-php/examples/img2txt.php index b8e6dfb..f2f0dca 100755 --- a/caca-php/examples/img2txt.php +++ b/caca-php/examples/img2txt.php @@ -2,6 +2,10 @@ + * + * This file is a Php port of "src/img2txt.c" + * which is: * Copyright (c) 2006 Sam Hocevar * 2007 Jean-Yves Lamoureux * All Rights Reserved @@ -371,6 +375,7 @@ function main() if(!$export) { fprintf(STDERR, "%s: Can't export to format '%s'\n", $argv[0], $format); + return -1; } else {