Terumasa-Yamaoto / php52-backports

Automatically exported from code.google.com/p/php52-backports
Other
0 stars 0 forks source link

Issue with r39/r40 #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. If using r39 or r40 patch,
2. Attached script files to execute (upload fails but that is just a general 
error); 
3. Removed r39, but applied r41 and r41 changes separately and script works 
fine.

What is the expected output? Upload file, insert data into database after 
parsing. What do you see instead?
"Error uploading file /home/<user>/<script root>"

What version of the product are you using? On what operating system?
Linux 2.6.17.13 (Slackware 11), Apache 2.2 / PHP via DSO, compiled from source 
pulled via svn.

Attached is the script in question that we have noticed the issue.

php.ini error output was turned to max but it didn't echo out PHP specific 
errors so not sure exactly what it the issue is.

Original issue reported on code.google.com by JustinGe...@gmail.com on 16 Jul 2012 at 10:12

Attachments:

GoogleCodeExporter commented 8 years ago
$_FILES maybe is broken, I'll check this

Original comment by svyatosl...@gmail.com on 21 Jul 2012 at 4:29

GoogleCodeExporter commented 8 years ago
Fixed in r45 security branch, try check patch 
http://php52-backports.googlecode.com/files/php52-backports-security-20120721.pa
tch
I have tested it on FreeBSD 9.0 port.

Use simple test

# cat test.html
<form action="test.php" method="post" enctype="multipart/form-data">
File: <input type=file name="file" size=30><br>
<input type=submit name="submit" value="Upload File"></form>

# cat test.php
<?php
print_r($_FILES);
?>

It must show full array data with all elements

Original comment by svyatosl...@gmail.com on 21 Jul 2012 at 6:50

GoogleCodeExporter commented 8 years ago
I hope that does not come out with a mysterious problem on Linux systems 
zend_alter_ini_entry_ex for which I previously returned all back and broke all 
(issue N 3, 4)

Original comment by svyatosl...@gmail.com on 21 Jul 2012 at 6:54