copy() broken
| From: | steve1800 at iname dot com | Date: | Sun, 23 Apr 2000 08:03:25 +0000 |
| Subject: | copy() broken | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18131@lists.php.net to get a copy of this message | ||
Hello,
I have a sneeking suspicion that this is not
directly php4's problem but cygwin's problem.
Because I needed a module version of php4 on
my win95 box I recently compiled the cygwin version
of Apache and PHP4b2 avaliable here:
http://www.student.uni-koeln.de/cygwin/
Everthing went great and compiled without a hitch.
But I noticed that I was experiencing file copy()
problems with my existing scripts.
What I found out is that the file is being copied
but it is being tructuated to 486 bytes from whatever
the original size is. I then tryed, as a workaround,
to use cygwin's "cp" command from within php and that
takes Apache down alltogether.
I further discovered that it is not possible to fork
any shell process from within php such as with
popen() or system() etc which I think is a because...
From the cygwin readme:
" A remaining problem on Windows 95 is that httpd isn't
able to fork() child processes cleanly. That's why
you have to set the -X switch when invoking httpd on
those platforms"
So I guess my question is ... does copy() fork an
external process? and if not, what approach would
you recomend I take to fix this with my existing
platform.
Thanks very much in advance.
Steve
----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com