Bug #18286: UPLOAD_ERROR_X constants differ from documentation
| From: | powerlord at vgmusic dot com | Date: | Thu, 11 Jul 2002 21:22:28 +0000 |
| Subject: | Bug #18286: UPLOAD_ERROR_X constants differ from documentation | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-13883@lists.php.net to get a copy of this message | ||
From: powerlord@vgmusic.com
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=18286&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18286&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18286&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18286&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18286&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18286&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18286&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18286&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18286&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18286&r=globals