#20568 [NEW]: Apache2/PHP 4.2.3 File Upload Corruption

2002-11-22 Thread dw-php . net
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.2.3
PHP Bug Type: Apache2 related
Bug description:  Apache2/PHP 4.2.3 File Upload Corruption

Hi there,

I'm seeing odd corruption occurring to JPEG files (others unconfirmed)
when uploading using POST. This is a localhost<->localhost connection, on
a file getting uploaded from the same hard disk that the web server saves
it to.

Upon downgrading to Apache 1.3.27, the problem went away. At the URL below
you can find my configuration details, the code that handles the upload
(I'm pretty sure it's not that), and some sample damaged files.

I cannot tell what kind of damage is occurring, the file size changes
randomly, as does the visible damage to the image. I have tried with both
w3m and Mozilla.

Sample files, the code, my configuration:

http://botanicus.net/dw/tmp/phpbug/


Thanks,

Dave.
-- 
Edit bug report at http://bugs.php.net/?id=20568&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20568&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20568&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20568&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20568&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20568&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20568&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20568&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20568&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20568&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20568&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20568&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20568&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20568&r=isapi




#20516 [Com]: RFC: C-style string concatenation

2002-11-20 Thread dw-php . net
 ID:   20516
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Won\'t fix
 Bug Type: Feature/Change Request
 Operating System: Linux
 PHP Version:  4.2.3
 New Comment:

Conformity, ease of porting, the usual reasons why a change might be
made. IMHO, the dot operator is ugly and I hate using it, simply
because of the colour it appears as in vim :).

If no-one wants to hack this in, can I be pointed toward the correct
place in the source so I may? Thanks.


Previous Comments:


[2002-11-20 07:38:50] [EMAIL PROTECTED]

Why do you want that? PHP really doesn't need that, since we have the
dot as string concatenation operator. What's wrong with it?
"FOO" . /* weird comment if you like that */ "BAR"




[2002-11-20 07:30:13] [EMAIL PROTECTED]

Hi there,

I was wondering if it would be at all possible to get ANSI C / ISO
C99-style string literal concatenation added?

The PHP syntax already borrows so much from C that this seems to be a
worthy addition. It would also make it much easier for wrapping ugly
SQL for pretty source files.

String literal concatenation being:

$a =   "MY NAME IS "
"DAVE WILSON" /* some comment tokens
that get ignored */ "WAS HERE" // 2002
"2003";


Or, more useful:

"SELECT id,x,y,z FROM tbl " /* grab required cols */
"WHERE y = %d"  /* for our y coordinate. */




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




#20516 [NEW]: RFC: C-style string concatenation

2002-11-20 Thread dw-php . net
From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.2.3
PHP Bug Type: Feature/Change Request
Bug description:  RFC: C-style string concatenation

Hi there,

I was wondering if it would be at all possible to get ANSI C / ISO
C99-style string literal concatenation added?

The PHP syntax already borrows so much from C that this seems to be a
worthy addition. It would also make it much easier for wrapping ugly SQL
for pretty source files.

String literal concatenation being:

$a =   "MY NAME IS "
"DAVE WILSON" /* some comment tokens
that get ignored */ "WAS HERE" // 2002
"2003";


Or, more useful:

"SELECT id,x,y,z FROM tbl " /* grab required cols */
"WHERE y = %d"  /* for our y coordinate. */
-- 
Edit bug report at http://bugs.php.net/?id=20516&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20516&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=20516&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=20516&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20516&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=20516&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=20516&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=20516&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=20516&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=20516&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=20516&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20516&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=20516&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=20516&r=isapi