[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation

2002-07-12 Thread powerlord

 ID:   18286
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux 2.4.x
 PHP Version:  4.3.0
 New Comment:

Sounds great, but how about adding:

5 - UPLOAD_ERR_ZERO_SIZE - uploaded file is 0 bytes

I get the impression that error 5 hasn't been around long. :)


Previous Comments:


[2002-07-12 00:52:20] [EMAIL PROTECTED]

These constants exist as of today (in CVS):

value - constant name - description

0 - UPLOAD_ERR_OK - No errors, upload succesful
1 - UPLOAD_ERR_INI_SIZE  - Filesize exceeded upload_max_filesize
2 - UPLOAD_ERR_FORM_SIZE - Filesize exceeded MAX_FILE_SIZE set in the
form
3 - UPLOAD_ERR_PARTIAL - File uploaded partially. 
4 - UPLOAD_ERR_NO_FILE - No file uploaded.

If those names are not good, feel free to come up with 
better ones. :)




[2002-07-12 00:45:30] [EMAIL PROTECTED]

I see, they aren't constants at all, but error messages caught on
E_NOTICE.  The way they are listed on the features.file-upload.errors
page (since it lists error numbers in reference to them) in association
with the value of $_FILES[userfile][error] implies that they are
constants.

It would be really handy if $_FILES[userfile][error] and
$userfile_error were mentioned in the features.file-upload section
along with the relevant error numbers.



[2002-07-11 18:10:16] [EMAIL PROTECTED]

The documentation at features.file-upload.errors is a little unclear on
this matter.  Are these suppose to be PHP constants too?

See also:
* http://marc.theaimsgroup.com/?l=php-devm=101246726632633
* http://lxr.php.net/source/php4/main/rfc1867.c

Btw, they return those strings because they are undefined.  print
ANYTHING; will do that and throw an error of level E_NOTICE.



[2002-07-11 17:22:27] [EMAIL PROTECTED]

I am using PHP on Apache 1.3.26.

When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E
constants, they return the following:
UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A
UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B
UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C
UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D
UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E

This is what *should* happen according to documentation:
UPLOAD_ERROR_A should return the value 1
UPLOAD_ERROR_B should return the value 2
UPLOAD_ERROR_C should return the value 3
UPLOAD_ERROR_D should return the value 4
UPLOAD_ERROR_E should return the value 5

This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note
the lack of quotes before marking this as bogus).




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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] Bug #18286: UPLOAD_ERROR_X constants differ from documentation

2002-07-11 Thread powerlord

From: [EMAIL PROTECTED]
Operating system: Linux 2.4.x
PHP version:  4.2.1
PHP Bug Type: Documentation problem
Bug description:  UPLOAD_ERROR_X constants differ from documentation

I am using PHP on Apache 1.3.26.

When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E
constants, they return the following:
UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A
UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B
UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C
UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D
UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E

This is what *should* happen according to documentation:
UPLOAD_ERROR_A should return the value 1
UPLOAD_ERROR_B should return the value 2
UPLOAD_ERROR_C should return the value 3
UPLOAD_ERROR_D should return the value 4
UPLOAD_ERROR_E should return the value 5

This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note the
lack of quotes before marking this as bogus).
-- 
Edit bug report at http://bugs.php.net/?id=18286edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=18286r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=18286r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=18286r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=18286r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18286r=support
Expected behavior:   http://bugs.php.net/fix.php?id=18286r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18286r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18286r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=18286r=globals


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation

2002-07-11 Thread powerlord

 ID:   18286
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Documentation problem
 Operating System: Linux 2.4.x
 PHP Version:  4.3.0
 New Comment:

I see, they aren't constants at all, but error messages caught on
E_NOTICE.  The way they are listed on the features.file-upload.errors
page (since it lists error numbers in reference to them) in association
with the value of $_FILES[userfile][error] implies that they are
constants.

It would be really handy if $_FILES[userfile][error] and
$userfile_error were mentioned in the features.file-upload section
along with the relevant error numbers.


Previous Comments:


[2002-07-11 18:10:16] [EMAIL PROTECTED]

The documentation at features.file-upload.errors is a little unclear on
this matter.  Are these suppose to be PHP constants too?

See also:
* http://marc.theaimsgroup.com/?l=php-devm=101246726632633
* http://lxr.php.net/source/php4/main/rfc1867.c

Btw, they return those strings because they are undefined.  print
ANYTHING; will do that and throw an error of level E_NOTICE.



[2002-07-11 17:22:27] [EMAIL PROTECTED]

I am using PHP on Apache 1.3.26.

When attempting to use the UPLOAD_ERROR_A through UPLOAD_ERROR_E
constants, they return the following:
UPLOAD_ERROR_A returns the string UPLOAD_ERROR_A
UPLOAD_ERROR_B returns the string UPLOAD_ERROR_B
UPLOAD_ERROR_C returns the string UPLOAD_ERROR_C
UPLOAD_ERROR_D returns the string UPLOAD_ERROR_D
UPLOAD_ERROR_E returns the string UPLOAD_ERROR_E

This is what *should* happen according to documentation:
UPLOAD_ERROR_A should return the value 1
UPLOAD_ERROR_B should return the value 2
UPLOAD_ERROR_C should return the value 3
UPLOAD_ERROR_D should return the value 4
UPLOAD_ERROR_E should return the value 5

This is reproducible using ?php echo UPLOAD_ERROR_A ? (Please note
the lack of quotes before marking this as bogus).




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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php