#32883 [NEW]: Last character truncated from each line of post-moved file

2005-04-28 Thread jack at martinelli dot org
From: jack at martinelli dot org
Operating system: Linux (Debian)
PHP version:  4.3.10
PHP Bug Type: Filesystem function related
Bug description:  Last character truncated from each line of post-moved file

Description:

On Windows upload a text file, e.g., 

123
456
789

Then on the server move the uploaded file to some directory then dump the
file & its:

12
45
78


Reproduce code:
---
move_uploaded_file( $_FILES[$filename],['tmp_name'], 'tmp/tmp.txt');
echo file_get_contents ('tmp/tmp.txt');

Expected result:

123
456
789

Actual result:
--
12
45
78

-- 
Edit bug report at http://bugs.php.net/?id=32883&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32883&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32883&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32883&r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=32883&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=32883&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=32883&r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=32883&r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=32883&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32883&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=32883&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=32883&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=32883&r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=32883&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32883&r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=32883&r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=32883&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32883&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32883&r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=32883&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32883&r=mysqlcfg


#24288 [Com]: register_globals=On in PHP.ini doesn't work

2003-08-29 Thread jack at martinelli dot org
 ID:   24288
 Comment by:   jack at martinelli dot org
 Reported By:  joel2a at yahoo dot com
 Status:   Bogus
 Bug Type: PHP options/info functions
 Operating System: Windows NT 4.0
 PHP Version:  4.3.2
 New Comment:

I've run into the same problem.  The error messages I get says "FATAL
ERROR: register_globals is disabled in php.ini, please enable it!"

I changed the php.ini file to say:

register_globals=On

I stopped the apache server & restarted it after my edit.  I also
checked to be sure that my php.ini file existed only in the apache
directory.  I checked the windows directory & php.ini was not there.  I
also checked my php directory & php.ini was also not there.

I'm running php-4.3.3-Win32 -- the binary release on a W98 ME machine.


Previous Comments:


[2003-06-23 21:18:46] [EMAIL PROTECTED]

Works fine here. You propably just installed PHP the wrong way. Try
reboot too, make sure you have the webserver stopped totally before you
install anything and that you REALLY don't have old php4ts.dll anywhere
when you copy the new files over..




[2003-06-22 16:10:43] joel2a at yahoo dot com

In addition I know the php file is being read because the phpinfo()
error log says: 
error_log e:\php\4-3-2\error.txt

Which is what I set it to in the php.ini file.



[2003-06-22 16:04:45] joel2a at yahoo dot com

Ok, it says this:
Configuration File (php.ini) Path D:\WINNT\php.ini



[2003-06-22 15:39:30] [EMAIL PROTECTED]

Windows users claim php.ini isn't being read many times, and there are
many reasons why this claim is bogus so forgive our desire to be 100%
certain.

In phpinfo(), where it says this:
Configuration File (php.ini) Path

Please post exactly what the value says for this.




[2003-06-22 14:30:20] joel2a at yahoo dot com

Yes I modified the correct php.ini. I only have one in the Winnt 
directory. And I double checked it and re-double checked it several
times using two different web servers.
I also checked the directory of php.ini in the phpinfo listing.
And I just rechecked it again before sending this reply.

However the .htaccess fix did work locally only with the Apache web
server.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/24288

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