[PHP-DOC] Bug #18286 Updated: UPLOAD_ERROR_X constants differ from documentation From: philip <email protected>
Date: 07/11/02

 ID: 18286
 Updated by: philip <email protected>
 Reported By: powerlord <email protected>
 Status: Open
 Bug Type: Documentation problem
 Operating System: Linux 2.4.x
-PHP Version: 4.2.1
+PHP Version: 4.3.0
 New Comment:

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-dev&m=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.

Previous Comments:
------------------------------------------------------------------------

[2002-07-11 17:22:27] powerlord <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=18286&edit=1

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