#26882 [Fbk-Opn]: The file upload has the increased size

2004-01-13 Thread mascari at odarainternet dot com dot br
 ID:   26882
 User updated by:  mascari at odarainternet dot com dot br
 Reported By:  mascari at odarainternet dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Conectiva Linux 9.0
 PHP Version:  4CVS-2004-01-12
 New Comment:

---
# php.conf
# This file is included by a Include conf/conf.d/*.conf directive in
the
# Apache httpd.conf file.

Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files

DirectoryIndex index.php

---
# php.module
# This file is included by a Include conf/conf.d/*.module directive in
the Apache httpd.conf file.

LoadModule php4_module modules/libphp4.so

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

---
# /etc/php.ini
[PHP]
engine = On
short_open_tag = On
asp_tags = Off
precision=  12
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
error_reporting  =  E_ALL  ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = EGPCS
register_globals = On
register_argc_argv = On
post_max_size = 8M
gpc_order = GPC
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = text/html
doc_root =
user_dir =
extension_dir = /usr/lib/php4
enable_dl = On
file_uploads = On
upload_tmp_dir = /tmp
upload_max_filesize = 5M
allow_url_fopen = On
allow_url_fopen = On
extension=imap.so
extension=mysql.so
extension=odbc.so

---
# httpd.conf
##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
IfModule prefork.c
StartServers 5
MinSpareServers  5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild  0
/IfModule

# worker MPM
IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

# perchild MPM
IfModule perchild.c
NumServers   5
StartThreads 5
MinSpareThreads  5
MaxSpareThreads 10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
/IfModule

# WinNT MPM
IfModule mpm_winnt.c
ThreadsPerChild 250
MaxRequestsPerChild  0
/IfModule

# BeOS MPM
IfModule beos.c
StartThreads   10
MaxClients 50
MaxRequestsPerThread   1
/IfModule

# NetWare MPM
IfModule mpm_netware.c
ThreadStackSize  65536
StartThreads   250
MinSpareThreads 25
MaxSpareThreads250
MaxThreads1000
MaxRequestsPerChild  0
/IfModule

# OS/2 MPM
IfModule mpmt_os2.c
StartServers   2
MinSpareThreads5
MaxSpareThreads   10
MaxRequestsPerChild0
/IfModule


Previous Comments:


[2004-01-13 05:12:38] [EMAIL PROTECTED]

What did you put into httpd.conf to enable PHP?
And what was the configure line used to configure PHP?
What MPM is used for Apache2?




[2004-01-12 08:44:49] mascari at odarainternet dot com dot br

Description:

I am using Apache 2.0.48 and PHP 4.3.3 and how much I try to make
upload of file not text, the size of the file are increased. 

Analyzing the content of the increased file,  I perceived that all the
lines blank, marked for caracter @ had been substituted by the
posterior content the lines blank.

PS: I tested to send an file using one scripts Perl that I have and the
file was sent correctly...

Reproduce code:
---
upload.htm:
htmlbody
form action=upload.php method=post enctype=multipart/form-data
input type=hidden name=MAX_FILE_SIZE value=20971520
input name=userfile type=filebr
input type=submit value=Send files
/form
/body/html

upload.php:
?
if(move_uploaded_file($_FILES['userfile']['tmp_name'],/tmp/.$_FILES['userfile']['name']))
{
echo SUCCESSFULL;
} else {
echo ERRORbr;
print_r($_FILES);
}






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


#26882 [Fbk-Opn]: The file upload has the increased size

2004-01-13 Thread mascari at odarainternet dot com dot br
 ID:   26882
 User updated by:  mascari at odarainternet dot com dot br
 Reported By:  mascari at odarainternet dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Conectiva Linux 9.0
 PHP Version:  4CVS-2004-01-12
 New Comment:

I removed the lines and the problem was decided. 

You it could say me because those lines caused this problem and because
to use -- with-apxs2 instead of -- to with-apxs2filter? It is would
like to tell the problem for the company who created the original
packages. 

Thanks for help


Previous Comments:


[2004-01-13 06:48:14] [EMAIL PROTECTED]

Remove this:

Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files

And use the --with-apxs2 configure option when you configure PHP.




[2004-01-13 05:55:17] mascari at odarainternet dot com dot br

---
# php.conf
# This file is included by a Include conf/conf.d/*.conf directive in
the
# Apache httpd.conf file.

Files *.php
SetOutputFilter PHP
SetInputFilter PHP
/Files

DirectoryIndex index.php

---
# php.module
# This file is included by a Include conf/conf.d/*.module directive in
the Apache httpd.conf file.

LoadModule php4_module modules/libphp4.so

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

---
# /etc/php.ini
[PHP]
engine = On
short_open_tag = On
asp_tags = Off
precision=  12
output_buffering = Off
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
serialize_precision = 100
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
disable_classes =
expose_php = On
max_execution_time = 30
max_input_time = 60
memory_limit = 8M
error_reporting  =  E_ALL  ~E_NOTICE
display_errors = On
display_startup_errors = Off
log_errors = Off
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
variables_order = EGPCS
register_globals = On
register_argc_argv = On
post_max_size = 8M
gpc_order = GPC
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = text/html
doc_root =
user_dir =
extension_dir = /usr/lib/php4
enable_dl = On
file_uploads = On
upload_tmp_dir = /tmp
upload_max_filesize = 5M
allow_url_fopen = On
allow_url_fopen = On
extension=imap.so
extension=mysql.so
extension=odbc.so

