ID: 15102
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Reproducible crash
Operating System: Red Hat 7.2
PHP Version: 4.0.6
New Comment:

Hi,

I have compiled 4.0.4pl1 on the system (simple static install,
--with-mysql --with-apache, --host i386-redhat-linux, everything else
defaulted, and the script works fine, so there is a problem with 4.0.6.
I can't install RPMS as I don't have rpm access. I opened a ticket with
the ISP for them to check the configuration, but I don't understand why
PHP barfs. I will try with 4.0.5 tomorrow.

Fabrice.


Previous Comments:
------------------------------------------------------------------------

[2002-01-18 14:27:46] [EMAIL PROTECTED]

The only log I know about is error_log on /usr/local/apache/log is
there anything else I should look at?

[Fri Jan 18 14:22:53 2002] [error] [client 151.200.238.39] Premature
end of script headers: /home/usr235/html/upload.php

phpinfo says: 

 './configure' '--with-mysql=/usr/local/mysql'
'--prefix=/usr/local/php' '--with-mck=/usr/local/mck-3.2.0.3-linux'
'--with-dbase' '--with-pfpro=/usr/local/pfpro' '--enable-discard-path'
'--prefix=/usr/local' '--with-gd' '--enable-gdbm' '--enable-bcmath'
'--with-config-file-path=/usr/local/apache' '--enable-magic-quotes'
'--enable-ftp'

Server API CGI 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /usr/local/apache 

Note that there is no php.ini in this path, or anywhere on the server.

Finally someone that agrees with me that this should work!!! 

------------------------------------------------------------------------

[2002-01-18 14:15:44] [EMAIL PROTECTED]

It should work. It's probably a configuration problem (echo'ing
$userfile should print out the temporary filename of the uploaded
file).
Can you provide some more information, like what's in the error log?

------------------------------------------------------------------------

[2002-01-18 11:08:12] [EMAIL PROTECTED]

A simple standard form is used to upload a file

<form action="upload.php" enctype="multipart/form-data" method="post">
File: <input type="file" MAX_FILE_SIZE="10000" name="userfile">
<input type="submit" value="send">
</form>

The php script says:

#!/usr/local/bin/php
<?php
echo $userfile;
?>

My ISP upgraded from PHP 4.0.2 to 4.0.6 and at the same time from
Redhat 6.1 to 7.2. Apache is 1.3.20.

I've been battling with my ISP (Interland) who says that since i'm not
doing anything with the file, this can't work. I gave up trying to
teach them PHP after the "senior PHP support specialist" told me that
can't work (I wonder why it did before, then).

What happens is the file gets uploaded (takes time to upload, so it is
definitely transfering it), then I get the Internal Server Error 500. I
don't see the file on /tmp.

There is no php.ini anywhere on the server, so I guess the default
values are taken. The phpinfo() looks fine to me.

This worked fine on 4.0.2 and 3.0.9. I tried uploading a file using
perl and that works, but i want to use php.

Help!

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=15102&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to