[PHP-DEV] Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault

2001-11-15 Thread michiel

ID: 14056
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:


Yes, it is fixed in the current CVS, I used, php4-2005

I could even increase max to 300 and it worked. However, when submitting my test 
script with no files inserted for upload, the values of the file uploads were not 
none, but a temporary file. Unexpected behaviour which may lead to problems. The 
size of the (temp)files is 0, but the value of the variable should be none or .

Previous Comments:


[2001-11-14 13:13:00] [EMAIL PROTECTED]

Cannot reproduce with current CVS.



[2001-11-14 12:30:14] [EMAIL PROTECTED]

Can you try a snapshot from snaps.php.net and report back if that fixes the problem?

Derick



[2001-11-14 12:08:47] [EMAIL PROTECTED]

!-- example that causes the error --
!-- you don't need to upload any files, just clicking Submit will cause the crash --
form method=post enctype=multipart/form-data
?

if (is_array($file))
  while (list($key,$val) = each($file))
print $key = $valbr\n;

# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;

for ($i=0;$i$msx;$i++) {
  print $i.'Upload file: input type=file name=file['.$i.']br';
}

?
input type=submit
/form

--end of example --

--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning 
--with-gd=/usr --enable-track-vars=yes --enable-force-cgi-redirect=yes 
--enable-memory-limit=yes --with-apache=../apache_1.3.19 --enable-debug=no 
--with-mcrypt

Page works if I switch back to php 4.0.4-pl1








Edit this bug report at http://bugs.php.net/?id=14056edit=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]




[PHP-DEV] Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault

2001-11-15 Thread bate

ID: 14056
Updated by: bate
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:

Its now Fixed.

Previous Comments:


[2001-11-15 05:53:12] [EMAIL PROTECTED]


Yes, it is fixed in the current CVS, I used, php4-2005

I could even increase max to 300 and it worked. However, when submitting my test 
script with no files inserted for upload, the values of the file uploads were not 
none, but a temporary file. Unexpected behaviour which may lead to problems. The 
size of the (temp)files is 0, but the value of the variable should be none or .



[2001-11-14 13:13:00] [EMAIL PROTECTED]

Cannot reproduce with current CVS.



[2001-11-14 12:30:14] [EMAIL PROTECTED]

Can you try a snapshot from snaps.php.net and report back if that fixes the problem?

Derick



[2001-11-14 12:08:47] [EMAIL PROTECTED]

!-- example that causes the error --
!-- you don't need to upload any files, just clicking Submit will cause the crash --
form method=post enctype=multipart/form-data
?

if (is_array($file))
  while (list($key,$val) = each($file))
print $key = $valbr\n;

# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;

for ($i=0;$i$msx;$i++) {
  print $i.'Upload file: input type=file name=file['.$i.']br';
}

?
input type=submit
/form

--end of example --

--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning 
--with-gd=/usr --enable-track-vars=yes --enable-force-cgi-redirect=yes 
--enable-memory-limit=yes --with-apache=../apache_1.3.19 --enable-debug=no 
--with-mcrypt

Page works if I switch back to php 4.0.4-pl1








Edit this bug report at http://bugs.php.net/?id=14056edit=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]




[PHP-DEV] Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault

2001-11-15 Thread sniper

ID: 14056
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:

The next release, 4.1.0 should work just fine.
( you can try the RC2 from http://www.php.net/~zeev/php-4.1.0RC2.tar.gz)

Latest CVS has new code for handling file uploads and
it's under development.
 
I'm fixing this 'no file sent' to behave same as it does
in 4.1.0.

--Jani


Previous Comments:


[2001-11-15 05:55:52] [EMAIL PROTECTED]

Its now Fixed.



[2001-11-15 05:53:12] [EMAIL PROTECTED]


Yes, it is fixed in the current CVS, I used, php4-2005

I could even increase max to 300 and it worked. However, when submitting my test 
script with no files inserted for upload, the values of the file uploads were not 
none, but a temporary file. Unexpected behaviour which may lead to problems. The 
size of the (temp)files is 0, but the value of the variable should be none or .



[2001-11-14 13:13:00] [EMAIL PROTECTED]

Cannot reproduce with current CVS.



[2001-11-14 12:30:14] [EMAIL PROTECTED]

Can you try a snapshot from snaps.php.net and report back if that fixes the problem?

Derick



[2001-11-14 12:08:47] [EMAIL PROTECTED]

!-- example that causes the error --
!-- you don't need to upload any files, just clicking Submit will cause the crash --
form method=post enctype=multipart/form-data
?

if (is_array($file))
  while (list($key,$val) = each($file))
print $key = $valbr\n;

# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;

for ($i=0;$i$msx;$i++) {
  print $i.'Upload file: input type=file name=file['.$i.']br';
}

?
input type=submit
/form

--end of example --

--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning 
--with-gd=/usr --enable-track-vars=yes --enable-force-cgi-redirect=yes 
--enable-memory-limit=yes --with-apache=../apache_1.3.19 --enable-debug=no 
--with-mcrypt

Page works if I switch back to php 4.0.4-pl1








Edit this bug report at http://bugs.php.net/?id=14056edit=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]




[PHP-DEV] Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault

2001-11-14 Thread derick

ID: 14056
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:

Can you try a snapshot from snaps.php.net and report back if that fixes the problem?

Derick

Previous Comments:


[2001-11-14 12:08:47] [EMAIL PROTECTED]

!-- example that causes the error --
!-- you don't need to upload any files, just clicking Submit will cause the crash --
form method=post enctype=multipart/form-data
?

if (is_array($file))
  while (list($key,$val) = each($file))
print $key = $valbr\n;

# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;

for ($i=0;$i$msx;$i++) {
  print $i.'Upload file: input type=file name=file['.$i.']br';
}

?
input type=submit
/form

--end of example --

--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning 
--with-gd=/usr --enable-track-vars=yes --enable-force-cgi-redirect=yes 
--enable-memory-limit=yes --with-apache=../apache_1.3.19 --enable-debug=no 
--with-mcrypt

Page works if I switch back to php 4.0.4-pl1








Edit this bug report at http://bugs.php.net/?id=14056edit=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]




[PHP-DEV] Bug #14056 Updated: Large amounts of fileuploads in a page cause segmentation fault

2001-11-14 Thread mfischer

ID: 14056
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Reproducible crash
Operating System: Redhat 7.0
PHP Version: 4.0.6
New Comment:

Cannot reproduce with current CVS.

Previous Comments:


[2001-11-14 12:30:14] [EMAIL PROTECTED]

Can you try a snapshot from snaps.php.net and report back if that fixes the problem?

Derick



[2001-11-14 12:08:47] [EMAIL PROTECTED]

!-- example that causes the error --
!-- you don't need to upload any files, just clicking Submit will cause the crash --
form method=post enctype=multipart/form-data
?

if (is_array($file))
  while (list($key,$val) = each($file))
print $key = $valbr\n;

# changing max to 33 will not cause the segfault, 34 will.
$msx = 34;

for ($i=0;$i$msx;$i++) {
  print $i.'Upload file: input type=file name=file['.$i.']br';
}

?
input type=submit
/form

--end of example --

--with-mysql=/usr --enable-sysvshm=yes --enable-sysvsem=yes --enable-versioning 
--with-gd=/usr --enable-track-vars=yes --enable-force-cgi-redirect=yes 
--enable-memory-limit=yes --with-apache=../apache_1.3.19 --enable-debug=no 
--with-mcrypt

Page works if I switch back to php 4.0.4-pl1








Edit this bug report at http://bugs.php.net/?id=14056edit=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]