Browse Source

clarify that this is a PHP port, not the original C program; return -1

when export fails, too
tags/v0.99.beta17
Ben Wiley Sittler bsittler 16 years ago
parent
commit
872dd08617
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      caca-php/examples/img2txt.php

+ 5
- 0
caca-php/examples/img2txt.php View File

@@ -2,6 +2,10 @@
<?php
/*
* img2txt image to text converter
* Copyright (c) 2008 Benjamin C. Wiley Sittler <bsittler@gmail.com>
*
* This file is a Php port of "src/img2txt.c"
* which is:
* Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
* 2007 Jean-Yves Lamoureux <jylam@lnxscene.org>
* 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
{


Loading…
Cancel
Save