[SPAM] Re: [SPAM] Re: [PHP-GTK-DOC]cvs: php-gtk-doc/scripts/copy_images.php
[email protected] ("Steph Fox") Wed, 6 Dec 2006 18:35:22 +0200
| Newsgroups | php.gtk.doc |
|---|---|
| Message-ID | <03ca01c71954$869b4b20$4101a8c0@foxbox> |
True, it doesn't affect anything adversely. Ack, I just got it - I've got display_errors turned off! <sigh /> OK ignore me, I'm having a dim day. Anyone have time to apply this one-liner? I'd need a clean checkout to do it @ present... Thanks Mike, - Steph ps apologies for double-posting, Mike - I did say I was having a dim day, right? ;) > I builded the zh_cn manual in my debian system. just for testing the xml I > translated and get the Chinese version for my friend. > Then it throw a warning for me, It like: Waning mkdir() : FileExists In > ...... So I made this patch. > > Anyway, That`s not affect the whole, isnt it? ^_^! > > 06-12-6锛Steph Fox <[email protected]> 锛 >> >> That's only relevant on a Windows box... I don't even know if there's a >> way >> to do this where it becomes relevant even on a Windows box, thinking >> about >> it, it's called at the end of a full build. Is there? >> >> ----- Original Message ----- >> From: "mikespook" <[email protected]> >> To: <[email protected]> >> Sent: Wednesday, December 06, 2006 5:11 PM >> Subject: [PHP-GTK-DOC]cvs: php-gtk-doc/scripts/copy_images.php >> >> >> > Modified files: >> > php-gtk-doc/scripts/copy_images.php >> > Log: >> > If the path $fulldest alreay existed, there would be a warning >> executing >> > mkdir in copy_images.php line 22. Add file_exists check if the path >> > already >> > existed. Because I havent got the cvs account yet, I send this to the >> > list. >> > >> > Index: copy_images.php >> > =================================================================== >> > RCS file: /repository/php-gtk-doc/scripts/copy_images.php,v >> > retrieving revision 1.1 >> > diff -u -r1.1 copy_images.php >> > --- copy_images.php 26 Mar 2006 02:44:13 -0000 1.1 >> > +++ copy_images.php 6 Dec 2006 14:52:38 -0000 >> > @@ -19,7 +19,9 @@ >> > if ($file != "." && $file != ".." && $file != "CVS") { >> > $fulldest = $dest.substr(getcwd(), strpos(getcwd(), >> > 'images')-1)."/$file"; >> > if (is_dir($file)) { >> > - mkdir($fulldest, 0777); >> > + if (!file_exists($fulldest)) { >> > + mkdir($fulldest, 0777); >> > + } >> > copy_images(realpath($file), $dest, $count); >> > } else { >> > copy($file, $fulldest); >> > >> > -- >> > 骞垮甯涓逛俊ㄨ >> > 板锛骞垮甯 姹澶ч涓 绌辨 涓宸12204 >> > 锛510245 >> > 佃锛020-39738561 020-39738571 >> > 浼锛020-84476279 >> > 缃绔锛www.i-fang.com >> > 欢锛[email protected] >> > >> >> >> >> -------------------------------------------------------------------------------- >> >> >> > -- >> > PHP-GTK Documentation Mailing List (http://gtk.php.net/) >> > To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > -- > 骞垮甯涓逛俊ㄨ > 板锛骞垮甯 姹澶ч涓 绌辨 涓宸12204 > 锛510245 > 佃锛020-39738561 020-39738571 > 浼锛020-84476279 > 缃绔锛www.i-fang.com > 欢锛[email protected] >