cvs: phpdoc /scripts check-trans-maint.php

From: Date: Wed, 18 Jun 2008 00:38:36 +0000
Subject: cvs: phpdoc /scripts check-trans-maint.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-1789@lists.php.net to get a copy of this message
sammywg Wed Jun 18 00:38:36 2008 UTC Modified files: /phpdoc/scripts check-trans-maint.php Log: update temp file write check http://cvs.php.net/viewvc.cgi/phpdoc/scripts/check-trans-maint.php?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/scripts/check-trans-maint.php diff -u phpdoc/scripts/check-trans-maint.php:1.1 phpdoc/scripts/check-trans-maint.php:1.2 --- phpdoc/scripts/check-trans-maint.php:1.1 Tue Jun 17 23:27:16 2008 +++ phpdoc/scripts/check-trans-maint.php Wed Jun 18 00:38:36 2008 @@ -19,7 +19,7 @@ */ error_reporting(E_ALL); -define('VERSION', '$Id: check-trans-maint.php,v 1.1 2008/06/17 23:27:16 sammywg Exp $'); +define('VERSION', '$Id: check-trans-maint.php,v 1.2 2008/06/18 00:38:36 sammywg Exp $'); if (PHP_SAPI != 'cli') { print "This script is for command line use only.\n"; @@ -85,7 +85,7 @@ $tmpFile = realpath(dirname($options['f'])).DIRECTORY_SEPARATOR.basename($options['f']); } -if (!isset($options['n']) && is_string($tmpFile) && !is_writable($tmpFile)) { +if (!isset($options['n']) && is_string($tmpFile) && !@touch($tmpFile)) { print "Cannot write working copy to {$tmpFile}. Please check path and permissions.\n"; exit(); }

« previous php.doc.cvs (#1789) next »