[pmwiki-users] Can't save some Chinese wiki word page.

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 28 12:28:18 CDT 2005


On Thu, Sep 29, 2005 at 12:56:57AM +0800, Elias Soong wrote:
> Warning: fopen(wiki.d/Main.??,new) [function.fopen]: failed to create
> stream: Invalid argument in D:\www\pmwiki2\pmwiki.php on line 578
> [...]
> This only happen on PHP at windows platform, and may only for Chinese
> windows platform. On linux, all Chinese word is ok. So we think it is a
> bug for PHP.

Someone reported a problem like this sometime before, although I
didn't have the full platform details.  Weird.

> A work a round is, at the line 578, 590 and 592, change "$pagename,new"
> to be "$pagename"."_new", all words will be ok. If we change it to be
> "$pagename".",new" or "$pagename".".new", it still the same problem.

Underscore is a little dangerous, as some sites choose to allow
underscores in page names.  How about a different character, such
as an equals sign (=)?  Does that work?

> Maybe we should change the temporary file naming method for this
> problem. Thanks a lot.

This can be done as long as we can find something that works and
doesn't collide with likely names.

Pm




More information about the pmwiki-users mailing list