---
# httpd.conf
##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
IfModule prefork.c
StartServers 5
MinSpareServers  5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild  0
/IfModule

# worker MPM
IfModule worker.c
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild  0
/IfModule

# perchild MPM
IfModule perchild.c
NumServers   5
StartThreads 5
MinSpareThreads  5
MaxSpareThreads 10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
/IfModule

# WinNT MPM
IfModule mpm_winnt.c
ThreadsPerChild 250
MaxRequestsPerChild  0
/IfModule

# BeOS MPM
IfModule beos.c
StartThreads   10
MaxClients 50
MaxRequestsPerThread   1
/IfModule

# NetWare MPM
IfModule mpm_netware.c
ThreadStackSize  65536
StartThreads   250
MinSpareThreads 25
MaxSpareThreads250
MaxThreads1000
MaxRequestsPerChild  0
/IfModule

# OS/2 MPM
IfModule mpmt_os2.c
StartServers   2
MinSpareThreads5
MaxSpareThreads   10
MaxRequestsPerChild0
/IfModule



[2004-01-13 05:12:38] [EMAIL PROTECTED]

What did you put into httpd.conf to enable PHP?
And what was the configure line used to configure PHP?
What MPM is used for Apache2?




[2004-01-12 08:44:49] mascari at odarainternet dot com dot br

Description:

I am using Apache 2.0.48 and PHP 4.3.3 and how much I try to make
upload of file not text, the size of the file are increased. 

Analyzing the content of the increased file,  I perceived that all the
lines blank, marked for caracter @ had been substituted by the
posterior content the lines blank.

PS: I tested to send an file using one scripts Perl that I have and the
file was sent correctly...

Reproduce code:
---
upload.htm:
htmlbody
form action=upload.php method

#26882 [Fbk-Opn]: The file upload has the increased size

2004-01-12 Thread mascari at odarainternet dot com dot br
 ID:   26882
 User updated by:  mascari at odarainternet dot com dot br
 Reported By:  mascari at odarainternet dot com dot br
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: Conectiva Linux 9.0
 PHP Version:  4.3.4
 New Comment:

I brought update the PHP4 of 4.3.3 for 4.3.4 and problem continues. I
go to try to use the CVS now snapshot...


Previous Comments:


[2004-01-12 10:01:28] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2004-01-12 08:44:49] mascari at odarainternet dot com dot br

Description:

I am using Apache 2.0.48 and PHP 4.3.3 and how much I try to make
upload of file not text, the size of the file are increased. 

Analyzing the content of the increased file,  I perceived that all the
lines blank, marked for caracter @ had been substituted by the
posterior content the lines blank.

PS: I tested to send an file using one scripts Perl that I have and the
file was sent correctly...

Reproduce code:
---
upload.htm:
htmlbody
form action=upload.php method=post enctype=multipart/form-data
input type=hidden name=MAX_FILE_SIZE value=20971520
input name=userfile type=filebr
input type=submit value=Send files
/form
/body/html

upload.php:
?
if(move_uploaded_file($_FILES['userfile']['tmp_name'],/tmp/.$_FILES['userfile']['name']))
{
echo SUCCESSFULL;
} else {
echo ERRORbr;
print_r($_FILES);
}






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


#26882 [Opn]: The file upload has the increased size

2004-01-12 Thread mascari at odarainternet dot com dot br
 ID:   26882
 User updated by:  mascari at odarainternet dot com dot br
 Reported By:  mascari at odarainternet dot com dot br
 Status:   Open
 Bug Type: Apache2 related
 Operating System: Conectiva Linux 9.0
 PHP Version:  4.3.4
 New Comment:

The problem continues with PHP 4.3.5RC1


Previous Comments:


[2004-01-12 11:19:34] mascari at odarainternet dot com dot br

I brought update the PHP4 of 4.3.3 for 4.3.4 and problem continues. I
go to try to use the CVS now snapshot...



[2004-01-12 10:01:28] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip





[2004-01-12 08:44:49] mascari at odarainternet dot com dot br

Description:

I am using Apache 2.0.48 and PHP 4.3.3 and how much I try to make
upload of file not text, the size of the file are increased. 

Analyzing the content of the increased file,  I perceived that all the
lines blank, marked for caracter @ had been substituted by the
posterior content the lines blank.

PS: I tested to send an file using one scripts Perl that I have and the
file was sent correctly...

Reproduce code:
---
upload.htm:
htmlbody
form action=upload.php method=post enctype=multipart/form-data
input type=hidden name=MAX_FILE_SIZE value=20971520
input name=userfile type=filebr
input type=submit value=Send files
/form
/body/html

upload.php:
?
if(move_uploaded_file($_FILES['userfile']['tmp_name'],/tmp/.$_FILES['userfile']['name']))
{
echo SUCCESSFULL;
} else {
echo ERRORbr;
print_r($_FILES);
}






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