[PHP-DEV] PHP 4.0 Bug #8210 Updated: file upload

2001-04-10 Thread sniper

ID: 8210
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: HTTP related
Assigned To: 
Comments:

No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug 
report.

--Jani


Previous Comments:
---

[2001-02-25 07:45:36] [EMAIL PROTECTED]
Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

---

[2000-12-12 12:41:36] [EMAIL PROTECTED]
one more test
windows2000+apache-1.3.14+php.exe php-4.0.3pl1(php as CGI) is working

definetly the problem is in php4apache.dll


---

[2000-12-12 12:36:08] [EMAIL PROTECTED]
I tried windows2000+apache-1.3.14+php.exe php-4.0.2(php as CGI) - works again, so I 
localize the problem in php4apache.dll I guess

here's the code if needed

if ($HTTP_POST_FILES["pic"]  $HTTP_POST_FILES["pic"]["tmp_name"] != "none"){
$userRegistrationInfo["pic"] = 
addslashes(fread(fopen($HTTP_POST_FILES["pic"]['tmp_name'], "r"), 
filesize($HTTP_POST_FILES["pic"]['tmp_name'])));unlink($HTTP_POST_FILES["pic"]['tmp_name']);

$userRegistrationInfo["pic_type"] = $HTTP_POST_FILES["pic"]['type'];
}

and after that something like
mysql_query("insert into person set ".implode(',', $userQuery));


---

[2000-12-12 12:10:38] [EMAIL PROTECTED]
so when I use windows2000+apache-1.3.14+php4apache.dll php-4.0.3pl1 (php as apache 
module)
and I upload files and put them in MySQL table they do come full (only few bytes of 
them are inserted into MySQL) I do not know exactly how much.

I downgraded to windows2000+apache-1.3.12+php.exe php-4.0.2(php as CGI)

it works perfectly

on linux also works perfectly

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8210edit=2


-- 
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] PHP 4.0 Bug #8210 Updated: file upload

2001-02-25 Thread sbergmann

ID: 8210
Updated by: sbergmann
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: HTTP related
Assigned To: 
Comments:

Does the problem persist with PHP 4.0.4pl1 or the latest snapshot from 
http://snaps.php.net/?

Previous Comments:
---

[2000-12-12 12:41:36] [EMAIL PROTECTED]
one more test
windows2000+apache-1.3.14+php.exe php-4.0.3pl1(php as CGI) is working

definetly the problem is in php4apache.dll


---

[2000-12-12 12:36:08] [EMAIL PROTECTED]
I tried windows2000+apache-1.3.14+php.exe php-4.0.2(php as CGI) - works again, so I 
localize the problem in php4apache.dll I guess

here's the code if needed

if ($HTTP_POST_FILES["pic"]  $HTTP_POST_FILES["pic"]["tmp_name"] != "none"){
$userRegistrationInfo["pic"] = 
addslashes(fread(fopen($HTTP_POST_FILES["pic"]['tmp_name'], "r"), 
filesize($HTTP_POST_FILES["pic"]['tmp_name'])));unlink($HTTP_POST_FILES["pic"]['tmp_name']);

$userRegistrationInfo["pic_type"] = $HTTP_POST_FILES["pic"]['type'];
}

and after that something like
mysql_query("insert into person set ".implode(',', $userQuery));


---

[2000-12-12 12:10:38] [EMAIL PROTECTED]
so when I use windows2000+apache-1.3.14+php4apache.dll php-4.0.3pl1 (php as apache 
module)
and I upload files and put them in MySQL table they do come full (only few bytes of 
them are inserted into MySQL) I do not know exactly how much.

I downgraded to windows2000+apache-1.3.12+php.exe php-4.0.2(php as CGI)

it works perfectly

on linux also works perfectly

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8210edit=2


-- 
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]